diff --git a/OAT.xml b/OAT.xml index e6b5b947bba36fe1ac1eb390307a3738babad273..41ef7957cbb49c13ad0c372e0bfd120512b1378e 100644 --- a/OAT.xml +++ b/OAT.xml @@ -115,6 +115,8 @@ Note:If the text contains special characters, please escape them according to th + + diff --git a/function/ui_compare_rh/uicompare/entry/src/main/resources/base/element/integer.json b/function/ui_compare_rh/uicompare/entry/src/main/resources/base/element/integer.json new file mode 100644 index 0000000000000000000000000000000000000000..a7b0cbb802e641657515f185c917c95bfcef2fc9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/main/resources/base/element/integer.json @@ -0,0 +1,8 @@ +{ + "integer": [ + { + "name": "integer_1", + "value": 700 + } + ] +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/main/resources/base/element/string.json b/function/ui_compare_rh/uicompare/entry/src/main/resources/base/element/string.json index f94595515a99e0c828807e243494f57f09251930..453f865802a010e36ee0786d61d2b963f4e3d09c 100644 --- a/function/ui_compare_rh/uicompare/entry/src/main/resources/base/element/string.json +++ b/function/ui_compare_rh/uicompare/entry/src/main/resources/base/element/string.json @@ -11,6 +11,30 @@ { "name": "EntryAbility_label", "value": "label" + }, + { + "name": "apple", + "value": "苹果" + }, + { + "name": "fruit", + "value": "水果" + }, + { + "name": "appliance", + "value": "家电" + }, + { + "name": "banana", + "value": "香蕉" + }, + { + "name": "tv", + "value": "电视" + }, + { + "name": "computer", + "value": "电脑" } ] } \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/main/resources/dark/element/dark.json b/function/ui_compare_rh/uicompare/entry/src/main/resources/dark/element/dark.json new file mode 100644 index 0000000000000000000000000000000000000000..162a7b6f4af5d7d48a35aeed67e3eadf3a019853 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/main/resources/dark/element/dark.json @@ -0,0 +1,8 @@ +{ + "color": [ + { + "name": "start_window_background", + "value": "#FFFFFF" + } + ] +} diff --git a/function/ui_compare_rh/uicompare/entry/src/main/resources/rawfile/font/HarmonyOS_Sans_Thin_Italic.ttf b/function/ui_compare_rh/uicompare/entry/src/main/resources/rawfile/font/HarmonyOS_Sans_Thin_Italic.ttf new file mode 100644 index 0000000000000000000000000000000000000000..a5c4e3eccd5369aad2dd3727b65a04402ddc8261 Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/main/resources/rawfile/font/HarmonyOS_Sans_Thin_Italic.ttf differ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/Ability.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/Ability.test.ets index 76e140bc60b9e19df3e40c0c70b172198360e76b..611d4b29cb1448ae4cd7bd40687f06c0f1509936 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/Ability.test.ets @@ -14,7 +14,7 @@ */ import hilog from '@ohos.hilog'; -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'; export default function abilityTest() { describe('ActsAbilityTest', () => { 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..e8facc935ed0117ead5c264e17c72838a2327a7a 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 @@ -13,6 +13,47 @@ * limitations under the License. */ +import UIComponentButtonTextPickerFadeoutTest from './UIComponentButtonTextPickerFadeoutTest/UIComponentButtonTextPickerFadeout.test'; +import UIComponentButtonTextPickerOverBoundaryReboundTest from './UIComponentButtonTextPickerOverBoundaryReboundTest/UIComponentButtonTextPickerOverBoundaryRebound.test'; +import UIComponentPopupboxButtonstyleTest from './UIComponentPopupboxButtonstyleTest/UIComponentPopupboxButtonstyle.test'; +import UIComponentPopupboxEnterTest from './UIComponentPopupboxEnterTest/UIComponentPopupboxEnter.test'; +import UIComponentButtonTimepickerInterfaceTest from './UIComponentButtonTimepickerInterfaceTest/UIComponentButtonTimepickerInterface.test'; +import UIComponentUISupportColor from './UIComponentUISupportColorTest/UIComponentUISupportColor.test'; +import UIComponentPopupboxTextPickerDialogInterface from './UIComponentPopupboxTextPickerDialogInterfaceTest/UIComponentPopupboxTextPickerDialogInterface.test'; +import UIComponentPopupboxTextPickerDialogInteraction from './UIComponentPopupboxTextPickerDialogInteractionTest/UIComponentPopupboxTextPickerDialogInteraction.test'; +import UIComponentFunctionSpecialComponentsDialogTextPickerDialog from './UIComponentFunctionSpecialComponentsDialogTextPickerDialogTest/UIComponentFunctionSpecialComponentsDialogTextPickerDialog.test'; +import UIComponentPopupBoxPopup from './UIComponentPopupBoxPopupTest/UIComponentPopupBoxPopup.test'; +import UIComponentButtonTimepickerEvent from './UIComponentButtonTimepickerEventTest/UIComponentButtonTimepickerEvent.test'; +import UIComponentButtonTextPickerMirrorImageTest from './UIComponentButtonTextPickerMirrorImageTest/UIComponentButtonTextPickerMirrorImage.test'; +import UIComponentButtonTextPickerEventTest from './UIComponentButtonTextPickerEventTest/UIComponentButtonTextPickerEvent.test'; +import UIComponentButtonTextPickerInterfaceTest from './UIComponentButtonTextPickerInterfaceTest/UIComponentButtonTextPickerInterface.test'; +import UIComponentPopupBoxSpecificationsShadow from './UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test'; +import UIComponentButtonTimepickerNumeric from './UIComponentButtonTimepickerNumericTest/UIComponentButtonTimepickerNumeric.test'; +import UIComponentPopupBoxStyleStrong from './UIComponentPopupBoxStyleStrongTest/UIComponentPopupBoxStyleStrong.test'; +import UIComponentFunctionFormSelectionTimePickerLanguageOrder from './UIComponentFunctionFormSelectionTimePickerLanguageOrderTest/UIComponentFunctionFormSelectionTimePickerLanguageOrder.test'; +import UIComponentButtonToggleInterationTest from './UIComponentButtonToggleInteractionTest/UIComponentButtonToggleInteraction.test'; +import UIComponentPopupBoxPromptToastSystem from './UIComponentPopupBoxPromptToastSystemTest/UIComponentPopupBoxPromptToastSystem.test'; +import UIComponentPopupboxTimepickerdialogInterface from './UIComponentPopupboxTimepickerdialogInterfaceTest/UIComponentPopupboxTimepickerdialogInterface.test'; +import UIComponentPopupboxTimepickerdialogInterface2 from './UIComponentPopupboxTimepickerdialogInterface2Test/UIComponentPopupboxTimepickerdialogInterface2.test'; +import UIComponentPopupboxTimepickerdialogScenarios from './UIComponentPopupboxTimepickerdialogScenariosTest/UIComponentPopupboxTimepickerdialogScenariosTest.test'; +import UIComponentButtonTimepickerInterface from './UIComponentButtonTimepickerInterfaceTest/UIComponentButtonTimepickerInterface.test'; +import UIComponentScrollPickerPickerrefactor from './UIComponentScrollPickerPickerrefactorTest/UIComponentScrollPickerPickerrefactor.test'; +import UIComponentPopupboxPickerold from './UIComponentPopupboxPickeroldTest/UIComponentPopupboxPickerold.test'; +import UIComponentPopupboxConsistencyScene from './UIComponentPopupboxConsistencySceneTest/UIComponentPopupboxConsistencyScene.test'; +import UIComponentButtonStyle from './UIComponentButtonStyleTest/UIComponentButtonStyle.test'; +import UIComponentButtonRadioStyle from './UIComponentButtonRadioStyleTest/UIComponentButtonRadioStyle.test'; +import UIComponentButtonToggleCustomizingTest from './UIComponentButtonToggleCustomizingTest/UIComponentButtonToggleCustomizing.test'; +import UIComponentButtonToggleEvent from './UIComponentButtonToggleEventTest/UIComponentButtonToggleEvent.test'; +import UIComponentButtonToggleInterface from './UIComponentButtonToggleInterfaceTest/UIComponentButtonToggleInterface.test'; +import UIComponentButtonToggleMirror from './UIComponentButtonToggleMirrorTest/UIComponentButtonToggleMirror.test'; +import UIComponentButtonCommonButton from './UIComponentButtonCommonButtonTest/UIComponentButtonCommonButton.test'; + +import UIComponentPopupboxPromptToastsystemTest from './UIComponentPopupboxPromptToastsystemTest/UIComponentPopupboxPromptToastsystem.test'; +import UIComponentPopupBoxPicker from './UIComponentPopupBoxPickerTest/UIComponentPopupBoxPicker.test'; +import UIComponentPopupboxPopupFollowtransformoftarget + from './UIComponentPopupboxPopupFollowtransformoftargetTest/UIComponentPopupboxPopupFollowtransformoftarget.test'; +import UIComponentPopupboxMenuMenuTest + from './UIComponentPopupboxMenuMenuTestTest/UIComponentPopupboxMenuMenuTest.test'; import ComponentTextRicheditorFontfeatures from './ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeatures.test'; import ComponentTextRicheditorCustomColors @@ -151,6 +192,45 @@ import UIComponentPopupBoxFullDialogInterface001 from './UIComponentPopupBoxFullDialogInterfaceTest/UIComponentPopupBoxFullDialogInterface001.test'; export default function testsuite() { + UIComponentButtonTextPickerMirrorImageTest(); + UIComponentButtonTextPickerEventTest(); + UIComponentButtonCommonButton(); + UIComponentButtonTextPickerInterfaceTest(); + UIComponentButtonTextPickerFadeoutTest(); + UIComponentButtonTextPickerOverBoundaryReboundTest(); + UIComponentPopupboxButtonstyleTest(); + UIComponentButtonTimepickerInterfaceTest(); + UIComponentPopupboxEnterTest(); + UIComponentButtonToggleInterationTest(); + UIComponentUISupportColor(); + UIComponentPopupboxTextPickerDialogInterface(); + UIComponentPopupboxTextPickerDialogInteraction(); + UIComponentFunctionSpecialComponentsDialogTextPickerDialog(); + UIComponentPopupBoxPopup(); + UIComponentButtonTimepickerEvent(); + UIComponentButtonStyle(); + UIComponentPopupBoxSpecificationsShadow(); + UIComponentButtonTimepickerNumeric(); + UIComponentPopupBoxStyleStrong(); + UIComponentFunctionFormSelectionTimePickerLanguageOrder(); + UIComponentPopupBoxPromptToastSystem(); + UIComponentPopupboxTimepickerdialogInterface2(); + UIComponentPopupboxTimepickerdialogInterface(); + UIComponentPopupboxTimepickerdialogScenarios(); + UIComponentButtonTimepickerNumeric(); + UIComponentButtonTimepickerInterface(); + UIComponentScrollPickerPickerrefactor(); + UIComponentPopupboxPickerold(); + UIComponentPopupboxConsistencyScene(); + UIComponentButtonRadioStyle(); + UIComponentButtonToggleCustomizingTest(); + UIComponentButtonToggleEvent(); + UIComponentButtonToggleInterface(); + UIComponentButtonToggleMirror(); + UIComponentPopupboxPromptToastsystemTest(); + UIComponentPopupBoxPicker(); + UIComponentPopupboxPopupFollowtransformoftarget(); + UIComponentPopupboxMenuMenuTest(); ComponentTextRicheditorFontfeatures(); ComponentTextRicheditorCustomColors(); ComponentTextRicheditorWordbreaks(); @@ -240,5 +320,3 @@ export default function testsuite() { UIComponentPopupBoxPromptToastSequence(); UIComponentPopupBoxSpecificationsPopup(); } - - diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonCommonButtonTest/UIComponentButtonCommonButton.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonCommonButtonTest/UIComponentButtonCommonButton.test.ets index f0efa3c97bfacd96c3d9e5e209bda39d486bd476..5e66c44a0fc56737c1f0ac4dfdc87666729b97ae 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonCommonButtonTest/UIComponentButtonCommonButton.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonCommonButtonTest/UIComponentButtonCommonButton.test.ets @@ -13,15 +13,18 @@ * limitations under the License. */ -import { afterEach, describe, it } from '@ohos/hypium' +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 { Driver, ON } from '@ohos.UiTest' +import uiAppearance from '@ohos.uiAppearance' +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +import { Component, Driver, ON } from '@ohos.UiTest' /* - * UIComponentButtonCommonButton + * UIComponentButtonStyle * * Settings.createWindow(config.url): * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 @@ -39,6 +42,138 @@ import { Driver, ON } from '@ohos.UiTest' export default function UIComponentButtonCommonButton() { describe('UIComponentButtonCommonButton', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0500 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0500 + * @tc.desc 验证Toggle组件,测试参数index=1的时候,modifier配置和原有配置效果是否一致 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0500_1', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0500"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0500 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0500 + * @tc.desc 验证Toggle组件,测试参数index=1的时候,modifier配置和原有配置效果是否一致 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0500_2', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0500"); + await Utils.sleep(1000); + + let driver = Driver.create(); + let modifyButton = await driver.findComponent(ON.id('showButton')); + await modifyButton.click(); + await Utils.sleep(500); + + await windowSnap.snapShot(); + await Utils.sleep(1000); + + done(); + }) + + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0470 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0470 + * @tc.desc 验证TextPicker组件,测试参数index=2时候,modifier配置和原有配置效果是否一致 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0470 start.`); + Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0470"); + await Utils.sleep(1000); + let driver = Driver.create(); + let modifyButton = await driver.findComponent(ON.id('button1')); + await modifyButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0470 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0460 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0460 + * @tc.desc 验证TextPicker组件,测试参数index=1时候,modifier配置和原有配置效果是否一致 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0460 start.`); + Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0460"); + await Utils.sleep(1000); + let driver = Driver.create(); + let modifyButton = await driver.findComponent(ON.id('button1')); + await modifyButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0460 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0490 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0490 + * @tc.desc 验证TimePicker组件,测试参数index=2的时候,modifer配置和原有配置效果是否一致 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0490 start.`); + Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0490"); + await Utils.sleep(1000); + let driver = Driver.create(); + let modifyButton = await driver.findComponent(ON.id('button1')); + await modifyButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0490 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0480 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0480 + * @tc.desc 验证TimePicker组件,测试参数index=1的时候,modifer配置和原有配置效果是否一致 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0480 start.`); + Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0480"); + await Utils.sleep(1000); + let driver = Driver.create(); + let modifyButton = await driver.findComponent(ON.id('button1')); + await modifyButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0480 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0510 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0510 + * @tc.desc 验证Toggle组件,测试参数index=2的时候,modifier配置和原有配置效果是否一致 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0510 start.`); + Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0510"); + await Utils.sleep(1000); + let driver = Driver.create(); + let modifyButton = await driver.findComponent(ON.id('button1')); + await modifyButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0510 finish.`); + done(); /* * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0330 diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonRadioStyleTest/UIComponentButtonRadioStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonRadioStyleTest/UIComponentButtonRadioStyle.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..fa23b8827393941d533e9b896aa15a6e6764e24b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonRadioStyleTest/UIComponentButtonRadioStyle.test.ets @@ -0,0 +1,368 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 { Driver, ON, Component } from '@ohos.UiTest'; + +export default function UIComponentButtonRadioStyle() { + describe('UIComponentButtonRadioStyle', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_006 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_006 + * @tc.desc 浅色模式下,不设置Switch类型按钮关闭状态的背景颜色.走默认值 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_006', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_006 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle006"); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_006 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_008 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_008 + * @tc.desc 浅色模式下,通过十六进制数值设置Switch类型按钮关闭状态的背景颜色 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_008', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_008 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle008"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("Button")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_008 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_009 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_009 + * @tc.desc 浅色模式下,通过rgb、rgba字符串类型设置Switch类型按钮关闭状态的背景颜色 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_009', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_009 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle009"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("Button")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + await windowSnap.snapShot('1'); + await driver.delayMs(300); + await driver.click(pointCenter.x, pointCenter.y); + await windowSnap.snapShot('2'); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_009 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_010 + * @tc.desc 浅色模式下,设置Switch类型按钮关闭状态的背景颜色为非法值 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle010"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("Button")); + await SliderCom.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_012 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_012 + * @tc.desc 浅色模式下,不设置Switch类型按钮关闭状态状态的背景颜色 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_012', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_012 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle012"); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_012 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_016 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_016 + * @tc.desc 浅色模式下,不设置Switch类型的滑轨的圆角的数值,走默认值 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_016', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_016 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle016"); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_016 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_017 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_017 + * @tc.desc 浅色模式下,设置Switch类型的圆形滑块半径的数值为number类型 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_017', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_017 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle017"); + await Utils.sleep(5000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("Button")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + await windowSnap.snapShot('1'); + await driver.delayMs(300); + await driver.click(pointCenter.x, pointCenter.y); + await windowSnap.snapShot('2'); + await driver.delayMs(300); + await driver.click(pointCenter.x, pointCenter.y); + await windowSnap.snapShot('3'); + await driver.delayMs(300); + await driver.click(pointCenter.x, pointCenter.y); + await windowSnap.snapShot('4'); + await driver.delayMs(300); + await driver.click(pointCenter.x, pointCenter.y); + await windowSnap.snapShot('5'); + await driver.delayMs(300); + await driver.click(pointCenter.x, pointCenter.y); + await windowSnap.snapShot('6'); + await Utils.sleep(5000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_017 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_020 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_020 + * @tc.desc 浅色模式下,不设置Switch类型的圆形滑块半径的数值,走默认值 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_020 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle020"); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_021 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_021 + * @tc.desc 浅色模式下,checkbox类型滑块设置unselectedColor、pointRadius、pointColor、trackBorderRadius属性不生效 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_021', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_021 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle021"); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_021 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_022 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_022 + * @tc.desc 浅色模式下,Button类型滑块设置unselectedColor、pointRadius、pointColor、trackBorderRadius属性不生效 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_022', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_022 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle022"); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_022 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_023 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_023 + * @tc.desc 浅色模式下,使用设置width、height设置Switch类型滑轨宽高 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_023', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_023 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle023"); + await Utils.sleep(5000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("Button")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + await driver.delayMs(150); + await windowSnap.snapShot('1'); + await driver.click(pointCenter.x, pointCenter.y); + await driver.delayMs(150); + await windowSnap.snapShot('2'); + await driver.click(pointCenter.x, pointCenter.y); + await driver.delayMs(150); + await windowSnap.snapShot('3'); + await driver.click(pointCenter.x, pointCenter.y); + await driver.delayMs(150); + await windowSnap.snapShot('4'); + await driver.click(pointCenter.x, pointCenter.y); + await driver.delayMs(150); + await windowSnap.snapShot('5'); + await driver.click(pointCenter.x, pointCenter.y); + await driver.delayMs(150); + await windowSnap.snapShot('6'); + await driver.click(pointCenter.x, pointCenter.y); + await windowSnap.snapShot(); + await Utils.sleep(5000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_023 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_024 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_024 + * @tc.desc 浅色模式下,使用设置width、height设置Switch类型滑轨宽高,滑轨高度大于滑块高度 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_024', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_024 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle024"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("Button")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_024 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_025 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_025 + * @tc.desc 浅色模式下,使用设置width、height设置Switch类型滑轨宽高,滑轨高度等于滑块高度 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_025', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_025 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle025"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("Button")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_025 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_026 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_026 + * @tc.desc 浅色模式下,使用设置width、height设置Switch类型滑轨宽高,滑轨高度小于滑块高度 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_026', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_026 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle026"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("Button")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_026 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_014 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_014 + * @tc.desc 浅色模式下,设置Switch类型的滑轨的圆角的数值为引用值Resource + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_014', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_014 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle014"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_014 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_015 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_015 + * @tc.desc 浅色模式下,设置Switch类型的滑轨的圆角的数值为非法值 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_015', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_015 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle015"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_015 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_018 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_018 + * @tc.desc 浅色模式下,设置Switch类型的圆形滑块半径的数值为引用值Resource + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_018', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_018 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle018"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_018 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_019 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_019 + * @tc.desc 浅色模式下,设置Switch类型的圆形滑块半径的数值为非法值 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_019', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_019 start.`); + Settings.createWindow("testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle019"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_STYLE_019 finish.`); + done(); + }); + }) +} 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..196ce6500d1fe8ce34a2c914048ae0300c58b08c 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 @@ -13,12 +13,12 @@ * limitations under the License. */ -import { afterEach, describe, it } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Driver, ON } from '@ohos.UiTest' +import { afterEach, describe, it } from '@ohos/hypium'; +import Settings from '../model/Settings'; +import windowSnap from '../model/snapShot'; +import Logger from '../model/Logger'; +import Utils from '../model/Utils'; +import { Driver, ON } from '@ohos.UiTest'; /* * Settings.createWindow(config.url): @@ -37,7 +37,10 @@ import { Driver, ON } from '@ohos.UiTest' export default function UIComponentButtonStyle() { describe('UIComponentButtonStyle', () => { - + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) /* * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0540 @@ -60,6 +63,23 @@ export default function UIComponentButtonStyle() { }) /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0120 + * @tc.desc Toggle测试,switchPointColorStyleModifier样式修改属性 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0120', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0120"); + await Utils.sleep(1000); + let driver = Driver.create(); + let modifyButton = await driver.findComponent(ON.id('UIComponentButtonStyle0120')); + await modifyButton.click(); + await Utils.sleep(500); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0120 finish.`); + done(); + }) + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0530 * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0530 * @tc.desc set Rating.stepSize @@ -79,6 +99,19 @@ export default function UIComponentButtonStyle() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0100 + * @tc.desc Toggle测试,ToggleAttributeStyleModifier样式修改属性 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0100_1', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0100"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0510 * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0510 @@ -119,6 +152,25 @@ export default function UIComponentButtonStyle() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0100 + * @tc.desc Toggle测试,ToggleAttributeStyleModifier样式修改属性 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0100_2', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0100"); + await Utils.sleep(1000); + + let driver = Driver.create(); + let modifyButton = await driver.findComponent(ON.id('showButton')); + await modifyButton.click(); + await Utils.sleep(500); + + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0570 * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0570 diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerEventTest/UIComponentButtonTextPickerEvent.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerEventTest/UIComponentButtonTextPickerEvent.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..e46a95ee56779d0b95210e231296fd15cb0fbf75 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerEventTest/UIComponentButtonTextPickerEvent.test.ets @@ -0,0 +1,102 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, ON, Component } from '@ohos.UiTest'; + +export default function UIComponentButtonTextPickerEventTest() { + describe('UIComponentButtonTextPickerEventTest', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0010 + * @tc.desc 在Textpicker组件中,onChange?:(value:TextPickerResult)=>void;:滑动选择器,当前选择项改变时触发 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0010"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + await (await driver.findComponent(ON.text('peach2'))).click(); + await Utils.sleep(5000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0020 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0020 + * @tc.desc 滑动选择文本内容组件TextPicker,点击未选中项,验证效果 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0020 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0020"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + await (await driver.findComponent(ON.text('peach2'))).click(); + await Utils.sleep(5000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0040 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0040 + * @tc.desc 滑动选择文本内容组件TextPicker,创建多级联动选择器,固定一级文本,变更二级文本 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0040 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0040"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + await (await driver.findComponent(ON.text('黄冈市'))).click(); + await Utils.sleep(5000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0040 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0030 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0030 + * @tc.desc 滑动选择文本内容组件TextPicker,创建多级联动选择器,变更一级文本 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0030"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + await (await driver.findComponent(ON.text('浙江省'))).click(); + await Utils.sleep(5000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0030 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerFadeoutTest/UIComponentButtonTextPickerFadeout.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerFadeoutTest/UIComponentButtonTextPickerFadeout.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..84d82fe3d0e6767237ded833cbb3675060a66d71 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerFadeoutTest/UIComponentButtonTextPickerFadeout.test.ets @@ -0,0 +1,256 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, ON, Component } from '@ohos.UiTest'; + +export default function UIComponentButtonTextPickerFadeoutTest () { + describe('UIComponentButtonTextPickerFadeoutTest', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0040 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0040 + * @tc.desc 设置渐隐效果高度gradientHeight (50fp) + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0040 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0040"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showPickerBt = await driver.findComponent(ON.id('show_picker_bt')); + await showPickerBt.click(); + await Utils.sleep(1000); + const prop = getInspectorByKey('text_picker'); + const picker: Record = JSON.parse(prop); + const attr = picker['$attrs']; + if (attr) { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0040: gradientHeight = ${(attr as object)['gradientHeight']}`); + } + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0040 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0090 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0090"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showPickerBt = await driver.findComponent(ON.id('show_picker_bt')); + await showPickerBt.click(); + await Utils.sleep(1000); + const prop = getInspectorByKey('text_picker'); + const picker: Record = JSON.parse(prop); + const attr = picker['$attrs']; + if (attr) { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0090: gradientHeight = ${(attr as object)['gradientHeight']}`); + } + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0090 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0030"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showPickerBt = await driver.findComponent(ON.id('show_picker_bt')); + await showPickerBt.click(); + await Utils.sleep(1000); + const prop = getInspectorByKey('text_picker'); + const picker: Record = JSON.parse(prop); + const attr = picker['$attrs']; + if (attr) { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0030: gradientHeight = ${(attr as object)['gradientHeight']}`); + } + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0030 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0080 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0080"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showPickerBt = await driver.findComponent(ON.id('show_picker_bt')); + await showPickerBt.click(); + await Utils.sleep(1000); + const prop = getInspectorByKey('text_picker'); + const picker: Record = JSON.parse(prop); + const attr = picker['$attrs']; + if (attr) { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0080: gradientHeight = ${(attr as object)['gradientHeight']}`); + } + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0080 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0120 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0120"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showPickerBt = await driver.findComponent(ON.id('show_picker_bt')); + await showPickerBt.click(); + await Utils.sleep(1000); + const prop = getInspectorByKey('text_picker'); + const picker: Record = JSON.parse(prop); + const attr = picker['$attrs']; + if (attr) { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0120: gradientHeight = ${(attr as object)['gradientHeight']}`); + } + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0120 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0110 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0110"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showPickerBt = await driver.findComponent(ON.id('show_picker_bt')); + await showPickerBt.click(); + await Utils.sleep(1000); + const prop = getInspectorByKey('text_picker'); + const picker: Record = JSON.parse(prop); + const attr = picker['$attrs']; + if (attr) { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0110: gradientHeight = ${(attr as object)['gradientHeight']}`); + } + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0110 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0100 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0100"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showPickerBt = await driver.findComponent(ON.id('show_picker_bt')); + await showPickerBt.click(); + await Utils.sleep(1000); + const prop = getInspectorByKey('text_picker'); + const picker: Record = JSON.parse(prop); + const attr = picker['$attrs']; + if (attr) { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0100: gradientHeight = ${(attr as object)['gradientHeight']}`); + } + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0100 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0070 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0070"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showPickerBt = await driver.findComponent(ON.id('show_picker_bt')); + await showPickerBt.click(); + await Utils.sleep(1000); + const prop = getInspectorByKey('text_picker'); + const picker: Record = JSON.parse(prop); + const attr = picker['$attrs']; + if (attr) { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0070: gradientHeight = ${(attr as object)['gradientHeight']}`); + } + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0070 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0050 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0050"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showPickerBt = await driver.findComponent(ON.id('show_picker_bt')); + await showPickerBt.click(); + await Utils.sleep(1000); + const prop = getInspectorByKey('text_picker'); + const picker: Record = JSON.parse(prop); + const attr = picker['$attrs']; + if (attr) { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0050: gradientHeight = ${(attr as object)['gradientHeight']}`); + } + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0050 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0010"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showPickerBt = await driver.findComponent(ON.id('show_picker_bt')); + await showPickerBt.click(); + await Utils.sleep(1000); + const prop = getInspectorByKey('text_picker'); + const picker: Record = JSON.parse(prop); + const attr = picker['$attrs']; + if (attr) { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0010: gradientHeight = ${(attr as object)['gradientHeight']}`); + } + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0010 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0130 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0130"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showPickerBt = await driver.findComponent(ON.id('show_picker_bt')); + await showPickerBt.click(); + await Utils.sleep(1000); + const prop = getInspectorByKey('text_picker'); + const picker: Record = JSON.parse(prop); + const attr = picker['$attrs']; + if (attr) { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0130: gradientHeight = ${(attr as object)['gradientHeight']}`); + } + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_FADEOUT_0130 finish.`); + done(); + }) + }) + +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerInterfaceTest/UIComponentButtonTextPickerInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerInterfaceTest/UIComponentButtonTextPickerInterface.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c2cde34ea600f9dcb258902b84c49a8be9d1fb6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerInterfaceTest/UIComponentButtonTextPickerInterface.test.ets @@ -0,0 +1,726 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, ON, Component } from '@ohos.UiTest'; + +export default function UIComponentButtonTextPickerInterfaceTest() { + describe('UIComponentButtonTextPickerInterfaceTest', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0310 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0310 + * @tc.desc 在Textpicker组件中,验证通用属性constraintSize为百分比 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0310 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0310"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0310 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0010 + * @tc.desc 在Textpicker组件中defaultPickerltemHeight:number:0 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0010"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0060 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0060 + * @tc.desc 在Textpicker组件中defaultPickerltemHeight:string:百分比 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0060 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0060"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0060 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0030 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0030 + * @tc.desc 在Textpicker组件中defaultPickerltemHeight:number:负数 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0030"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0040 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0040 + * @tc.desc 在Textpicker组件中,defaultPickerltemHeight:string:"20" + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0040 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0040"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0040 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0050 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0050 + * @tc.desc 在Textpicker组件中defaultPickerltemHeight:string:指定像素单位 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0050 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0050"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0070 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0070 + * @tc.desc 在Textpicker组件中,设置disappearTextStyle属性 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0070 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0070"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0370 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0370 + * @tc.desc 在Textpicker组件中,验证通用属性padding为Length行 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0370 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0370"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0370 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0400 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0400 + * @tc.desc 在Textpicker组件中,验证通用属性size设置 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0400 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0400"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0400 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0420 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0420 + * @tc.desc 在Textpicker组件中,验证通用属性width子父组件设置正常 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0420 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0420"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0420 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0230 + * @tc.desc 在Textpicker组件中,验证向上拖拽功能 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0230 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0230"); + await Utils.sleep(1000); + const driver = Driver.create(); + await (await driver.findComponent(ON.text('Test 2'))).click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0230 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0270 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0270 + * @tc.desc 在Textpicker组件中,验证向组合拖拽功能 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0270 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0270"); + await Utils.sleep(1000); + const driver = Driver.create(); + const picker = await driver.findComponent(ON.type('TextPicker')); + const point = await picker.getBoundsCenter(); + await driver.swipe(point.x, point.y, point.x + 50, point.y - 70); + await driver.swipe(point.x, point.y - 70, point.x, point.y + 70); + await Utils.sleep(7000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0270 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0240 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0240 + * @tc.desc 在Textpicker组件中,验证向下拖拽功能 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0240 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0240"); + await Utils.sleep(1000); + const driver = Driver.create(); + await (await driver.findComponent(ON.text('Test 33'))).click(); + await Utils.sleep(5000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0240 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0260 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0260 + * @tc.desc 在Textpicker组件中,验证向左拖拽功能 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0260 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0260"); + await Utils.sleep(1000); + const driver = Driver.create(); + await (await driver.findComponent(ON.text('Test 2'))).click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0260 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0250 + * @tc.desc 在Textpicker组件中,验证向右拖拽功能 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0250 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0250"); + await Utils.sleep(1000); + const driver = Driver.create(); + await (await driver.findComponent(ON.text('Test 2'))).click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0250 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0120 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0120"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0120 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0130 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0130"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0320 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0320 + * @tc.desc 在Textpicker组件中,验证通用属性height子父组件设置异常 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0320 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0320"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0320 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0390 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0390 + * @tc.desc 在Textpicker组件中,验证通用属性padding默认值 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0390 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0390"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0390 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0350 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0350 + * @tc.desc 在Textpicker组件中,验证通用属性margin为百分比 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0350 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0350"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0350 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0380 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0380 + * @tc.desc 在Textpicker组件中,验证通用属性padding为百分比 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0380 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0380"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0380 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0150 + * @tc.desc 在Textpicker组件中,验证入参range必选、参数为string类型selected必选,value必选 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0150 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0150"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0160 + * @tc.desc 在Textpicker组件中,验证入参range必选、参数为string类型selected未选,value必选 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0160 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0160"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0170 + * @tc.desc 在Textpicker组件中,验证入参range必选、参数为string类型,selected未选value未选 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0170 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0170"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0170 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0410 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0410 + * @tc.desc 在Textpicker组件中,验证通用属性width子父组件设置异常 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0410 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0410"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0410 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0330 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0330 + * @tc.desc 在Textpicker组件中,验证通用属性height子父组件设置正常 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0330 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0330"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0330 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0300 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0300 + * @tc.desc 在Textpicker组件中,验证通用属性constraintSize为minWidth大于maxWidth + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0300 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0300"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0300 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0080 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0080 + * @tc.desc 在Textpicker组件中,设置selectedTextStyle属性 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0080 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0080"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0080 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0360 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0360 + * @tc.desc 在Textpicker组件中,验证通用属性margin默认值 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0360 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0360"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0360 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0340 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0340 + * @tc.desc 在Textpicker组件中,验证通用属性margin为Length行 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0340 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0340"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0340 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0580 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0580 + * @tc.desc 滑动选择文本内容组件 TextPicker,设置循环滚动 canLoop由false变为null,验证其可滚动 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0580 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0580"); + await Utils.sleep(2000); + const driver = Driver.create(); + const optionBt = await driver.findComponent(ON.id('option_bt')); + await optionBt.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('Test 2'))).click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('Test 2'))).click(); + await Utils.sleep(5000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0580 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0530 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0530 + * @tc.desc 滑动选择文本内容组件 TextPicker,设置循环滚动 canLoop为null,验证其可滚动 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0530 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0530"); + await Utils.sleep(1000); + const driver = Driver.create(); + await (await driver.findComponent(ON.text('Test 2'))).click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0530 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0510 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0510 + * @tc.desc 滑动选择文本内容组件 TextPicker,不设置循环滚动 canLoop (默认值true),验证其可滚动 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0510 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0510"); + await Utils.sleep(1000); + const driver = Driver.create(); + await (await driver.findComponent(ON.text('Test 2'))).click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0510 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0550 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0550 + * @tc.desc 滑动选择文本内容组件 TextPicker,设置循环滚动 canLoop为空字符串"",验证其可滚动 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0550 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0550"); + await Utils.sleep(1000); + const driver = Driver.create(); + await (await driver.findComponent(ON.text('Test 2'))).click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0550 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0560 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0560 + * @tc.desc 滑动选择文本内容组件 TextPicker,设置循环滚动 canLoop由true变为false, 验证其不可滚动 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0560 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0560"); + await Utils.sleep(2000); + const driver = Driver.create(); + const optionBt = await driver.findComponent(ON.id('option_bt')); + await optionBt.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('Test 2'))).click(); + await Utils.sleep(5000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0560 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0570 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0570 + * @tc.desc 滑动选择文本内容组件 TextPicker,设置循环滚动 canLoop由null变为false,验证其不可滚动 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0570 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0570"); + await Utils.sleep(2000); + const driver = Driver.create(); + const optionBt = await driver.findComponent(ON.id('option_bt')); + await optionBt.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('Test 2'))).click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0570 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0520 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0520 + * @tc.desc 滑动选择文本内容组件 TextPicker,设置循环滚动 canLoop为false, 验证其不可滚动 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0520 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0520"); + await Utils.sleep(1000); + const driver = Driver.create(); + await (await driver.findComponent(ON.text('Test 2'))).click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0520 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0540 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0540 + * @tc.desc 滑动选择文本内容组件 TextPicker,设置循环滚动 canLoop为undefined,验证其可滚动 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0540 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0540"); + await Utils.sleep(1000); + const driver = Driver.create(); + await (await driver.findComponent(ON.text('Test 2'))).click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0540 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0280 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0280 + * @tc.desc 在Textpicker组件中,验证文本内容大于组件显示区域 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0280 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0280"); + await Utils.sleep(1000); + const driver = Driver.create(); + await (await driver.findComponent(ON.text('香蕉2banana'))).click(); + await Utils.sleep(5000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0280 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0290 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0290 + * @tc.desc 在Textpicker组件中,验证点击事件触发滑动 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0290 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0290"); + await Utils.sleep(1000); + const driver = Driver.create(); + const bt1 = await driver.findComponent(ON.id('button1')); + await Utils.sleep(200); + const bt2 = await driver.findComponent(ON.id('button2')); + await Utils.sleep(200); + await bt1.click(); + await Utils.sleep(1000); + await bt2.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0290 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0100 + * @tc.desc 在Textpicker组件中,验证text文本中英文互换 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0100 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0100"); + await Utils.sleep(1000); + windowSnap.snapShot('zh'); + await Utils.sleep(2000); + const driver = Driver.create(); + const optionBt = await driver.findComponent(ON.id('option_bt1')); + await optionBt.click(); + await Utils.sleep(1000); + windowSnap.snapShot("en"); + await Utils.sleep(3000); + const optionBt2 = await driver.findComponent(ON.id('option_bt2')); + await optionBt2.click(); + await Utils.sleep(1000); + windowSnap.snapShot("number"); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0090 + * @tc.desc 在Textpicker组件中,设置textStyle属性 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0090 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0090"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_INTERFACE_0090 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerMirrorImageTest/UIComponentButtonTextPickerMirrorImage.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerMirrorImageTest/UIComponentButtonTextPickerMirrorImage.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..858fc607292d7233012d434fcc5338c16f2a6451 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerMirrorImageTest/UIComponentButtonTextPickerMirrorImage.test.ets @@ -0,0 +1,2435 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, ON, Component } from '@ohos.UiTest'; + +export default function UIComponentButtonTextPickerMirrorImageTest() { + describe('UIComponentButtonTextPickerMirrorImageTest', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0090 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:繁体中文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0090 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0090"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + await driver.swipe((rect.left + rect.right) / 2, rect.top, (rect.left + rect.right) / 2, rect.bottom); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0030 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0030 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:简体中文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0030"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + await driver.swipe((rect.left + rect.right) / 2, rect.top, (rect.left + rect.right) / 2, rect.bottom); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0050 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0050 + * @tc.desc TextPicker单列range为string[];首次渲染:简体中文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0050 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0050"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + await driver.swipe((rect.left + rect.right) / 2, rect.top, (rect.left + rect.right) / 2, rect.bottom); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0060 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0060 + * @tc.desc TextPicker单列range为string[];首次渲染:简体中文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0050 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0060"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + await driver.swipe((rect.left + rect.right) / 2, rect.top, (rect.left + rect.right) / 2, rect.bottom); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0060 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0020 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0020 + * @tc.desc TextPicker多列range为string[][];首次渲染:简体中文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0020 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0020"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + await driver.swipe((rect.left + rect.right) / 2, rect.top, (rect.left + rect.right) / 2, rect.bottom); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0080 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0080 + * @tc.desc TextPicker多列range为string[][];首次渲染:繁体中文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0080 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0080"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + await driver.swipe((rect.left + rect.right) / 2, rect.top, (rect.left + rect.right) / 2, rect.bottom); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0080 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0110 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0110 + * @tc.desc TextPickerDialog多列range为string[][];首次渲染:英语 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0110 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0110"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0110 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0070 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0070 + * @tc.desc TextPicker单列range为Resource;首次渲染:维吾尔文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0070 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0070"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0070: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0140 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:维吾尔文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0140 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0140"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0140: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0140 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0100 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:繁体中文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0100 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0100"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0100: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0120 + * @tc.desc TextPicker单列range为string[];首次渲染:简体中文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0120 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0120"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0120: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0130 + * @tc.desc TextPicker单列range为string[];首次渲染:维吾尔文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0130 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0130"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0130: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0150 + * @tc.desc TextPickerDialog单列range为带图片TextPickerRangeContent[];首次渲染:藏文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0150 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0150"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0530 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0530 + * @tc.desc TextPicker多列range为string[][];首次渲染:维吾尔文+ RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0530 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0530"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0530: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0530 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0590 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0590 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:简体中文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0590 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0590"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0590: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0590 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0550 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0550 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:藏文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0550 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0550"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0550: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0550 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0560 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0560 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:简体中文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0550 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0560"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0560: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0560 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0520 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0520 + * @tc.desc TextPicker单列range为Resource;首次渲染:简体中文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0520 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0520"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0520: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0520 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0510 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0510 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:藏文+Rtl + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0510 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0510"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0510: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0510 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0540 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0540 + * @tc.desc TextPickerDialog单列range为string[];首次渲染:简体中文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0540 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0540"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0540 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0570 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0570 + * @tc.desc TextPicker单列range为string[];首次渲染:藏文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0570 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0570"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0570: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0570 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0650 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0650 + * @tc.desc TextPicker多列range为string[][];首次渲染:简体中文+ Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0650', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0650 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0650"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0650: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0650 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0660 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0660 + * @tc.desc TextPickerDialog单列range为Resource;首次渲染:英语 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0660 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0660"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0660 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0640 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0640 + * @tc.desc TextPickerDialog多列range为TextCascadePickerRangeContent[];首次渲染:维吾尔文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0640 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0640"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0640 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0580 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0580 + * @tc.desc TextPicker单列range为string[];首次渲染:藏文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0580 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0580"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0580: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0580 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0620 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0620 + * @tc.desc TextPicker单列range为string[];首次渲染:繁体中文+ Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0620 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0620"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0620: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0620 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0630 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0630 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:英语+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0630 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0630"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0630: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0630 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0180 + * @tc.desc TextPicker单列range为Resource;首次渲染:繁体中文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0180 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0180"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0180: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0180 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0170 + * @tc.desc TextPicker单列range为string[];首次渲染:维吾尔文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0170 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0170"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0170: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0170 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0200 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0200 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:维吾尔文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0200 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0200"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0200: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0200 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0220 + * @tc.desc TextPicker单列range为Resource;首次渲染:英语+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0220 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0220"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0220: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0220 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0230 + * @tc.desc TextPicker单列range为string[];首次渲染:英语+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0230 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0230"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0230: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0230 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0190 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:繁体中文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0190 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0190"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0190: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0190 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0270 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0270 + * @tc.desc TextPicker多列range为string[][];首次渲染:简体中文+ RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0270 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0270"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0270: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0270 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0290 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0290 + * @tc.desc TextPickerDialog单列range为带图片TextPickerRangeContent[];首次渲染:简体中文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0290 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0290"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0290 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0280 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0280 + * @tc.desc TextPickerDialog单列range为Resource;首次渲染:维吾尔文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0280 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0280"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0280 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0260 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0260 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:简体中文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0260 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0260"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0260: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0260 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0250 + * @tc.desc TextPicker多列range为string[][];首次渲染:藏文+ Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0250 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0250"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0250: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0250 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0300 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0300 + * @tc.desc TextPickerDialog单列range为带图片TextPickerRangeContent[];首次渲染:英文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0300 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0300"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0300 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0320 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0320 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:简体中文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0320 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0320"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0320: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0320 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0680 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0680 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:维吾尔文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0680 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0680"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0680: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0680 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0670 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0670 + * @tc.desc TextPickerDialog多列range为TextCascadePickerRangeContent[];首次渲染:英文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0670 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0670"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0670 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0790 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0790 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:繁体中文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0790 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0790"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0790: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0790 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0770 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0770 + * @tc.desc TextPickerDialog多列range为TextCascadePickerRangeContent[];首次渲染:简体中文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0770', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0770 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0770"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0770 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0700 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0700 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:藏文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0700 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0700"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0700: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0700 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0750 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0750 + * @tc.desc TextPicker多列range为string[][];首次渲染:英文+ RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0750 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0750"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0750: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0750 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0740 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0740 + * @tc.desc TextPicker单列range为string[];首次渲染:英文+ RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0740 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0740"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0740: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0740 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0730 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0730 + * @tc.desc TextPicker多列range为string[][];首次渲染:维吾尔文+ LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0730', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0730 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0730"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0730: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0730 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0720 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0720 + * @tc.desc TextPicker多列range为string[][];首次渲染:繁体中文+ LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0720 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0720"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0720: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0720 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0780 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0780 + * @tc.desc TextPicker单列range为string[];首次渲染:维吾尔文+ LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0780 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0780"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0780: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0780 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0810 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0810 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:维吾尔文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0810 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0810"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0810: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0810 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0710 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0710 + * @tc.desc TextPicker单列range为string[];首次渲染:藏文+ RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0710 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0710"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0710: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0710 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0760 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0760 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:维吾尔文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0760 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0760"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0760: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0760 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0800 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0800 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:藏文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0800 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0800"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0800: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0800 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0820 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0820 + * @tc.desc TextPicker单列range为string[];首次渲染:繁体中文+ RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0820', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0820 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0820"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0820: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0820 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0330 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0330 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:维吾尔文+ RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0330 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0330"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0330: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0330 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0370 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0370 + * @tc.desc TextPicker多列range为string[][];首次渲染:英文+ LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0370 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0370"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0370: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0370 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0350 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0350 + * @tc.desc TextPicker单列range为Resource;首次渲染:繁体中文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0350 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0350"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0350: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0350 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0340 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0340 + * @tc.desc TextPickerDialog多列range为string[][];首次渲染:藏文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0340 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0340"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0340 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0390 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0390 + * @tc.desc TextPickerDialog多列range为string[][];首次渲染:简体中文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0390 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0390"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0390 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0690 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0690 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:繁体中文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0690 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0690"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0690: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0690 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0410 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0410 + * @tc.desc TextPicker单列range为Resource;首次渲染:藏文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0410 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0410"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const rect = await textPicker.getBounds(); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0410: ${JSON.stringify(rect)}`); + await driver.swipe((rect.left + rect.right) / 2, rect.top + 10, (rect.left + rect.right) / 2, rect.bottom - 10); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0410 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0400 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0400 + * @tc.desc TextPickerDialog单列range为带图片TextPickerRangeContent[];首次渲染:繁体中文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0400 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0400"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0400 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0420 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0420 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:英文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0420 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0420"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0420 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0380 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0380 + * @tc.desc TextPickerDialog单列range为Resource;首次渲染:藏文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0380 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0380"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0380 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0360 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0360 + * @tc.desc TextPicker多列range为string[][]:首次渲染:藏文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0360 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0360"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0360 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0430 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0430 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[]; 首次渲染:英语+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0430 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0430"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0430 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0450 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0450 + * @tc.desc TextPicker单列range为Resource;首次渲染:繁体中文 + RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0450 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0450"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0450 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0830 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0830 + * @tc.desc TextPicker单列range为Resource;首次渲染:维吾尔文 + RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0830 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0830"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0830 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0470 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0470 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:藏文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0470 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0470"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0470 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0440 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0440 + * @tc.desc TextPicker单列range为Resource;首次渲染:简体中文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0440 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0440"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0440 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0870 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0870 + * @tc.desc TextPicker多列range为string[][];首次渲染:维吾尔文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0870 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0870"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0870 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0890 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0890 + * @tc.desc TextPickerDialog多列range为string[][];首次渲染:维吾尔文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0890', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0890 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0890"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0890 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0900 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0900 + * @tc.desc TextPicker单列range为Resource;首次渲染:维吾尔文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0900 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0900"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0900 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0910 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0910 + * @tc.desc TextPicker多列range为string[][];首次渲染:藏文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0910', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0910 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0910"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0910 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0840 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0840 + * @tc.desc TextPickerDialog多列range为TextCascadePickerRangeContent;首次渲染:藏文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0840', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0840 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0840"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + ; + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0840 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0480 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0480 + * @tc.desc TextPicker单列range为Resource;首次渲染:英文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0480 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0480"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0480 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0930 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0930 + * @tc.desc TextPickerDialog单列range为Resource;首次渲染:繁体中文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0930', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0930 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0930"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0930 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0950 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0950 + * @tc.desc TextPicker单列range为Resource;首次渲染:英文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0950', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0950 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0950"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0950 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0850 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0850 + * @tc.desc TextPicker单列range为string[];首次渲染:英文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0850', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0850 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0850"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0850 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0880 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0880 + * @tc.desc TextPickerDialog单列range为Resource;首次渲染:简体中文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0880', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0880 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0880"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0880 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0860 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0860 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:英文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0860', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0860 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0860"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0860 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0940 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0940 + * @tc.desc TextPicker多列range为string[][];首次渲染:繁体中文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0940', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0940 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0940"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0940 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0970 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0970 + * @tc.desc TextPicker多列range为string[][];首次渲染:英文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0970 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0970"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0970 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0490 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0490 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:简体中文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0490 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0490"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0490 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0960 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0960 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:英文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0960', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0960 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0960"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0960 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0920 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0920 + * @tc.desc TextPicker多列range为TextCascadePickerRangeContent;首次渲染:藏文+Auto + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0920', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0920 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0920"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0920 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0500 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0500 + * @tc.desc TextPicker多列range为string[][];首次渲染:繁体中文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0500 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0500"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0500 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0980 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0980 + * @tc.desc TextPicker单列range为带图片TextPickerRangeContent[];首次渲染:繁体中文+LTR + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0980 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0980"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0980 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_1000 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_1000 + * @tc.desc TextPickerDialog多列range为string[][];首次渲染:繁体中文 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_1000', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_1000 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage1000"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_1000 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0990 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0990 + * @tc.desc TextPicker单列range为Resource;首次渲染:藏文+RTL + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0990', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0990 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0990"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const showTextPicker: Component = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPicker.click(); + await Utils.sleep(1000); + const directionRtl: Component = await driver.findComponent(ON.id('direction_bt')); + await directionRtl.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y - 50, point.x, point.y + 50); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0990 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerOverBoundaryReboundTest/UIComponentButtonTextPickerOverBoundaryRebound.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerOverBoundaryReboundTest/UIComponentButtonTextPickerOverBoundaryRebound.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..d45a8cee8b131934a97b900e53ffa8085459ac40 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTextPickerOverBoundaryReboundTest/UIComponentButtonTextPickerOverBoundaryRebound.test.ets @@ -0,0 +1,155 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, ON, Component } from '@ohos.UiTest'; + +export default function UIComponentButtonTextPickerOverBoundaryReboundTest() { + describe('UIComponentButtonTextPickerOverBoundaryReboundTest', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0050 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0050 + * @tc.desc 多列range为TextCascadePickerRangeContent[]:验证TextPicker的拖拽过界、惯性拋滑过界场景 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0050 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0050"); + const driver: Driver = Driver.create(); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y, point.x, point.y + 150); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y + 50, point.x, point.y - 200); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y, point.x, point.y + 250, 1500); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y + 50, point.x, point.y - 200, 1500); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0040 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0040 + * @tc.desc 多列range为string[][]:验证 TextPicker的拖拽过界、惯性抛滑过界场景 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0040 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0040"); + const driver: Driver = Driver.create(); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y, point.x, point.y + 150); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y + 50, point.x, point.y - 200); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y, point.x, point.y + 250, 1500); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y + 50, point.x, point.y - 200, 1500); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0040 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0030 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0030 + * @tc.desc 单列range为带图片TextPickerRangeContent[]:验证 TextPicker的拖拽过界、惯性抛滑过界场景 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0030"); + const driver: Driver = Driver.create(); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y, point.x, point.y + 150); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y + 50, point.x, point.y - 200); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y, point.x, point.y + 250, 1500); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y + 50, point.x, point.y - 200, 1500); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0020 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0020 + * @tc.desc 单列range为string[]:验证 TextPicker的拖拽过界、惯性抛滑过界场景 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0020 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0020"); + const driver: Driver = Driver.create(); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y, point.x, point.y + 250); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y + 50, point.x, point.y - 300); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y, point.x, point.y + 350, 1500); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y + 50, point.x, point.y - 350, 1500); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0010 + * @tc.desc 单列range为Resource:验证 TextPicker的拖拽过界、惯性拋滑过界场景 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0010"); + const driver: Driver = Driver.create(); + const textPicker: Component = await driver.findComponent(ON.id('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y, point.x, point.y + 150); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y + 50, point.x, point.y - 200); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y, point.x, point.y + 250, 1500); + await Utils.sleep(1000); + await driver.swipe(point.x, point.y + 50, point.x, point.y - 200, 1500); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_OVERBOUNDARYREBOUND_0010 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTimepickerEventTest/UIComponentButtonTimepickerEvent.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTimepickerEventTest/UIComponentButtonTimepickerEvent.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..97f0bd2f0f25876f06aaab17dc4faf808274781f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTimepickerEventTest/UIComponentButtonTimepickerEvent.test.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 { 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 uiAppearance from '@ohos.uiAppearance'; +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; +import { Component, Driver, ON } from '@ohos.UiTest'; + +export default function UIComponentButtonTimepickerEvent() { + describe('UIComponentButtonTimepickerEvent', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_EVENT_0020 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_EVENT_0020 + * @tc.desc 在TimePicker组件中,onChange?:(value:               TimePickerResult)=>void;:滑动选择器,当前选择项改变时的触发 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_EVENT_0020', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentButtonTimepickerEvent/UIComponentButtonTimepickerEvent0020"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showButton = await driver.findComponent(ON.id('showButton')); + await showButton.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('9'))).click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTimepickerInterfaceTest/UIComponentButtonTimepickerInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTimepickerInterfaceTest/UIComponentButtonTimepickerInterface.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..ebea39c597d8dc4d407d4b5c8998be6a4c7be9b3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTimepickerInterfaceTest/UIComponentButtonTimepickerInterface.test.ets @@ -0,0 +1,447 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 { DisplayRotation, Driver, ON, Component } from '@ohos.UiTest'; + +export default function UIComponentButtonTimepickerInterface() { + describe('UIComponentButtonTimepickerInterface', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0290 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0290 + * @tc.desc 在TimePicker组件中,验证通用属性size设置 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0290 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0290"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0290 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0010 + * @tc.desc 在TimePicker组件中,useMilitaryTime:false + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0010"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0010 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0260 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0260 + * @tc.desc 在TimePicker组件中,验证通用属性padding为Length行 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0260 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0260"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0260 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0280 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0280 + * @tc.desc 在TimePicker组件中,验证通用属性padding默认值 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0280 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0280"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0280 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0110 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0110 + * @tc.desc 在TimePicker组件中,验证入参selected为data类型 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0110 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0110"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0110 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0030 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0030 + * @tc.desc 在TimePicker组件中,useMilitaryTime:默认 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0030"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0030 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0150 + * @tc.desc 在TimePicker组件中,验证向下拖拽功能 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0150 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0150"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let text = await driver.findComponent(ON.text('7')); + let point = await text.getBoundsCenter(); + await driver.swipe(point.x, point.y, point.x, point.y + 300); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0150 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0200 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0200 + * @tc.desc 在TimePicker组件中,验证通用属性constraintSize为百分比 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0200 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0200"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0200 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0020 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0020 + * @tc.desc 在TimePicker组件中,useMilitaryTime:true + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0020 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0020"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0020 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0230 + * @tc.desc 在TimePicker组件中,验证通用属性margin为Length行 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0230 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0230"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0230 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0130 + * @tc.desc 在TimePicker组件中,验证入参selected未选择 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0130 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0130"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0130 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0210 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0210 + * @tc.desc 在TimePicker组件中,验证通用属性height子父组件设置异常 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0210 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0210"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0210 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0360 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0360 + * @tc.desc 在TimePicker组件中,验证12小时制转换24小时制 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0360 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0360"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentButtonTimepickerInterface0360_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(500); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0360 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0140 + * @tc.desc 在TimePicker组件中,验证向上组合拖拽功能 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0140 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let text = await driver.findComponent(ON.text('9')); + let point = await text.getBoundsCenter(); + await driver.swipe(point.x, point.y, point.x, point.y - 200); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0140 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0160 + * @tc.desc 在TimePicker组件中,验证向右拖拽功能 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0160 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0160"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let text = await driver.findComponent(ON.text('9')); + let point = await text.getBoundsCenter(); + await driver.swipe(point.x, point.y, point.x + 200, point.y); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0160 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0170 + * @tc.desc 在TimePicker组件中,验证向左拖拽功能 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0170 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let text = await driver.findComponent(ON.text('9')); + let point = await text.getBoundsCenter(); + await driver.swipe(point.x, point.y, point.x - 200, point.y); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0170 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0250 + * @tc.desc 在TimePicker组件中,验证通用属性margin默认值 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0250 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0250"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0250 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0370 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0370 + * @tc.desc 在TimePicker组件中,验证点击事件触发滑动 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0370 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0370"); + await Utils.sleep(1000); + const driver = Driver.create(); + const bt1 = await driver.findComponent(ON.id('button1')); + await Utils.sleep(200); + const bt2 = await driver.findComponent(ON.id('button2')); + await Utils.sleep(200); + await bt1.click(); + await Utils.sleep(1000); + await bt2.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0370 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0220 + * @tc.desc 在TimePicker组件中,验证通用属性height子父组件设置正常 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0220 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0220"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0220 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0240 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0240 + * @tc.desc 在TimePicker组件中,验证通用属性margin为百分比 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0240 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0240"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0240 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0270 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0270 + * @tc.desc 在TimePicker组件中,验证通用属性padding为百分比 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0270 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0270"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0270 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0190 + * @tc.desc 在TimePicker组件中,验证通用属性constraintSize为minWidth大于maxWidth + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0190 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0190"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0190 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0310 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0310 + * @tc.desc 在TimePicker组件中,验证通用属性width子父组件设置正常 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0310 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0310"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0310 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0180 + * @tc.desc 在TimePicker组件中,验证向组合拖拽功能 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0180 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0180"); + await Utils.sleep(1000); + const driver = Driver.create(); + const picker = await driver.findComponent(ON.type('TimePicker')); + const point = await picker.getBoundsCenter(); + await driver.swipe(point.x, point.y, point.x + 50, point.y - 70); + await driver.swipe(point.x, point.y - 70, point.x, point.y + 70); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0180 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0300 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0300 + * @tc.desc 在TimePicker组件中,验证通用属性width子父组件设置异常 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0300 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0300"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_INTERFACE_0300 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTimepickerNumericTest/UIComponentButtonTimepickerNumeric.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTimepickerNumericTest/UIComponentButtonTimepickerNumeric.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..08f1e911fd1f7b4e21af3f136672e6440a5d14ba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonTimepickerNumericTest/UIComponentButtonTimepickerNumeric.test.ets @@ -0,0 +1,2725 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, afterEach, it } from '@ohos/hypium'; +import 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 UIComponentButtonTimepickerNumeric() { + describe('UIComponentButtonTimepickerNumeric', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1430 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1430 + * @tc.desc Observe the hour/minute/second time display + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1430 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1430"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1430 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0210 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0210 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"null",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0210 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0210"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0210 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1330 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1330 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{undefined} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1330 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1330"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1330 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1590 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1590 + * @tc.desc Observe the hour/minute/second time display + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1590 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1590"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1590 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0770 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0770 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"null"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0770', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0770 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0770"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0770 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1300 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1300 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{minute:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1300 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1300"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1300 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0570 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0570 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"null",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0570 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0570"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0570 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1570 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1570 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"null",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1570 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1570"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1570 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0250 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0250 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0250 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0250"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0250 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1320 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1320 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1320 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1320"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1320 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1530 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1530 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"undefined",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1530 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1530"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1530 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0750 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0750 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"numeric"second:"null"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0750 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0750"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0750 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1250 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1250 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:""} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1250 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1250"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1250 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0540 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0540 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"undefined",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0540 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0540"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0540 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1510 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1510 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1510 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1510"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1510 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0220 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0220 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"null",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0220 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0220"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0220 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1280 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1280 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1280 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1280"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1280 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1480 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1480 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为(hour:"",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1480 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1480"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1480 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0700 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0700 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0700 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0700"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0700 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1220 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1220 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"null"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1220 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1220"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1220 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0550 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0550 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"null",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0550 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0550"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0550 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0610 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0610 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0610 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0610"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0610 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0280 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0280 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:"undefined"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0280 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0280"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0280 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1390 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1390 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1390 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1390"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1390 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1520 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1520 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1520 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1520"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1520 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0790 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0790 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:""} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1520 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0790"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0790 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1310 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1310 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1310 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1310"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1310 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1490 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1490 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1490 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1490"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1490 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0560 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0560 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"null",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0560 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0560"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0560 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0740 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0740 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"undefined"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0740 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0740"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0740 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1230 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1230 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:""} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1230 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1230"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1230 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1580 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1580 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"null",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1580 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1580"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1580 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0530 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0530 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"undefined",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0530 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0530"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0530 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1410 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1410 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1410 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1410"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1410 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0780 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0780 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:""} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0780 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0780"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0780 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0260 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0260 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0260 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0260"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0260 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1270 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1270 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1270 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1270"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1270 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1350 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1350 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的,不调用国际化接口 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1350 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1350"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1350 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0600 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0600 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions{hour:"", minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0600 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0600"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0600 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1420 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1420 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"undefined",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1420 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1420"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1420 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0240 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0240 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0240 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0240"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0240 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1380 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1380 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"numeric"second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1380 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1380"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1380 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1500 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1500 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1500 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1500"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1500 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1630 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1630 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:"undefined"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1630 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1630"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1630 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1290 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1290 + * @tc.desc "1.启动应用2.设置设置dateTimeOptions为{hour:""2-digit"",minute:""numeric"",second:""undefined""}3.观察时/分/秒时间显示" + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1290 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1290"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1290 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1460 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1460 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"null",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1460 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1460"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1460 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0590 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0590 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0590 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0590"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0590 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0720 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0720 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:"undefined"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0720 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0720"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0720 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1260 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1260 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1260 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1260"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1260 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0580 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0580 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0580 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0580"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0580 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1440 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1440 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"undefined",minute:"numeric"second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1440 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1440"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1440 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0230 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0230 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"null",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0230 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0230"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0230 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1340 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1340 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{null} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1340 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1340"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1340 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1560 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1560 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"null",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1560 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1560"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1560 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0310 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0310 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:"null"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0310 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0310"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0310 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1400 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1400 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1400 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1400"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1400 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1540 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1540 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"undefined",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1540 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1540"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1540 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0290 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0290 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"undefined"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0290 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0290"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0290 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1790 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1790 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{null} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1790 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1790"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1790 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1550 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1550 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"undefined",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1550 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1550"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1550 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0270 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0270 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:"undefined"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0270 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0270"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0270 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1100 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1100 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"undefined",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1100 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1100"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1360 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1360 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour"numeric",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1360 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1360"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1360 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0330 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0330 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:""} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0330 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0330"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0330 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1370 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1370 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1370 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1370"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1370 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1050 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1050 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1050 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1050"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0300 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0300 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:"null"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0300 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0300"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0300 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0850 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0850 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{minute:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0850', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0850 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0850"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0850 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1090 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1090 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"undefined",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1090 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1090"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0380 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0380 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0380 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0380"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0380 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1800 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1800 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的,不调用国际化接口 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1800 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1800"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1800 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1060 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1060 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit”,minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1060 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1060"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1060 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0320 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0320 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"null"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0320 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0320"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0320 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0840 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0840 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0840', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0840 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0840"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0840 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0980 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0980 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"undefined",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0980 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0980"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0980 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1010 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"null",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1010"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0020 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0020 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0020 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0020"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0340 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0340 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:""} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0340 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0340"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0340 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1160 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1160 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1160 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1160"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0860 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0860 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0860', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0860 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0860"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0860 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1680 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1680 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"numeric"second:""} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1680 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1680"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1680 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1030 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1030 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1030"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0970 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0970 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"undefined",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0970 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0970"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0970 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0350 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0350 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:""} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0350 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0350"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0350 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0110 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0110 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"null",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0110 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0110"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0110 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1020 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1020 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"null",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1020 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1020"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1170 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1170 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:"undefined"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1170 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1170"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1170 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1780 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1780 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{undefined} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1780 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1780"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1780 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0400 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0400 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{minute:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0400 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0400"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0400 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0870 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0870 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0870 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0870"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0870 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1070 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1070 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1070 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1070"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0370 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0370 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0370 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0370"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0370 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0880 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0880 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{undefined} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0880', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0880 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0880"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0880 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1120 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1120 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"null",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1120 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1120"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1650 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1650 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:"null"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1650', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1650 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1650"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1650 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0960 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0960 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0960', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0960 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0960"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0960 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1180 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1180 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:"undefined"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1180 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1180"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1180 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0390 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0390 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"humeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0390 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0390"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0390 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0890 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0890 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{null} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0890', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0890 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0890"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0890 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0090 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0090 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"undefined",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0090 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0090"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1140 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1140 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1140 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1140"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1140 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0360 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0360 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0360 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0360"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0360 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0930 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0930 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0930', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0930 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0930"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0930 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0080 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0080 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"undefined",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0080 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0080"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0080 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1200 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1200 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:"null"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1200 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1200"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1200 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1660 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1660 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit”,minute:"numeric",second:"null"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1660 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1660"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1660 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0950 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0950 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0950', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0950 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0950"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0950 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0050 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0050 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit”,minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0050 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0050"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1040 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1040 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1040 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1040"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1040 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1640 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1640 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"undefined"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1640 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1640"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1640 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1690 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1690 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:""} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1690 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1690"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1690 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0910 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0910 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的12小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0910', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0910 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0910"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0910 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0120 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0120 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"null",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0120 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0120"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1080 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1080 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"undefined",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1080 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1080"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1080 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0800 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0800 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:""} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0800 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0800"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0800 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1000 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1000 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"null",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1000', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1000 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1000"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1000 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0060 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0060 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0060 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0060"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0060 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1150 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1150 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1150 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1150"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1610 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1610 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1610 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1610"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1610 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0900 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0900 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的,不调用国际化接口 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0900 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0900"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0900 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0100 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0100 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"null",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0100 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0100"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1130 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1130 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"null",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1130 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1130"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1670 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1670 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"null"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1670 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1670"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1670 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0920 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0920 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0920', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0920 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0920"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0920 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0180 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0180 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"undefined",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0180 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0180"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0180 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1190 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1190 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"undefined"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1190 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1190"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1190 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1730 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1730 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1730', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1730 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1730"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1730 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0940 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0940 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0940', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0940 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0940"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0940 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0170 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0170 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0170 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0170"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0170 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1110 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1110 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"null",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1110 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1110"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1110 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1740 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1740 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1740 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1740"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1740 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0990 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0990 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"undefined",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0990', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0990 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0990"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0990 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0070 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0070 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"undefined",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0070 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0070"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0070 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1600 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1600 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1600 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1600"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1600 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1760 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1760 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1760 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1760"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1760 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0410 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0410 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0410 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0410"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0410 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0140 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0140 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0140 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0140"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0140 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0630 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0630 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"undefined",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0630 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0630"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0630 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1710 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1710 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1710 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1710"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1710 finish.`); + done(); + }); + + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0030"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0030 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0420 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0420 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0420 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0420"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0420 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0620 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0620 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0620 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0620"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0620 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1720 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1720 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1720 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1720"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1720 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0430 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0430 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{undefined} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0430 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0430"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0430 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0010 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的12小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0010"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0010 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0650 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0650 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"undefined",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0650', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0650 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0650"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0650 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1750 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1750 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{minute:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1750 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1750"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1750 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0440 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0440 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{null} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0440 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0440"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0440 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0040 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0040 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0040 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0040"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0040 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0710 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0710 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0710 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0710"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0710 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1620 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1620 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"numeric"second:"undefined"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1620 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1620"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1620 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0450 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0450 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的,不调用国际化接口 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0450 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0450"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0450 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0130 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0130 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0130 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0130"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0130 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0670 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0670 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"null",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0670 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0670"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0670 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0820 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0820 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0820', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0820 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0820"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0820 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0460 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0460 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0460 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0460"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0460 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0160 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0160 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0160 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0160"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0160 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0640 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0640 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"undefined",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0640 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0640"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0640 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1700 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1700 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:""} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1700 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1700"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1700 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0470 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0470 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0470 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0470"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0470 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0200 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0200 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"numeric",minute:"undefined",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0200 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0200"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0200 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0690 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0690 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0690 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0690"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0690 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0830 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0830 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0830 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0830"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0830 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0480 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0480 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0480 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0480"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0480 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0190 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0190 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"undefined",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0190 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0190"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0190 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0680 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0680 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"null",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0680 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0680"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0680 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0810 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0810 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0810 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0810"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0810 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0490 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0490 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"2-digit",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0490 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0490"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0490 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0150 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0150 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0150 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0150"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0150 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0660 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0660 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"numeric",minute:"null",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0660 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0660"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0660 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1770 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1770 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1770', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1770 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1770"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1770 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0510 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0510 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"2-digit",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0510 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0510"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0510 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1470 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1470 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"null",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1470 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1470"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1470 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0760 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0760 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:"null"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0760 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0760"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0760 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1210 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1210 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:"null"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1210 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1210"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1210 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0500 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0500 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:"2-digit"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0500 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0500"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0500 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1450 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1450 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"null",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1450 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1450"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1450 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0730 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0730 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:"undefined"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0730', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0730 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0730"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0730 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1240 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1240 + * @tc.desc 1.Time Format为:HOUR_MINUTE 2.设置TimePicker的的12小时制的dateTimeOptions为{hour:"2-digit",minute:"numeric",second:""} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1240 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1240"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_1240 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0520 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0520 + * @tc.desc 1.Time Format为:HOUR_MINUTE_SECOND 2.设置TimePicker的的24小时制的dateTimeOptions为{hour:"undefined",minute:"numeric",second:"numeric"} + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0520 start.`); + Settings.createWindow("testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0520"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TIMEPICKER_NUMERIC_0520 finish.`); + done(); + }); + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleCustomizingTest/UIComponentButtonToggleCustomizing.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleCustomizingTest/UIComponentButtonToggleCustomizing.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..9167732f728640cef03c644aa1abf89ca9e1c0c4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleCustomizingTest/UIComponentButtonToggleCustomizing.test.ets @@ -0,0 +1,316 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, afterEach, it } from '@ohos/hypium'; +import Settings from '../model/Settings'; +import windowSnap from '../model/snapShot'; +import Logger from '../model/Logger'; +import Utils from '../model/Utils'; +import { Driver, ON } from '@ohos.UiTest'; + +export default function UIComponentButtonToggleCustomizingTest() { + describe('UIComponentButtonToggleCustomizingTest', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0010 + * @tc.desc 自定义buildToggle,设置isOn为true,enabled为true,设置text,显示当前isOn、enabled的值,使用triggerChange,进行选中状态改变 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0010"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0020 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0020 + * @tc.desc 自定义buildToggle,设置isOn为null,enabled为true,设置text,显示当前isOn、enabled的值,使用triggerChange,进行选中状态改变 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0020 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0020"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0030 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0030 + * @tc.desc 自定义buildToggle,设置isOn为undefined,enabled为true,设置text,显示当前isOn、enabled的值,使用triggerChange,进行选中状态改变 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0030"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0050 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0050 + * @tc.desc 自定义buildToggle,设置enabled:undefined,设置text,显示enabled数值 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0050 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0050"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0060 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0060 + * @tc.desc 自定义buildToggle,设置enabled:null,设置text,显示enabled数值 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0060 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0060"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0060 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0070 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0070 + * @tc.desc 自定义buildToggle,contentModifier设置为undefined + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0070 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0070"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0080 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0080 + * @tc.desc 自定义buildToggle,contentModifier设置为null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0080 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0080"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0080 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0090 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0090 + * @tc.desc 自定义buildToggle,不设置 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0090 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0090"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0100 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0100 + * @tc.desc 自定义buildRadio,使用triggerChange,给toggle设置onchange事件,triggerChange可以触发onChange + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0100 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0100"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0110 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0110 + * @tc.desc 设置Toggle组件,自定义buildToggle中设置triggerChange都为null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0110 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0110"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0110 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0120 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0120 + * @tc.desc 设置Toggle组件,自定义buildToggle中设置triggerChange都为undefined + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0120 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0120"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0130 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0130 + * @tc.desc contentModifier传参类型为number:123465 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0130 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0130"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0140 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0140 + * @tc.desc contentModifier传参类型为number:-10.55555 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0140 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0140"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0140 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0150 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0150 + * @tc.desc contentModifier传参类型为string:嘻嘻哈哈&-…%% + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0150 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0150"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0170 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0170 + * @tc.desc 调用2个contentModifier + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0170 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0170"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let SliderCom = await driver.findComponent(ON.id("buildToggle")); + let pointCenter = await SliderCom.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_CUSTOMIZING_0170 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleEventTest/UIComponentButtonToggleEvent.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleEventTest/UIComponentButtonToggleEvent.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..b980091c868995b7e64b6853c23d29aa4266f45f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleEventTest/UIComponentButtonToggleEvent.test.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 { 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 { Driver, ON } from '@kit.TestKit'; + +export default function UIComponentButtonToggleEvent() { + describe('UIComponentButtonToggleEvent', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_EVENT_0010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_EVENT_0010 + * @tc.desc Toggle.Button自适应Text文本大小验证 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_EVENT_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_EVENT_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleEvent/UIComponentButtonToggleEvent0010"); + await Utils.sleep(2000); + await windowSnap.snapShot('1'); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let Button = await driver.findComponent(ON.id("Button")); + await Button.click(); + await Utils.sleep(300); + await windowSnap.snapShot('2'); + await Utils.sleep(1000); + await Button.click(); + await Utils.sleep(300); + await windowSnap.snapShot('3'); + await Utils.sleep(1000); + await Button.click(); + await Utils.sleep(300); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_EVENT_0010 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleInteractionTest/UIComponentButtonToggleInteraction.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleInteractionTest/UIComponentButtonToggleInteraction.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..8ceea0869a0977d73b9d06e84f37fc5c17c3f848 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleInteractionTest/UIComponentButtonToggleInteraction.test.ets @@ -0,0 +1,106 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, ON, Component } from '@ohos.UiTest'; +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +export default function UIComponentButtonToggleInteractionTest() { + describe('UIComponentButtonToggleInteractionTest', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0010 + * @tc.desc Toggle组件交互方式验证(手指) + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0010"); + await Utils.sleep(1000); + await windowSnap.snapShot("before"); + const driver: Driver = Driver.create(); + let click = async (id: string[]) => { + for (let i = 0; i < id.length; i++) { + let toggle = await driver.findComponent(ON.id(id[i])); + await toggle.click(); + } + } + await click(["toggle_1", "toggle_2", "toggle_3"]); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0030 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0030 + * @tc.desc Toggle组件交互方式验证(键盘+空格) + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0030"); + await Utils.sleep(1000); + await windowSnap.snapShot("before"); + const driver: Driver = Driver.create(); + let space = async () => { + await driver.triggerKey(2049); + await driver.triggerKey(2050); + } + await space(); + await space(); + await space(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0020 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0020 + * @tc.desc Toggle组件交互方式验证(键盘+Enter) + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0020 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0020"); + await Utils.sleep(1000); + await windowSnap.snapShot("before"); + const driver: Driver = Driver.create(); + let enter = async () => { + await driver.triggerKey(2049); + await driver.triggerKey(2054); + } + await enter(); + await enter(); + await enter(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERACTION_0020 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleInterfaceTest/UIComponentButtonToggleInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleInterfaceTest/UIComponentButtonToggleInterface.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..ebfe78afdca2850d624bc39ad6adb2b363b88822 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleInterfaceTest/UIComponentButtonToggleInterface.test.ets @@ -0,0 +1,149 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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'; + +export default function UIComponentButtonToggleInterface() { + describe('UIComponentButtonToggleInterface', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0010 + * @tc.desc switchPointColor仅在ToggleType.Switch下生效验证 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0010"); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0040 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0040 + * @tc.desc ToggleType.Checkbox margin默认值验证 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0040 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0040"); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0040 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0070 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0070 + * @tc.desc ToggleType.Switch margin默认值验证 + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0070 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0070"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0170 + * @tc.desc Toggle属性selectedColor为undefined + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0170"); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0330 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0220 + * @tc.desc Toggle组件设置isOn为null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0220 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0220"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0220 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0230 + * @tc.desc Toggle组件设置isOn为undefined + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0230 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0230"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0230 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0250 + * @tc.desc Toggle组件设置selectedColor为null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0250 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0250"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0250 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0330 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0330 + * @tc.desc Toggle组件设置switchPointColor入参为undefined + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0330 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0330"); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_INTERFACE_0330 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleMirrorTest/UIComponentButtonToggleMirror.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleMirrorTest/UIComponentButtonToggleMirror.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..1eba5ffd0d5c58b9c803f6cb2565aa731bc04972 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonToggleMirrorTest/UIComponentButtonToggleMirror.test.ets @@ -0,0 +1,198 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 { Driver, ON } from '@ohos.UiTest'; + +export default function UIComponentButtonToggleMirror() { + describe('UIComponentButtonToggleMirror', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0100 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0100 + * @tc.desc toggle组件Switch、Button、Checkbox类型镜像(设置direction场景) + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0100 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0100"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let Button = await driver.findComponent(ON.id("Button")); + await Button.click(); + await windowSnap.snapShot('1'); + await Utils.sleep(300); + await Button.click(); + await windowSnap.snapShot('2'); + await Utils.sleep(300); + await Button.click(); + await windowSnap.snapShot('3'); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0010 + * @tc.desc toggle组件Switch、Button、Checkbox类型镜像(在应用开启后系统切换语言) + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0010"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0070 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0070 + * @tc.desc toggle组件Switch、Button、Checkbox类型镜像(锁屏在开启场景) + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0070 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0070"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0030 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0030 + * @tc.desc toggle组件Switch、Button、Checkbox类型镜像(设置切换应用语言) + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0030"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let Button = await driver.findComponent(ON.id("Button")); + await Button.click(); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0120 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0120 + * @tc.desc toggle组件Switch、Button、Checkbox类型镜像(设置margin属性) + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0120 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0120"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0130 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0130 + * @tc.desc toggle组件Switch、Button、Checkbox类型镜像(设置padding属性) + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0130 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0130"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0110 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0110 + * @tc.desc toggle组件Switch、Button、Checkbox类型镜像(子组件Text设置direction场景) + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0110 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0110"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let Button = await driver.findComponent(ON.id("Button")); + await Button.click(); + await windowSnap.snapShot('1'); + await Utils.sleep(300); + await Button.click(); + await windowSnap.snapShot('2'); + await Utils.sleep(300); + await Button.click(); + await windowSnap.snapShot('3'); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0110 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0090 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0090 + * @tc.desc toggle组件Switch、Button、Checkbox类型镜像(modifier场景) + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0090 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0090"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0140 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0140 + * @tc.desc toggle组件Switch、Button、Checkbox类型镜像(设置不同语言场景) + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0140 start.`); + Settings.createWindow("testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0140"); + await Utils.sleep(4000); + let driver: Driver = Driver.create(); + let Button = await driver.findComponent(ON.id("Button")); + await Button.click(); + await windowSnap.snapShot('1'); + await Utils.sleep(300); + await Button.click(); + await windowSnap.snapShot('2'); + await Utils.sleep(300); + await Button.click(); + await windowSnap.snapShot('3'); + await Utils.sleep(300); + await Button.click(); + await windowSnap.snapShot('4'); + await Utils.sleep(4000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TOGGLE_MIRROR_0140 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionFormSelectionTimePickerLanguageOrderTest/UIComponentFunctionFormSelectionTimePickerLanguageOrder.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionFormSelectionTimePickerLanguageOrderTest/UIComponentFunctionFormSelectionTimePickerLanguageOrder.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..cc225d3dd0bb8ab6e2060a236286f3cb0cb12d25 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionFormSelectionTimePickerLanguageOrderTest/UIComponentFunctionFormSelectionTimePickerLanguageOrder.test.ets @@ -0,0 +1,530 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { afterEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, ON, Component, Point, Rect } from '@ohos.UiTest'; + +export default function UIComponentFunctionFormSelectionTimePickerLanguageOrder() { + describe('UIComponentFunctionFormSelectionTimePickerLanguageOrder', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0020 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0020 + * @tc.desc 验证TimePickerDialog的(12小时制、时分秒)首次渲染:简体中文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0020', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0020 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0020"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0020 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0060 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0060 + * @tc.desc 验证TimePickerDialog的(12小时制、时分秒)首次渲染:藏文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0060', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0060 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0060"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0060 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0070 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0070 + * @tc.desc 验证TimePickerDialog的(12小时制、时分秒)首次渲染:维吾尔文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0070', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0070 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0070"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0070 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0100 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0100 + * @tc.desc 验证TimePickerDialog的(12小时制、时分秒)首次渲染:繁体中文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0100', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0100 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0100"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0100 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0120 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0120 + * @tc.desc 验证TimePickerDialog的(24小时制、时分)首次渲染:繁体中文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0120', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0120 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0120"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0120 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0150 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0150 + * @tc.desc 验证TimePicker的(24小时制、时分)首次渲染:简体中文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0150', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0150 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0150"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0150 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0050 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0050 + * @tc.desc 验证TimePicker的(24小时制、时分)首次渲染:藏文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0050', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0050 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0050"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0050 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0200 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0200 + * @tc.desc 验证TimePicker的(24小时制、时分)首次渲染:维吾尔文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0200', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0200 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0200"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0200 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0230 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0230 + * @tc.desc 验证TimePicker的(24小时制、时分)首次渲染:繁体中文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0230', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0230 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0230"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0230 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0160 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0160 + * @tc.desc 验证TimePickerDialog的(24小时制、时分)首次渲染:维吾尔文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0160', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0160 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0160"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0160 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0180 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0180 + * @tc.desc 验证TimePickerDialog的(24小时制、时分)首次渲染:简体中文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0180', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0180 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0180"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0180 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0190 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0190 + * @tc.desc 验证TimePickerDialog的(12小时制、时分秒)首次渲染:英文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0190', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0190 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0190"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(5000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0190 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0220 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0220 + * @tc.desc 验证TimePickerDialog的(24小时制、时分)首次渲染:英文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0220', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0220 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0220"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(5000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0220 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0240 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0240 + * @tc.desc 验证TimePickerDialog的(24小时制、时分)首次渲染:藏文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0240', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0240 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0240"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0240 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0030 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0030 + * @tc.desc 验证TimePicker的(12小时制、时分秒)首次渲染:维吾尔文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0030', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0030 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0030"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0030 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0080 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0080 + * @tc.desc 验证TimePicker的(12小时制、时分秒)首次渲染:藏文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0080', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0080 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0080"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0080 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0140 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0140 + * @tc.desc 验证TimePicker的(12小时制、时分秒)首次渲染:英文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0140', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0140 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0140"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0140 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0130 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0130 + * @tc.desc 验证TimePicker的(12小时制、时分秒)首次渲染:简体中文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0130', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0130 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0130"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(5000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0130 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0170 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0170 + * @tc.desc 验证TimePicker的(12小时制、时分秒)首次渲染:繁体中文 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0170', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0170 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0170"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let picker = await driver.findComponent(ON.id('TimePicker')); + let pickerCenter = await picker.getBoundsCenter(); + await driver.swipe(pickerCenter.x, pickerCenter.y - 50, pickerCenter.x, pickerCenter.y + 50); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0170 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0040 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0040 + * @tc.desc 验证TimePicker的(12小时制、时分秒)首次渲染后动态切换:简体中文切换其他语言 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0040', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0040 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0040"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot('1'); + await Utils.sleep(1000); + let changeLanguageBtn = await driver.findComponent(ON.id('ChangeAppLanguage')); + await changeLanguageBtn.click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0040 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0210 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0210 + * @tc.desc 验证TimePicker的(24小时制、时分)首次渲染后动态切换:简体中文切换其他语言 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0210', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0210 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0210"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + windowSnap.snapShot('1'); + await Utils.sleep(1000); + let changeLanguageBtn = await driver.findComponent(ON.id('ChangeAppLanguage')); + await changeLanguageBtn.click(); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0210 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0090 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0090 + * @tc.desc 验证TimePickerDialog的(24小时制、时分)首次渲染后动态切换: 简体中文切换其他语言 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0090', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0090 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0090"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + //dialog消失 + await button.click(); + let changeLanguageBtn = await driver.findComponent(ON.id('ChangeAppLanguage')); + await changeLanguageBtn.click(); + await Utils.sleep(1000); + //dialog显示 + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0090 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0110 + * @tc.name ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0110 + * @tc.desc 验证TimePickerDialog的(12小时制、时分秒)首次渲染后动态切换:简体中文切换其他语言 + */ + it('ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0110', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0110 start.`); + Settings.createWindow("testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0110"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('29'))).click(); + await Utils.sleep(3000); + //dialog消失 + await button.click(); + let changeLanguageBtn = await driver.findComponent(ON.id('ChangeAppLanguage')); + await changeLanguageBtn.click(); + await Utils.sleep(1000); + //dialog显示 + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_BASICCONTAINER_FORMSELECTION_TIMEPICKER_LANGUAGEORDER_0110 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionSpecialComponentsDialogTextPickerDialogTest/UIComponentFunctionSpecialComponentsDialogTextPickerDialog.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionSpecialComponentsDialogTextPickerDialogTest/UIComponentFunctionSpecialComponentsDialogTextPickerDialog.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..e928eb1ed4c118e0e37150c0dd736be01760e940 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionSpecialComponentsDialogTextPickerDialogTest/UIComponentFunctionSpecialComponentsDialogTextPickerDialog.test.ets @@ -0,0 +1,2001 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 uiAppearance from '@ohos.uiAppearance'; +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; +import { Component, Driver, ON } from '@ohos.UiTest'; + +export default function UIComponentFunctionSpecialComponentsDialogTextPickerDialog() { + describe('UIComponentFunctionSpecialComponentsDialogTextPickerDialog', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0510 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0510 + * @tc.desc TextPickerDialog中设置selectedTextStyle中的Color为枚举类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0510', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0510"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0200 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0200 + * @tc.desc selected设置为number类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0200', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0200"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1000 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1000 + * @tc.desc 文本滑动选择器弹窗maskRect中设置x为Resource类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1000', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog1000"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0500 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0500 + * @tc.desc 验证TextPickerDialog中selectedTextStyle对象下参数的非必填性 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0500', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0500"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0150 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0150 + * @tc.desc 设置range为TextPickerRangeContent类型,TextPickerRangeContent下的text参数设置为Resource类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0150', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0150"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0940 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0940 + * @tc.desc 文本滑动选择器弹窗offset设置为String类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0940', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0940"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0490 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0490 + * @tc.desc TextPickerDialog中设置textStyle中font中的family使用自定义字体 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0490', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0490"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0160 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0160 + * @tc.desc 设置range为TextPickerRangeContent类型,TextPickerRangeContent下的text参数设置为string类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0160', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0160"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0980 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0980 + * @tc.desc 文本滑动选择器弹窗maskRect中设置x为空串(maskRect:{x: }) + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0980', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0980"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0470 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0470 + * @tc.desc TextPickerDialog中设置textStyle中font中的family使用一个字体$(Arial) + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0470', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0470"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0080 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0080 + * @tc.desc 验证TextPickerDialog show()中options的非必填性 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0080', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0080"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0950 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0950 + * @tc.desc 文本滑动选择器弹窗offset设置为number类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0950', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0950"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0190 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0190 + * @tc.desc 设置range为TextCascadePickerRangeContent[]类型,TextCascadePickerRangeContent[]下的children参数设置为TextCascadePickerRangeContent[] + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0190', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0190"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0960 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0960 + * @tc.desc 验证maskRect中4个参数的非必填性maskRect{} + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0960', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0960"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0460 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0460 + * @tc.desc TextPickerDialog中设置textStyle中font中的weight为number类型的异常值0 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0460', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0460"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0090 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0090 + * @tc.desc 验证TextPickerDialog中options对象下所有非必填参数的非必填性 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0090', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0090"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0970 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0970 + * @tc.desc 文本滑动选择器弹窗maskRect中设置x为string类型(maskRect:{x:50px}) + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0970', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0970"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0450 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0450 + * @tc.desc TextPickerDialog中设置textStyle中font中的weight为number类型的异常值1000 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0450', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0450"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0170 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0170 + * @tc.desc 设置range为TextCascadePickerRangeContent[]类型,TextCascadePickerRangeContent[]下的text参数设置为string类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0170', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0170"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0480 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0480 + * @tc.desc TextPickerDialog中设置textStyle中font中的family使用多个字体Arial,HarmonyOS Sans + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0480', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0480"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0990 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0990 + * @tc.desc 文本滑动选择器弹窗maskRect中设置x为number类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0990', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0990"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0400 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0400 + * @tc.desc TextPickerDialog中设置textStyle中的Color为string类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0400', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0400"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0100 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0100 + * @tc.desc 设置range为string[]类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0100', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0100"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0930 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0930 + * @tc.desc 文本滑动选择器弹窗offset设置为Resource类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0930', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0930"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0440 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0440 + * @tc.desc TextPickerDialog中设置textStyle中font中的weight为string类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0440', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0440"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0900 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0900 + * @tc.desc 文本滑动选择器弹窗中alignment设置为CenterEnd + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0900', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0900"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0430 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0430 + * @tc.desc TextPickerDialog中设置textStyle中font中的size为Resource类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0430', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0430"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0040 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0040 + * @tc.desc 文本滑动选择器弹窗TextPickerDialog中canLoop设置为true + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0040', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0040"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0920 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0920 + * @tc.desc 文本滑动选择器弹窗中alignment设置为BottomEnd + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0920', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0920"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0420 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0420 + * @tc.desc TextPickerDialog中设置textStyle中font中的size为string类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0420', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0420"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0030 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0030 + * @tc.desc 文本滑动选择器弹窗TextPickerDialog中canLoop设置为false + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0030', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0030"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0910 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0910 + * @tc.desc 文本滑动选择器弹窗中alignment设置为BottomStart + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0910', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0910"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0410 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0410 + * @tc.desc TextPickerDialog中设置textStyle中的Color为Resource类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0410', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0410"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0890 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0890 + * @tc.desc 文本滑动选择器弹窗中alignment设置为CenterStart + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0890', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0890"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0360 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0360 + * @tc.desc TextPickerDialog中设置disappearTextStyle中font中的family使用自定义字体 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0360', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0360"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0880 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0880 + * @tc.desc 文本滑动选择器弹窗中alignment设置为TopEnd + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0880', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0880"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0310 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0310 + * @tc.desc TextPickerDialog中设置disappearTextStyle中font中的weight为string类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0310', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0310"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0870 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0870 + * @tc.desc 文本滑动选择器弹窗中alignment设置为TopStart + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0870', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0870"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0390 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0390 + * @tc.desc TextPickerDialog中设置textStyle中的Color为number类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0390', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0390"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0860 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0860 + * @tc.desc 文本滑动选择器弹窗中alignment设置为Default + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0860', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0860"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0370 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0370 + * @tc.desc 验证TextPickerDialog中textStyle对象下参数的非必填性 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0370', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0370"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0840 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0840 + * @tc.desc 文本滑动选择器弹窗中alignment设置为Center + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0840', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0840"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0340 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0340 + * @tc.desc TextPickerDialog中设置disappearTextStyle中font中的family使用一个字体$(Arial) + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0340', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0340"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0790 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0790 + * @tc.desc 文本滑动选择器弹窗中backgroundBlurStyle设置为COMPONENT_THIN + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0790', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0790"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0380 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0380 + * @tc.desc TextPickerDialog中设置textStyle中的Color为枚举类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0380', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0380"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0850 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0850 + * @tc.desc 文本滑动选择器弹窗中alignment设置为Bottom + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0850', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0850"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0350 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0350 + * @tc.desc TextPickerDialog中设置disappearTextStyle中font中的family使用多个字体ArialHarmonyOS Sans + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0350', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0350"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0820 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0820 + * @tc.desc 文本滑动选择器弹窗中backgroundBlurStyle设置为COMPONENT_ULTRA_THICK + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0820', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0820"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0300 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0300 + * @tc.desc TextPickerDialog中设置disappearTextStyle中font中的size为Resource类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0300', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0300"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0830 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0830 + * @tc.desc 文本滑动选择器弹窗中alignment设置为Top + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0830', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0830"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0320 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0320 + * @tc.desc TextPickerDialog中设置disappearTextStyle中font中的weight为number类型的异常值1000 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0320', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0320"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0120 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0120 + * @tc.desc 设置range为Recource类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0120', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0120 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0120"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0120 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0530 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0530 + * @tc.desc TextPickerDialog中设置selectedTextStyle中的Color为string类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0530', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0530 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0530"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0530 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0560 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0560 + * @tc.desc TextPickerDialog中设置selectedTextStyle中font中的size为Resource类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0560', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0560 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0560"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0560 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0590 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0590 + * @tc.desc TextPickerDialog中设置selectedTextStyle中font中的weight为number类型的异常值0 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0590', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0590 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0590"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0590 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0620 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0620 + * @tc.desc TextPickerDialog中设置selectedTextStyle中font中的family使用自定义字体 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0620', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0620 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0620"); + await Utils.sleep(3000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0620 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0650 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0650 + * @tc.desc 文本滑动选择器弹窗中defaultPickerltemHeight设置为异常值-50 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0650', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0650 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0650"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0650 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1010 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1010 + * @tc.desc 文本滑动选择器弹窗maskRect中设置x为NULL + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1010', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1010 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1010"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1010 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1020 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1020 + * @tc.desc 文本滑动选择器弹窗maskRect中殳置y为string类型(maskRect:{y:50% }) + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1020', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1020 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1020"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1020 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1030 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1030 + * @tc.desc 文本滑动选择器弹窗maskRect中设置y为空串(maskRect:{y: }) + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1030', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1030 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1030"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1030 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1050 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1050 + * @tc.desc 文本滑动选择器弹窗maskRect中设置y为Resource类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1050', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1050 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1050"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1050 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0180 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0180 + * @tc.desc 设置range为TextCascadePickerRangeContent[]类型,TextCascadePickerRangeContent[]下的text参数设置为Resource类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0180', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0180 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0180"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0180 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0570 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0570 + * @tc.desc TextPickerDialog中设置selectedTextStyle中font中的weight为string类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0570', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0570 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0570"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0570 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0240 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0240 + * @tc.desc 验证TextPickerDialog中disappearTextStyle对象下参数的非必填性 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0240', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0240 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0240"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0240 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0670 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0670 + * @tc.desc 文本滑动选择器弹窗中backgroundColor设置为枚举类型Color.Red + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0670', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0670 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0670"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0670 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0110 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0110 + * @tc.desc 设置range为string[][]类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0110', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0110 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0110"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0110 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0130 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0130 + * @tc.desc 设置range为TextPickerRangeContent类型,TextPickerRangeContent下的icon参数设置为string类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0130', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0130 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0130"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0130 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0600 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0600 + * @tc.desc TextPickerDialog中设置selectedTextStyle中font中的family使用一个字体$(Arial) + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0600', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0600 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0600"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0600 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0520 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0520 + * @tc.desc TextPickerDialog中设置selectedTextStyle中的Color为number类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0520', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0520 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0520"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0520 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0220 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0220 + * @tc.desc value设置为string类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0220', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0220 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0220"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0220 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1070 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1070 + * @tc.desc 文本滑动选择器弹窗maskRect中设置width为string类型40% + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1070', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1070 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1070"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1070 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0640 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0640 + * @tc.desc 文本滑动选择器弹窗中defaultPickerltemHeight设置为异常值0px + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0640', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0640 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0640"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0640 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0540 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0540 + * @tc.desc TextPickerDialog中设置selectedTextStyle中的Color为Resource类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0540', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0540 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0540"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0540 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1040 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1040 + * @tc.desc 文本滑动选择器弹窗maskRect中设置y为number类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1040', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1040 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1040"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1040 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0630 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0630 + * @tc.desc 文本滑动选择器弹窗中defaultPickerltemHeight设置为异常值1000 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0630', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0630 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0630"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0630 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0140 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0140 + * @tc.desc 设置range为TextPickerRangeContent类型,TextPickerRangeContent下的icon参数设置为Resource类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0140', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0140 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0140"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0140 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1060 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1060 + * @tc.desc 文本滑动选择器弹窗maskRect中设置y为Undefined + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1060', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1060 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1060"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1060 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0580 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0580 + * @tc.desc TextPickerDialog中设置selectedTextStyle中font中的weight为number类型的异常值1000 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0580', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0580 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0580"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0580 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0550 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0550 + * @tc.desc TextPickerDialog中设置selectedTextStyle中font中的size为string类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0550', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0550 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0550"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0550 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1090 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1090 + * @tc.desc 文本滑动选择器弹窗maskRect中设置width为Resource类型$r(300px) + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1090', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1090 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1090"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1090 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0610 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0610 + * @tc.desc TextPickerDialog中设置selectedTextStyle中font中的family使用多个字体Arial HarmonyOS     Sans + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0610', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0610 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0610"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0610 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1100 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1100 + * @tc.desc 文本滑动选择器弹窗maskRect中设置width为异常值-200 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1100', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1100 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1100"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1100 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0660 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0660 + * @tc.desc 文本滑动选择器弹窗中backgroundColor设置number类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0660', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0660 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0660"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0660 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1130 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1130 + * @tc.desc 文本滑动选择器弹窗maskRect中设置height为Resource类型$r(60%) + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1130', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1130 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1130"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1130 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0680 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0680 + * @tc.desc 文本滑动选择器弹窗中backgroundColor设置为string类型rgb(0,128,0) + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0680', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0680 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0680"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0680 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0210 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0210 + * @tc.desc selected设置为number[]类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0210', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0210 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0210"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0210 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0690 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0690 + * @tc.desc 文本滑动选择器弹窗中backgroundColor设置为Resource类型$r(#800080) + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0690', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0690 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0690"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0690 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1140 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1140 + * @tc.desc 文本滑动选择器弹窗maskRect中设置height为异常值-60% + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1140', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1140 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1140"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1140 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0700 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0700 + * @tc.desc 文本滑动选择器弹窗中backgroundBlurStyle设置为Thin + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0700', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0700 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0700"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0700 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0250 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0250 + * @tc.desc TextPickerDialog中设置disappearTextStyle中的Color为枚举类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0250', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0250 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0250"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0250 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0710 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0710 + * @tc.desc 文本滑动选择器弹窗中backgroundBlurStyle设置为Regular + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0710', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0710 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0710"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0710 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1080 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1080 + * @tc.desc 文本滑动选择器弹窗maskRect中设置width为number类型200 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1080', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1080 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1080"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1080 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0730 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0730 + * @tc.desc 文本滑动选择器弹窗中backgroundBlurStyle设置为BACKGROUND_THIN + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0730', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0730 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0730"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0730 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1120 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1120 + * @tc.desc 文本滑动选择器弹窗maskRect中设置height为number类型200 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1120', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1120 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1120"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1120 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0720 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0720 + * @tc.desc 文本滑动选择器弹窗中backgroundBlurStyle设置为Thick + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0720', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0720 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0720"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0720 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0230 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0230 + * @tc.desc value设置为string[]类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0230', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0230 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0230"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0230 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0740 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0740 + * @tc.desc 文本滑动选择器弹窗中backgroundBlurStyle设置为BACKGROUND_REGULAR + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0740', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0740 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0740"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0740 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1110 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1110 + * @tc.desc 文本滑动选择器弹窗maskRect中设置height为string类型200px + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1110', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1110 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1110"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_1110 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0270 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0270 + * @tc.desc TextPickerDialog中设置disappearTextStyle中的Color为string类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0270', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0270 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0270"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0270 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0750 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0750 + * @tc.desc 文本滑动选择器弹窗中backgroundBlurStyle设置为BACKGROUND_THICK + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0750', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0750 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0750"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0750 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0800 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0800 + * @tc.desc 文本滑动选择器弹窗中backgroundBlurStyle设置为COMPONENT_REGULAR + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0800', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0800 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0800"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0800 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0260 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0260 + * @tc.desc TextPickerDialog中设置disappearTextStyle中的Color为number类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0260', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0260 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0260"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0260 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0760 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0760 + * @tc.desc 文本滑动选择器弹窗中backgroundBlurStyle设置为BACKGROUND_ULTRA_THICK + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0760', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0760 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0760"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0760 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0280 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0280 + * @tc.desc TextPickerDialog中设置disappearTextStyle中的Color为Resource类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0280', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0280 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0280"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0280 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0810 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0810 + * @tc.desc 文本滑动选择器弹窗中backgroundBlurStyle设置为COMPONENT_THICK + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0810', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0810 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0810"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0810 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0290 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0290 + * @tc.desc TextPickerDialog中设置disappearTextStyle中font中的size为string类型 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0290', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0290 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0290"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0290 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0770 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0770 + * @tc.desc 文本滑动选择器弹窗中backgroundBlurStyle设置为NONE + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0770', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0770 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0770"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0770 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0330 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0330 + * @tc.desc TextPickerDialog中设置disappearTextStyle中font中的weight为number类型的异常值0 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0330', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0330 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0330"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0330 finish.`); + done(); + }) + + /* + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0780 + * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0780 + * @tc.desc 文本滑动选择器弹窗中backgroundBlurStyle设置为COMPONENT_ULTRA_THIN + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0780', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0780 start.`); + Settings.createWindow("testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0780"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id('show_dialog')); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_TEXTPICKERDIALOG_0780 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPickerTest/UIComponentPopupBoxPicker.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPickerTest/UIComponentPopupBoxPicker.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..58baecb270e9f40d3c891a359414755ec57a3622 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPickerTest/UIComponentPopupBoxPicker.test.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 uiAppearance from '@ohos.uiAppearance' +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +import { Component, Driver, ON } from '@ohos.UiTest' + +/* + * UIComponentButtonStyle + * + * Settings.createWindow(config.url): + * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 + * + * windowSnap.snapShot(globalThis.context): + * 窗口截屏&图片文件保存,存储在设备端 + * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 + * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 + * + * Logger日志使用方法: + * import Logger form './model/Logger' + * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) + * */ + +export default function UIComponentPopupBoxPicker() { + + describe('UIComponentPopupBoxPicker', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PICKER_0200 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PICKER_0200 + * @tc.desc disAppear设置日期实现效果 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_PICKER_0200', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupBoxPicker/UIComponentPopupBoxPicker0200"); + await Utils.sleep(1000); + let driver:Driver = Driver.create(); + let btn = await driver.findComponent(ON.id('btn')); + await btn.click(); + await Utils.sleep(1000); + await driver.triggerKey(2054); + await Utils.sleep(1000); + await btn.click(); + await Utils.sleep(1000); + await driver.triggerKey(2054); + await Utils.sleep(1000); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPopupTest/UIComponentPopupBoxPopup.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPopupTest/UIComponentPopupBoxPopup.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..a11bcbeb77b3187e742808fd4c35fa4648974a3e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPopupTest/UIComponentPopupBoxPopup.test.ets @@ -0,0 +1,245 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 uiAppearance from '@ohos.uiAppearance'; +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; +import { Component, Driver, ON } from '@ohos.UiTest'; + +export default function UIComponentPopupBoxPopup() { + describe('UIComponentPopupBoxPopup', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0080 + * @tc.name SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0080 + * @tc.desc 验证bindsheet组件高度自适应而内容区域变更 + */ + it('SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0080', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0080"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showButton = await driver.findComponent(ON.id('showButton')); + await showButton.click(); + await Utils.sleep(500); + let height666Button = await driver.findComponent(ON.id('height666')); + await height666Button.click(); + await windowSnap.snapShot('1'); + await Utils.sleep(100); + { + const content: Component = await driver.findComponent(ON.id('content')); + const point = await content.getBounds(); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 30); + await Utils.sleep(1000); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 80); + await Utils.sleep(1000); + await driver.swipe(point.left - 10, point.top + 50, point.left - 10, point.top + 100); + await Utils.sleep(500); + } + let height333Button = await driver.findComponent(ON.id('height333')); + await height333Button.click(); + await windowSnap.snapShot('2'); + await Utils.sleep(400); + { + const content: Component = await driver.findComponent(ON.id('content')); + const point = await content.getBounds(); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 30); + await Utils.sleep(1000); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 80); + await Utils.sleep(1000); + await driver.swipe(point.left - 10, point.top + 50, point.left - 10, point.top + 100); + await Utils.sleep(500); + } + let height111Button = await driver.findComponent(ON.id('height111')); + await height111Button.click(); + await windowSnap.snapShot('3'); + await Utils.sleep(400); + { + const content: Component = await driver.findComponent(ON.id('content')); + const point = await content.getBounds(); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 30); + await Utils.sleep(1000); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 80); + await Utils.sleep(1000); + await driver.swipe(point.left - 10, point.top + 50, point.left - 10, point.top + 100); + await Utils.sleep(400); + } + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(500); + done(); + }) + + /* + * @tc.number SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0070 + * @tc.name SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0070 + * @tc.desc 验证bindsheet组件高度和内容的动态切换:bindsheet不变,内容高度变化 + */ + it('SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0070', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0070"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showButton = await driver.findComponent(ON.id('showButton')); + await showButton.click(); + await Utils.sleep(400); + let height666Button = await driver.findComponent(ON.id('height666')); + await height666Button.click(); + await windowSnap.snapShot('1'); + await Utils.sleep(100); + { + const content: Component = await driver.findComponent(ON.id('content')); + const point = await content.getBounds(); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 30); + await Utils.sleep(1000); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 80); + await Utils.sleep(1000); + await driver.swipe(point.left - 10, point.top + 50, point.left - 10, point.top + 100); + await Utils.sleep(400); + } + let height333Button = await driver.findComponent(ON.id('height333')); + await height333Button.click(); + await windowSnap.snapShot('2'); + await Utils.sleep(400); + { + const content: Component = await driver.findComponent(ON.id('content')); + const point = await content.getBounds(); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 30); + await Utils.sleep(1000); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 80); + await Utils.sleep(1000); + await driver.swipe(point.left - 10, point.top + 50, point.left - 10, point.top + 100); + await Utils.sleep(500); + } + let height111Button = await driver.findComponent(ON.id('height111')); + await height111Button.click(); + await windowSnap.snapShot('3'); + await Utils.sleep(400); + { + const content: Component = await driver.findComponent(ON.id('content')); + const point = await content.getBounds(); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 30); + await Utils.sleep(1000); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 80); + await Utils.sleep(1000); + await driver.swipe(point.left - 10, point.top + 50, point.left - 10, point.top + 100); + await Utils.sleep(400); + } + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0060 + * @tc.name SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0060 + * @tc.desc 验证bindsheet组件高度和内容的动态切换:内容不变,bindsheet变化 + */ + it('SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0060', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0060"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showButton = await driver.findComponent(ON.id('showButton')); + await showButton.click(); + await Utils.sleep(400); + let height666Button = await driver.findComponent(ON.id('height666')); + await windowSnap.snapShot('1'); + await height666Button.click(); + { + const content: Component = await driver.findComponent(ON.id('content')); + const point = await content.getBounds(); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 30); + await Utils.sleep(1000); + await driver.swipe(point.left - 10, point.top + 50, point.left - 10, point.top + 100); + await Utils.sleep(400); + } + let height333Button = await driver.findComponent(ON.id('height333')); + await height333Button.click(); + await windowSnap.snapShot('2'); + await Utils.sleep(400); + { + const content: Component = await driver.findComponent(ON.id('content')); + const point = await content.getBounds(); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 30); + await Utils.sleep(1000); + await driver.swipe(point.left - 10, point.top + 50, point.left - 10, point.top + 100); + await Utils.sleep(400); + } + let height111Button = await driver.findComponent(ON.id('height111')); + await height111Button.click(); + await windowSnap.snapShot('3'); + await Utils.sleep(400); + { + const content: Component = await driver.findComponent(ON.id('content')); + const point = await content.getBounds(); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 30); + await Utils.sleep(1000); + await driver.swipe(point.left - 10, point.top + 50, point.left - 10, point.top + 100); + await Utils.sleep(400); + } + let height000Button = await driver.findComponent(ON.id('height000')); + await height000Button.click(); + await windowSnap.snapShot('4'); + await Utils.sleep(400); + { + const content: Component = await driver.findComponent(ON.id('content')); + const point = await content.getBounds(); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 30); + await Utils.sleep(1000); + await driver.swipe(point.left + 10, point.top + 50, point.left + 10, point.top + 80); + await Utils.sleep(1000); + await driver.swipe(point.left - 10, point.top + 50, point.left - 10, point.top + 100); + await Utils.sleep(400); + } + await windowSnap.snapShot(); + await Utils.sleep(500); + done(); + }) + + /* + * @tc.number SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0050 + * @tc.name SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0050 + * @tc.desc 验证bindsheet组件高度动态切换 + */ + it('SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0050', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0050"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showButton = await driver.findComponent(ON.id('showButton')); + await showButton.click(); + await Utils.sleep(500); + let height666Button = await driver.findComponent(ON.id('height666')); + await height666Button.click(); + await windowSnap.snapShot('1'); + await Utils.sleep(500); + let height333Button = await driver.findComponent(ON.id('height333')); + await height333Button.click(); + await windowSnap.snapShot('2'); + await Utils.sleep(500); + let height111Button = await driver.findComponent(ON.id('height111')); + await height111Button.click(); + await Utils.sleep(500); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPromptToastSystemTest/UIComponentPopupBoxPromptToastSystem.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPromptToastSystemTest/UIComponentPopupBoxPromptToastSystem.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..dd6042e00c5e211114a8abb61398deb0882a305d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPromptToastSystemTest/UIComponentPopupBoxPromptToastSystem.test.ets @@ -0,0 +1,192 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { afterEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, ON, Component, Point, Rect } from '@ohos.UiTest'; + +export default function UIComponentPopupBoxPromptToastSystem() { + describe('UIComponentPopupBoxPromptToastSystem', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0030 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0030 + * @tc.desc 验证在toast的模式设置为default的时候,是否会避让输入法 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0030"); + await Utils.sleep(1000); + const driver = Driver.create(); + let button: Component = await driver.findComponent(ON.text('ShowToast')); + await button.click(); + await Utils.sleep(5000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0040 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0040 + * @tc.desc 验证在toast的模式设置为default的时候,横竖屏切换toast的显示情况 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0040"); + await Utils.sleep(1000); + const driver = Driver.create(); + let button: Component = await driver.findComponent(ON.text('ShowToast')); + await button.click(); + await Utils.sleep(1000); + Settings.changeOrientation(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0040 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0240 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0240 + * @tc.desc 验证在toast的模式设置为sysTopMost的时候,是否会避让输入法 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0240 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0240"); + await Utils.sleep(1000); + const driver = Driver.create(); + let button: Component = await driver.findComponent(ON.text('ShowToast')); + await button.click(); + await Utils.sleep(5000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0240 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0250 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0250 + * @tc.desc 验证在toast的模式设置为sysTopMost的时候,横竖屏切换toast的显示情况 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0250 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0250"); + await Utils.sleep(1000); + const driver = Driver.create(); + let button: Component = await driver.findComponent(ON.text('ShowToast')); + await button.click(); + await Utils.sleep(1000); + Settings.changeOrientation(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0250 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0280 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0280 + * @tc.desc 验证在toast的模式设置为topmost的时候,是否会避让输入法 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0280 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0280"); + await Utils.sleep(1000); + const driver = Driver.create(); + let button: Component = await driver.findComponent(ON.text('ShowToast')); + await button.click(); + await Utils.sleep(5000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0280 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0290 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0290 + * @tc.desc 验证在toast的模式设置为topmost的时候,横竖屏切换toast的显示情况 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0290 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0290"); + await Utils.sleep(1000); + const driver = Driver.create(); + let button: Component = await driver.findComponent(ON.text('ShowToast')); + await button.click(); + await Utils.sleep(1000); + Settings.changeOrientation(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0290 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0270 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0270 + * @tc.desc 验证在toast的模式设置为topmost的时候,左右滑动toast是否支持退出 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0270 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0270"); + await Utils.sleep(1000); + const driver = Driver.create(); + const button: Component = await driver.findComponent(ON.id('button1')); + await Utils.sleep(200); + await button.click(); + await Utils.sleep(500); + await driver.swipe(0,300, 20, 300); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0270 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0260 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0260 + * @tc.desc 验证在toast的模式设置为sysTopMost的时候,窗口z序层级关系 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0260 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0260"); + await Utils.sleep(1000); + const driver = Driver.create(); + const button: Component = await driver.findComponent(ON.id('button1')); + await Utils.sleep(200); + await button.click(); + await Utils.sleep(2500); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_TOASTSYSTEM_0260 finish.`); + done(); + }) + }) +} 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..f52f9533a5d83200963381acdf60906887ae043b 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 @@ -13,31 +13,365 @@ * limitations under the License. */ -import { afterEach, describe, it } from '@ohos/hypium' -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' - -/* - * Settings.createWindow(config.url): - * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 - * - * windowSnap.snapShot(globalThis.context): - * 窗口截屏&图片文件保存,存储在设备端 - * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 - * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 - * - * Logger日志使用方法: - * import Logger form './model/Logger' - * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) - * */ +import { afterEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, ON, Component, Point, Rect } from '@ohos.UiTest'; export default function UIComponentPopupBoxSpecificationsShadow() { describe('UIComponentPopupBoxSpecificationsShadow', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0230 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0230 + * @tc.desc TipsDialog配置shadow(ShadowStyle.OUTER_DEFAULT_LG) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0230 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow023"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TipsDialog')); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0230 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0250 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0250 + * @tc.desc TipsDialog配置shadow(ShadowStyle.OUTER_DEFAULT_XS) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0250 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow025"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let colorButton: Component = await driver.findComponent(ON.text('TipsDialog')); + await colorButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0250 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0260 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0260 + * @tc.desc TipsDialog配置shadow(ShadowStyle.OUTER_FLOATING_MD) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0260 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow026"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let colorButton: Component = await driver.findComponent(ON.text('TipsDialog')); + await colorButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0260 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0270 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0270 + * @tc.desc TipsDialog配置shadow(ShadowStyle.OUTER_FLOATING_SM) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0270 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow027"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let colorButton: Component = await driver.findComponent(ON.text('TipsDialog')); + await colorButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0270 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0290 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0290 + * @tc.desc TipsDialog配置shadow({radius:引用$r("app.integer.integer100")100vp,type:ShadowType.COLOR,color:ColoringStrategy AVERAGE,offsetX:$r("app.integer.integer30")30vp,offsety:$r("app.integer.integer30")30vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0290 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow029"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let colorButton: Component = await driver.findComponent(ON.text('TipsColorDialog')); + await colorButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0290 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0300 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0300 + * @tc.desc TipsDialog配置shadow({radius:引用$r("app.integer.integer100")100vp,type:ShadowType.COLOR,color:ColoringStrategy.INVERT,offsetX:引用$r("app.integer.integer100")100vp,offsety:引用$r("app.integer.integer100")100vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0300 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow030"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let colorButton: Component = await driver.findComponent(ON.text('TipsColorDialog')); + await colorButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0300 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0310 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0310 + * @tc.desc TipsDialog配置shadow({radius:引用$r("app.integer.integer100")100vp,type:ShadowType.COLOR,color:ColoringStrategy.PRIMARY,offsetX:$r("app.integer integer30")30vp,offsety:$r("app.integer.integer30")30vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0310 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow031"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let colorButton: Component = await driver.findComponent(ON.text('TipsColorDialog')); + await colorButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0310 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0320 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0320 + * @tc.desc TipsDialog配置shadow({radius:引用$r("app.integer.integer30")30vp,type:ShadowType.COLOR,color:引用$r("app.color.color3")"#00FFFF",offsetX:引用$r("app.integer.integer100")100vp,offsety:引用$r("app.integerinteger100")100vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0320 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow032"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let colorButton: Component = await driver.findComponent(ON.text('TipsColorDialog')); + await colorButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0320 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0330 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0330 + * @tc.desc TipsDialog配置shadow({radius:引用$r("app.string string1")30vp,type:ShadowType.BLUR,color:"#FFOOFF",offsetX:引用$r("app.string.string1")30vp,offsety:引用$r("app.string string1")30vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0330 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow033"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let blurButton: Component = await driver.findComponent(ON.text('TipsBlurDialog')); + let colorButton: Component = await driver.findComponent(ON.text('TipsColorDialog')); + let closeButton: Component = await driver.findComponent(ON.text('CloseDialog')); + await blurButton.click(); + await Utils.sleep(1000); + await closeButton.click(); + await Utils.sleep(1000); + await colorButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0330 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0580 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0580 + * @tc.desc null:TextPickerDialog配置shadow (null) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0580 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow058"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TextPickerDialog')); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0580 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0590 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0590 + * @tc.desc null:TimePickerDialog配置shadow (null) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0590 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow059"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0590 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0610 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0610 + * @tc.desc TextPickerDialog配置shadow(ShadowStyle.OUTER_DEFAULT_SM) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0610 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow061"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TextPickerDialog')); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0610 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0620 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0620 + * @tc.desc TextPickerDialog配置shadow(ShadowStyle.OUTER_DEFAULT_XS) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0620 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow062"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TextPickerDialog')); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0620 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0630 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0630 + * @tc.desc TextPickerDialog配置shadow(ShadowStyle.OUTER_FLOATING_MD) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0630 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow063"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TextPickerDialog')); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0630 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0640 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0640 + * @tc.desc TextPickerDialog配置shadow(ShadowStyle.OUTER_FLOATING_SM) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0640 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow064"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TextPickerDialog')); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0640 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0650 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0650 + * @tc.desc TextPickerDialog配置shadow({radius:30vp,type:ShadowType.COLOR,color:Color.Black,offsetX:30vp,offsety:30vp,fill:true}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0650', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0650 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow065"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TextPickerDialog')); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0650 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0660 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0660 + * @tc.desc TextPickerDialog配置shadow({radius:引用$r("app.integer integer100")100vp,type:ShadowType.COLOR,color:ColoringStrategy.AVERAGE,offsetX:$r("app.integer.integer30")30vp,offsety:$r("app.integer integer30")30vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0660 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow066"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TextPickerDialog')); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0660 finish.`); + done(); + }) /* * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0200 @@ -59,6 +393,46 @@ export default function UIComponentPopupBoxSpecificationsShadow() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0670 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0670 + * @tc.desc TextPickerDialog配置shadow({radius:引用$r("app.integer integer100")100vp,type:ShadowType.COLOR,color:ColoringStrategy.INVERT,offsetX:引用$r("app.integer integer100")100vp,offsety:引用$r("app.integer integer100")100vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0670 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow067"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TextPickerDialog')); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0670 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0680 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0680 + * @tc.desc TextPickerDialog配置shadow({radius:引用$r("app.integer integer100")100vp,type:ShadowType.COLOR,color:ColoringStrategy.PRIMARY,offsetX:$r("app.integer integer30")30vp,offsety:$r("app.integer integer30")30vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0680 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow068"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TextPickerDialog')); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0680 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0170 * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0170 @@ -79,6 +453,72 @@ export default function UIComponentPopupBoxSpecificationsShadow() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0690 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0690 + * @tc.desc TextPickerDialog配置shadow({radius:引用$r("app.integer integer30")30vp,type:ShadowType.BLUR,color:"#FF00FF",offsetX:引用$r(app.integer integer30")30vp,offsety:引用$r("app.integer integer30")30vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0690 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow069"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let blurButton: Component = await driver.findComponent(ON.text('TextPickerBlurDialog')); + await blurButton.click(); + await Utils.sleep(2000); + //点击空白区域消失 + await driver.click(100, 100); + await Utils.sleep(2000); + let colorButton: Component = await driver.findComponent(ON.text('TextPickerColorDialog')); + await colorButton.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0690 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0700 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0700 + * @tc.desc TimePickerDialog配置shadow ({radius:引用$r("app.integer integer30")30vp,type:ShadowType.COLOR,color:引用$r("app.color.color3")"#00FFFF",offsetX:引用$r("app.integer.integer100")100vp,offsety:引用$r("app.integerinteger100")100vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0700 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow070"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TextPickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0700 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0710 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0710 + * @tc.desc TimePickerDialog配置shadow(ShadowStyle.OUTER_DEFAULT_LG) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0710 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow071"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0710 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0120 * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0120 @@ -99,6 +539,66 @@ export default function UIComponentPopupBoxSpecificationsShadow() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0720 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0720 + * @tc.desc TimePickerDialog配置shadow(ShadowStyle.OUTER_DEFAULT_SM) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0720 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow072"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0720 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0730 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0730 + * @tc.desc TimePickerDialog配置shadow(ShadowStyle.OUTER_DEFAULT_XS) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0730', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0730 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow073"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0730 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0740 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0740 + * @tc.desc TimePickerDialog配置shadow(ShadowStyle.OUTER_FLOATING_MD) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0740 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow074"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0740 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0180 * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0180 @@ -119,6 +619,66 @@ export default function UIComponentPopupBoxSpecificationsShadow() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0750 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0750 + * @tc.desc TimePickerDialog配置shadow(ShadowStyle.OUTER_FLOATING_SM) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0750 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow075"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0750 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0760 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0760 + * @tc.desc TimePickerDialog配置shadow({radius:30vp,type:ShadowType.COLOR,color:Color.Black,offsetX:30vp,offsety:30vp,fill:true}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0760 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow076"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0760 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0770 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0770 + * @tc.desc TimePickerDialog配置shadow({radius:引用$r("app.integer.integer100")100vp,type:ShadowType.COLOR,color:ColoringStrategy.AVERAGE,offsetX:$r("app.integer integer30")30vp,offsety:$r("app.integer.integer30")30vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0770', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0770 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow077"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0770 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0130 * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0130 @@ -139,6 +699,46 @@ export default function UIComponentPopupBoxSpecificationsShadow() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0780 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0780 + * @tc.desc TimePickerDialog配置shadow ({radius:引用$r("app.integer.integer100")100vp,type:ShadowType.COLOR,color:ColoringStrategy.INVERT,offsetX:引用$r("app.integer integer100")100vp,offsety:引用$r("app.integer integer100")100vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0780 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow078"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0780 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0790 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0790 + * @tc.desc TimePickerDialog配置shadow({radius:引用$r("app.integer integer100")100vp,type:ShadowType.COLOR,color:ColoringStrategy.PRIMARY,offsetX:$r("app.integer integer30")30vp,offsety:$r("app.integer integer30")30vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0790 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow079"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0790 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0140 * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0140 @@ -159,6 +759,72 @@ export default function UIComponentPopupBoxSpecificationsShadow() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0800 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0800 + * @tc.desc TimePickerDialog配置shadow({radius:引用$r("app.integerinteger30")30vp,type:ShadowType.BLUR,color:"#FF00FF",offsetX:引用$r("app.integer integer30")30vp,offsety:引用$r("app.integer integer30")30vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0800 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow080"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let blurButton: Component = await driver.findComponent(ON.text('TimePickerBlurDialog')); + await blurButton.click(); + await Utils.sleep(2000); + //点击空白区域消失 + await driver.click(100, 100); + await Utils.sleep(2000); + let colorButton: Component = await driver.findComponent(ON.text('TimePickerColorDialog')); + await colorButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0800 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0810 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0810 + * @tc.desc TimePickerDialog配置shadow({radius:引用$r("app.integerinteger30")30vp,type:ShadowType.COLOR,color:引用$r("app.color.color3")"#00FFFF",offsetX:引用$r("app.integer integer100")100vp,offsety:引用$r("app.integer.integer100")100vp,fill:false}) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0810 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow081"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0810 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0840 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0840 + * @tc.desc undefind:TipsDialog配置shadow  (undefind) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0840', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0840 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow084"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TipsDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0840 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0160 * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0160 @@ -179,6 +845,66 @@ export default function UIComponentPopupBoxSpecificationsShadow() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0870 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0870 + * @tc.desc undefind:TextPickerDialog配置shadow(undefind) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0870 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow087"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TextPickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0870 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0880 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0880 + * @tc.desc undefind:TimePickerDialog配置shadow (undefind) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0880', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0880 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow088"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0880 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0910 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0910 + * @tc.desc 不配置:TipsDialog不配置shadow + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0910', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0910 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow091"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupBoxSpecificationsShadow091_001')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0910 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0210 * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0210 @@ -199,6 +925,66 @@ export default function UIComponentPopupBoxSpecificationsShadow() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0940 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0940 + * @tc.desc 不配置:TextPickerDialog不配置shadow + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0940', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0940 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow094"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TextPickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0940 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0950 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0950 + * @tc.desc 不配置:TimePickerDialog不配置shadow + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0950', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0950 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow095"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0950 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0980 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0980 + * @tc.desc 设置默认值:TipsDialog配置shadow(ShadowStyle.OUTER_DEFAULT_MD) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0980 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow098"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupBoxSpecificationsShadow098_001')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0980 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0220 * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0220 @@ -219,6 +1005,46 @@ export default function UIComponentPopupBoxSpecificationsShadow() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1010 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1010 + * @tc.desc 设置默认值:TextPickerDialog配置shadow(ShadowStyle.OUTER_DEFAULT_MD) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow101"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TextPickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1020 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1020 + * @tc.desc 设置默认值:TimePickerDialog配置shadow(ShadowStyle.OUTER_DEFAULT_MD) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1020 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow102"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.text('TimePickerDialog')); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1020 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0830 * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0830 diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxStyleStrongTest/UIComponentPopupBoxStyleStrong.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxStyleStrongTest/UIComponentPopupBoxStyleStrong.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..5520b7395df46e14e4bb1fc77548369a4201eb58 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxStyleStrongTest/UIComponentPopupBoxStyleStrong.test.ets @@ -0,0 +1,136 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { afterEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, ON, Component, Point, Rect } from '@ohos.UiTest'; + +export default function UIComponentPopupBoxStyleStrong() { + describe('UIComponentPopupBoxStyleStrong', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0290 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0290 + * @tc.desc TextPickerDialog配置模糊材质和分别为默认值,验证和不配置保持一致 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0290 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0290"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let ultraThickButton: Component = await driver.findComponent(ON.text('TextPickerDialogUltraThick')); + await ultraThickButton.click(); + await Utils.sleep(500); + await windowSnap.snapShot('1'); + await Utils.sleep(1000); + await driver.click(100, 100); + await Utils.sleep(2000); + let defaultButton: Component = await driver.findComponent(ON.text('TextPickerDialogDefaultBlur')); + await defaultButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0290 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0300 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0300 + * @tc.desc TextPickerDialog默认效果 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0300 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0300"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let defaultButton: Component = await driver.findComponent(ON.text('TextPickerDialogDefaultBlur')); + await defaultButton.click(); + await Utils.sleep(500); + await windowSnap.snapShot('1'); + await Utils.sleep(1000); + await driver.click(100, 100); + await Utils.sleep(2000); + await defaultButton.click(); + await Utils.sleep(500); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0300 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0320 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0320 + * @tc.desc TimePickerDialog配置模糊材质和分别为默认值,验证和不配置保持一致 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0320 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0320"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let ultraThickButton: Component = await driver.findComponent(ON.text('TimePickerDialogUltraThick')); + await ultraThickButton.click(); + await Utils.sleep(500); + await windowSnap.snapShot('1'); + await Utils.sleep(1000); + await driver.click(100, 100); + await Utils.sleep(2000); + let defaultButton: Component = await driver.findComponent(ON.text('TimePickerDialogDefaultBlur')); + await defaultButton.click(); + await Utils.sleep(500); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0320 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0330 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0330 + * @tc.desc TimePickerDialog默认效果 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0330 start.`); + Settings.createWindow("testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0330"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let defaultButton: Component = await driver.findComponent(ON.text('TimePickerDialogDefaultBlur')); + await defaultButton.click(); + await Utils.sleep(500); + await windowSnap.snapShot('1'); + await Utils.sleep(1000); + await driver.click(100, 100); + await Utils.sleep(2000); + await defaultButton.click(); + await Utils.sleep(500); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0330 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxButtonstyleTest/UIComponentPopupboxButtonstyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxButtonstyleTest/UIComponentPopupboxButtonstyle.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..a51e96b9987a9d2b92c13ec51cd17c744394aec4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxButtonstyleTest/UIComponentPopupboxButtonstyle.test.ets @@ -0,0 +1,110 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, ON, Component } from '@ohos.UiTest'; + +export default function UIComponentPopupboxButtonstyleTest() { + describe('UIComponentPopupboxButtonstyleTest', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0020 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0020 + * @tc.desc 验证textPickerDialog中acceptButtonStyle、cancelButtonStyle对象中设置了所有的参数,cancel和accept按钮以设置的属性值展示 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0020 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0020"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id("show_dialog_bt")); + await driver.delayMs(500); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0050 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0050 + * @tc.desc 验证timePickerDialog中acceptButtonStyle、cancelButtonStyle对象中设置了所有的参数,cancel和accept按钮以设置的属性值展示 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0050 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0050"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id("show_dialog_bt")); + await driver.delayMs(500); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0030 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0030 + * @tc.desc 验证textPickerDialog中acceptButtonStyle、cancelButtonStyle对象下的所有参数设置为异常值,textPickerDialog展示的效果是否以默认值的效果展示 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0030"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id("show_dialog_bt")); + await driver.delayMs(500); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0060 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0060 + * @tc.desc 验证timePickerDialog中acceptButtonStyle、cancelButtonStyle对象下的所有参数设置为异常值,textPickerDialog展示的效果是否以默认值的效果展示 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0060"); + await Utils.sleep(1000); + const driver = Driver.create(); + const showDialogBt = await driver.findComponent(ON.id("show_dialog_bt")); + await driver.delayMs(500); + await showDialogBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0060 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxConsistencySceneTest/UIComponentPopupboxConsistencyScene.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxConsistencySceneTest/UIComponentPopupboxConsistencyScene.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..818673f2f68a15f5085dce142e3140c0345fcb3d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxConsistencySceneTest/UIComponentPopupboxConsistencyScene.test.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 { 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 { DisplayRotation, Driver, ON, Component } from '@ohos.UiTest'; + +export default function UIComponentPopupboxConsistencyScene() { + describe('UIComponentPopupboxConsistencyScene', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CONSISTENCY_SCENE_0040 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CONSISTENCY_SCENE_0040 + * @tc.desc 日期选择弹窗与时间选择弹窗UX对比 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_CONSISTENCY_SCENE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CONSISTENCY_SCENE_0040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxConsistencyScene/UIComponentPopupboxConsistencyScene0040"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxConsistencyScene0040_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CONSISTENCY_SCENE_0040 finish.`); + done(); + }); + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxEnterTest/UIComponentPopupboxEnter.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxEnterTest/UIComponentPopupboxEnter.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..3c1734fb3044a132ac2f47f97854ef7d0d25cc17 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxEnterTest/UIComponentPopupboxEnter.test.ets @@ -0,0 +1,234 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, ON, Component } from '@ohos.UiTest'; +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; +import { KeyCode } from '@ohos.multimodalInput.keyCode'; + +export default function UIComponentPopupboxEnterTest() { + describe('UIComponentPopupboxEnterTest', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0520 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0520 + * @tc.desc TextPickerDialog多重弹窗 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0520 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0520"); + await Utils.sleep(1000); + const driver = Driver.create(); + const button = await driver.findComponent(ON.id('show_dialog_bt')); + await driver.delayMs(500); + await button.click(); + await Utils.sleep(2000); + await driver.triggerKey(KeyCode.KEYCODE_TAB); + await Utils.sleep(500); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0520 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0550 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0550 + * @tc.desc TextPickerDialog默认响应ENTER键 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0550 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0550"); + await Utils.sleep(1000); + const driver = Driver.create(); + const button = await driver.findComponent(ON.id('show_dialog_bt')); + await driver.delayMs(500); + await button.click(); + await Utils.sleep(1000); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0550 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0510 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0510 + * @tc.desc TextPickerDialog多种弹窗对齐,左移30px + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0510 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0510"); + await Utils.sleep(1000); + const driver = Driver.create(); + const button = await driver.findComponent(ON.id('show_dialog_bt')); + await driver.delayMs(500); + await button.click(); + await Utils.sleep(2000); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0510 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0570 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0570 + * @tc.desc TimePickerDialog多种弹窗对齐,右上对齐 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0570 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0570"); + await Utils.sleep(1000); + const driver = Driver.create(); + const button = await driver.findComponent(ON.id('show_dialog_bt')); + await driver.delayMs(500); + await button.click(); + await Utils.sleep(2000); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0570 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0580 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0580 + * @tc.desc TimePickerDialog多种弹窗对齐,右中对齐 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0580 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0580"); + await Utils.sleep(1000); + const driver = Driver.create(); + const button = await driver.findComponent(ON.id('show_dialog_bt')); + await driver.delayMs(500); + await button.click(); + await Utils.sleep(2000); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0580 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0640 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0640 + * @tc.desc TimePickerDialog默认响应ENTER键 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0640 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0640"); + await Utils.sleep(1000); + const driver = Driver.create(); + const button = await driver.findComponent(ON.id('show_dialog_bt')); + await driver.delayMs(500); + await button.click(); + await Utils.sleep(2000); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0640 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0590 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0590 + * @tc.desc TimePickerDialog多种弹窗对齐右移30px + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0590 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0590"); + await Utils.sleep(1000); + const driver = Driver.create(); + const button = await driver.findComponent(ON.id('show_dialog_bt')); + await driver.delayMs(500); + await button.click(); + await Utils.sleep(2000); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0590 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0600 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0600 + * @tc.desc TimePickerDialog多种弹窗对齐左移30px + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0600 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0600"); + await Utils.sleep(1000); + const driver = Driver.create(); + const button = await driver.findComponent(ON.id('show_dialog_bt')); + await driver.delayMs(500); + await button.click(); + await Utils.sleep(2000); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0600 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0610 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0610 + * @tc.desc TimePickerDialog多重弹窗 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0610 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0610"); + await Utils.sleep(1000); + const driver = Driver.create(); + const button = await driver.findComponent(ON.id('show_dialog_bt')); + await driver.delayMs(500); + await button.click(); + await Utils.sleep(2000); + await driver.triggerKey(KeyCode.KEYCODE_TAB); + await Utils.sleep(500); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0610 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuMenuTestTest/UIComponentPopupboxMenuMenuTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuMenuTestTest/UIComponentPopupboxMenuMenuTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..a748664df57da6d608d46849a72d4f4880593239 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuMenuTestTest/UIComponentPopupboxMenuMenuTest.test.ets @@ -0,0 +1,484 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 uiAppearance from '@ohos.uiAppearance'; +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import { BusinessError } from '@kit.BasicServicesKit'; + +export default function UIComponentPopupboxMenuMenuTest() { + describe('UIComponentPopupboxMenuMenuTest', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1980 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1980 + * @tc.desc menuTest#menuTest#menuTest_230 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1980 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1980"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1980 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1970 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1970 + * @tc.desc menuTest#menuTest#menuTest_229 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1970 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1970"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1970 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0830 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0830 + * @tc.desc menuTest#menuTest#menuTest_092 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0830 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0830"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0830 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0080 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0080 + * @tc.desc menuTest#menuTest#menuTest_008 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0080"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0080 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0100 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0100 + * @tc.desc menuTest#menuTest#menuTest_010 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0100"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0100 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0110 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0110 + * @tc.desc menuTest#menuTest#menuTest_011 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0110 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0110"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0110 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1100 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1100 + * @tc.desc menuTest#menuTest#menuTest_126 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1100"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1100 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1090 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1090 + * @tc.desc menuTest#menuTest#menuTest_125 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1090"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1090 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1630 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1630 + * @tc.desc menuTest#menuTest#menuTest_187 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1630 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1630"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1630 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1190 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1190 + * @tc.desc menuTest#menuTest#menuTest_136 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1190 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1190"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1190 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1310 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1310 + * @tc.desc menuTest#menuTest#menuTest_151 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1310 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1310"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1310 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1200 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1200 + * @tc.desc menuTest#menuTest#menuTest_137 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1200 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1200"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1200 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1380 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1380 + * @tc.desc menuTest#menuTest#menuTest_159 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1380 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1380"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1380 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0160 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0160 + * @tc.desc menuTest#menuTest#menuTest_016 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0160 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0160"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0160 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0670 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0670 + * @tc.desc menuTest#menuTest#menuTest_074 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0670 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0670"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0670 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1480 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1480 + * @tc.desc menuTest#menuTest#menuTest_170 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1480 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1480"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1480 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0040 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0040 + * @tc.desc menuTest#menuTest#menuTest_004 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0040"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0040 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0190 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0190 + * @tc.desc menuTest#menuTest#menuTest_019 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0190 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0190"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0190 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1510 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1510 + * @tc.desc menuTest#menuTest#menuTest_173 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1510 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1510"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1510 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1490 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1490 + * @tc.desc menuTest#menuTest#menuTest_171 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1490 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1490"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1490 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0470 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0470 + * @tc.desc menuTest#menuTest#menuTest_049 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0470 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0470"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0470 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1390 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1390 + * @tc.desc menuTest#menuTest#menuTest_160 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1390 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1390"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1390 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0320 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0320 + * @tc.desc menuTest#menuTest#menuTest_032 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0320 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0320"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0320 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0540 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0540 + * @tc.desc menuTest#menuTest#menuTest_058 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0540 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0540"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0540 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1060 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1060 + * @tc.desc menuTest#menuTest#menuTest_122 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1060"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('text')); + await btn.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1060 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxPickeroldTest/UIComponentPopupboxPickerold.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxPickeroldTest/UIComponentPopupboxPickerold.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..2a91d7139a7c105536da156915ea809c27fe3f04 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxPickeroldTest/UIComponentPopupboxPickerold.test.ets @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { 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 { DisplayRotation, Driver, ON, Component } from '@ohos.UiTest'; + +export default function UIComponentPopupboxPickerold() { + describe('UIComponentPopupboxPickerold', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1260 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1260 + * @tc.desc TimePicker组件验证设置宽度为400vp,高度为400vp的情况下,TimePicker的宽高取值 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1260 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1260"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1260 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1250 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1250 + * @tc.desc TimePicker组件验证设置宽度为250vp,高度为180vp的情况下,TimePicker的宽高取值 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1250 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1250"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1250 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1270 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1270 + * @tc.desc TimePicker组件验证设置宽度为undefined,高度为undefined的情况下,TimePicker的宽高取值 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1270 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1270"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_1270 finish.`); + done(); + }); + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxPopupFollowtransformoftargetTest/UIComponentPopupboxPopupFollowtransformoftarget.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxPopupFollowtransformoftargetTest/UIComponentPopupboxPopupFollowtransformoftarget.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..0ec2a8750223f33cf8b7b4037b481716b750a3e6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxPopupFollowtransformoftargetTest/UIComponentPopupboxPopupFollowtransformoftarget.test.ets @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { 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 uiAppearance from '@ohos.uiAppearance'; +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import { BusinessError } from '@kit.BasicServicesKit'; + +export default function UIComponentPopupboxPopupFollowtransformoftarget() { + describe('UIComponentPopupboxPopupFollowtransformoftarget', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0450 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0450 + * @tc.desc popup设置CustomPopupOptions,followTransformOfTarget(null),autoCancel(false),最外层的column组件点击后的rotate更改为{angle:"90deg"} + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0450 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0450"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const btn: Component = await driver.findComponent(ON.id('btn')); + await btn.click(); + await Utils.sleep(1000); + await driver.click(100,100); + await Utils.sleep(1000); + const dis: Component = await driver.findComponent(ON.id('rotate')); + await dis.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0450 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTextPickerDialogInteractionTest/UIComponentPopupboxTextPickerDialogInteraction.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTextPickerDialogInteractionTest/UIComponentPopupboxTextPickerDialogInteraction.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..8d52ca046fbe4826b39ccf537e55c5e63dc49b98 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTextPickerDialogInteractionTest/UIComponentPopupboxTextPickerDialogInteraction.test.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. + */ + +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 uiAppearance from '@ohos.uiAppearance'; +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; +import { Component, Driver, ON } from '@ohos.UiTest'; + +export default function UIComponentPopupboxTextPickerDialogInteraction() { + describe('UIComponentPopupboxTextPickerDialogInteraction', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERACTION_0030 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERACTION_0030 + * @tc.desc 文本滑动选择器弹窗TextPickerDialog,创建多级联动选择器弹窗,固定一级文本,变更二级文本 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERACTION_0030', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0030"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x, point.y, point.x, point.y + 50); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERACTION_0010 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERACTION_0010 + * @tc.desc 文本滑动选择器弹窗TextPickerDialog,点击未选中项,验证效果 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERACTION_0010', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0010"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + const item: Component = await driver.findComponent(ON.text('b1')); + await item.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERACTION_0020 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERACTION_0020 + * @tc.desc 文本滑动选择器弹窗TextPickerDialog,创建多级联动选择器弹窗,变更一级文本 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERACTION_0020', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0020"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + const textPicker: Component = await driver.findComponent(ON.type('TextPicker')); + const point = await textPicker.getBoundsCenter(); + await driver.swipe(point.x - 200, point.y, point.x - 200, point.y + 50); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTextPickerDialogInterfaceTest/UIComponentPopupboxTextPickerDialogInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTextPickerDialogInterfaceTest/UIComponentPopupboxTextPickerDialogInterface.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..36abe2b7af4b6bb8b948209e4256fdf3795f746b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTextPickerDialogInterfaceTest/UIComponentPopupboxTextPickerDialogInterface.test.ets @@ -0,0 +1,808 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 uiAppearance from '@ohos.uiAppearance'; +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; +import { Component, Driver, ON } from '@ohos.UiTest'; + +export default function UIComponentPopupboxTextPickerDialogInterface() { + describe('UIComponentPopupboxTextPickerDialogInterface', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1210 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1210 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细textStyle (style:Italic) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1210', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1210"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1280 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1280 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细textStyle(weight:FontWeight.Lighter) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1280', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1280"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1310 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1310 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细textStyle(weight:FontWeight.Regular) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1310', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1310"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1270 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1270 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细textStyle (weight:FontWeight.Bold) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1270', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1270"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1390 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1390 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置选中项的文本颜色、字号、字体粗细selectedTextStyle (weight:FontWeight.Lighter) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1390', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1390"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1190 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1190 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细disappearTextStyle (weight:FontWeight.Normal) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1190', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1190"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1360 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1360 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置选中项的文本颜色、字号、字体粗细selectedTextStyle (weight:900) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1360', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1360"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1140 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1140 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细disappearTextStyle (weight:900) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1140', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1140"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1300 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1300 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细textStyle (weight:FontWeight.Normal) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1300', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1300"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1410 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1410 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置选中项的文本颜色、字号、字体粗细selectedTextStyle(weight:FontWeight.Normal) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1410', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1410"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1240 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1240 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细textStyle (weight:400) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1240', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1240"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1250 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1250 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细textStyle(weight:900) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1250', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1250"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1290 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1290 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细textStyle (weight:FontWeight.Medium) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1290', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1290"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1220 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1220 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细textStyle (style:Normal) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1220', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1220"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1260 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1260 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细textStyle (weight:FontWeight.Bolder) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1260', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1260"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1380 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1380 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置选中项的文本颜色、字号、字体粗细selectedTextStyle (weight:FontWeight.Bold) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1380', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1380"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1080 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1080 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、onCancel + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1080', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1080"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + let cancelButton = await driver.findComponent(ON.text('取消')); + await cancelButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1400 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1400 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置选中项的文本颜色、字号、字体粗细selectedTextStyle (weight:FontWeight.Medium) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1400', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1400"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1370 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1370 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置选中项的文本颜色、字号、字体粗细selectedTextStyle (weight:FontWeight.Bolder) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1370', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1370"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1340 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1340 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置选中项的文本颜色、字号、字体粗细selectedTextStyle(weight:100) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1340', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1340"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1090 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1090 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、onChange + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1090', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1090"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await (await driver.findComponent(ON.text('b'))).click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1350 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1350 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置选中项的文本颜色、字号、字体粗细selectedTextStyle(weight:400) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1350', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1350"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1330 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1330 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置选中项的文本颜色、字号、字体粗细selectedTextStyle(style:Normal) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1330', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1330"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1420 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1420 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置选中项的文本颜色、字号、字体粗细selectedTextStyle (weightFontWeight Regular) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1420', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1420"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1230 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1230 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细textStyle (weight:100) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1230', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1230"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1320 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1320 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置选中项的文本颜色、字号、字体粗细selectedTextStyle (style:Italic) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1320', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1320"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1070 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1070 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog0方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、onAccept + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1070', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1070"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + let okButton = await driver.findComponent(ON.text('确定')); + await okButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1120 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1120 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细disappearTextStyle (weight:100) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1120', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1120"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1030 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1030 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、selected(1) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1030', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1030"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1000 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1000 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、selected(2)、value(undefined) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1000', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1000"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1460 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1460 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range(空数组) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1460', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1460"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1470 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1470 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组TextPickerRangeContent,文本加图片 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1470', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1470"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1010 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1010 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、selected(0) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1010', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1010"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1050 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1050 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、value(null) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1050', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1050"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1160 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1160 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细disappearTextStyle (weight:FontWeight.Bold) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1160', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1160"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1020 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1020 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、selected(10,大于数组长度) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1020', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1020"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1040 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1040 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、value(空串) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1040', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1040"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1060 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1060 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、value(undefined) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1060', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1060"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1130 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1130 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细disappearTextStyle (weight:400) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1130', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1130"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1450 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1450 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range(多元素) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1450', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1450"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1440 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1440 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、选项高度defaultPickerltemHeight(string) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1440', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1440"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1200 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1200 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细disappearTextStyle (weight:FontWeight.Regular) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1200', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1200"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1150 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1150 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细disappearTextStyle (weight:FontWeight.Bolder) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1150', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1150"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1180 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1180 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细disappearTextStyle (weight:FontWeight.Medium) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1180', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1180"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1100 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1100 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细disappearTextStyle (style:Italic) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1100', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1100"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1110 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1110 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细disappearTextStyle (style:Normal) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1110', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1110"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1170 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1170 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细disappearTextStyle (weight:FontWeight.Lighter) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1170', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1170"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1430 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1430 + * @tc.desc 通过getUIContext()获取uniconten对象,调用showTextPickerDialog()方法,创建文本滑动选择器弹窗,设置文本选择数组range、选中项selected(2)、选项高度defaultPickerltemHeight + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TEXTPICKERDIALOG_INTERFACE_1430', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1430"); + await Utils.sleep(1000); + let driver = Driver.create(); + let showTextPickerButton = await driver.findComponent(ON.id('ShowTextPicker')); + await showTextPickerButton.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTimepickerdialogInterface2Test/UIComponentPopupboxTimepickerdialogInterface2.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTimepickerdialogInterface2Test/UIComponentPopupboxTimepickerdialogInterface2.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..548740136da2d6fa121c11c446985c273563af0b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTimepickerdialogInterface2Test/UIComponentPopupboxTimepickerdialogInterface2.test.ets @@ -0,0 +1,850 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 { Driver, ON } from '@ohos.UiTest'; + +export default function UIComponentPopupboxTimepickerdialogInterface2() { + describe('UIComponentPopupboxTimepickerdialogInterface2', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0160 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0160 + * @tc.desc 属性-offset-不设置 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0160 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20160"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20160_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0160 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0190 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0190 + * @tc.desc 属性-backgroundColor-Color(pink) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0190 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20190"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20190_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0190 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0200 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0200 + * @tc.desc 属性-backgroundColor-number(0x008000) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0200 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20200"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20200_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0200 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0080 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0080 + * @tc.desc 属性-alignment-TopEnd + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20080"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20080_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0080 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0030 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0030 + * @tc.desc 属性-alignment-Top + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20030"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20030_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0030 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0040 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0040 + * @tc.desc 属性-alignment-Center + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20040"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20040_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0040 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0240 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0240 + * @tc.desc 属性-backgroundColor-不设置 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0240 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20240"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20240_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0240 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0070 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0070 + * @tc.desc 属性-alignment-TopStart + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0070 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20070"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20070_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0070 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0170 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0170 + * @tc.desc 属性-maskRect-{x:50,y:50width: "50%". height: “50%" } + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0170 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20170"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20170_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0170 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0100 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0100 + * @tc.desc 属性-alignment-CenterEnd + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20100"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20100_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0100 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0120 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0120 + * @tc.desc 属性-alignment-BottomEnd + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0120 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20120"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20120_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0120 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0130 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0130 + * @tc.desc 属性-alignment-不设置 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0130 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20130"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20130_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0130 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0150 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0150 + * @tc.desc 属性-offset-{dx:-20,dy:+20} + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0150 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20150"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20150_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0150 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0110 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0110 + * @tc.desc 属性-alignment-BottomStart + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0110 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20110"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20110_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0110 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0050 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0050 + * @tc.desc 属性-alignment-Bottom + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0050 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20050"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20050_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0050 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0220 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0220 + * @tc.desc 属性-backgroundColor-Resource-$r(pink) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0220 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20220"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20220_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0220 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0260 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0260 + * @tc.desc 属性-backgroundBlurStyle-Thick + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0260 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20260"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20260_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0260 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0210 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0210 + * @tc.desc 属性-backgroundColor-string(#9effffff) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0210 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20210"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20210_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0210 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0250 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0250 + * @tc.desc 属性-backgroundColor-动态切换 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0250 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20250"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20250_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot('1'); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.text('取消')); + let point = await text.getBoundsCenter(); + await driver.click(point.x, point.y); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot('2'); + await Utils.sleep(1000); + let text1 = await driver.findComponent(ON.text('取消')); + let point1 = await text1.getBoundsCenter(); + await driver.click(point1.x, point1.y); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot('3'); + await Utils.sleep(1000); + let text2 = await driver.findComponent(ON.text('取消')); + let point2 = await text2.getBoundsCenter(); + await driver.click(point2.x, point2.y); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0250 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0230 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0230 + * @tc.desc 属性-backgroundColor-Resource-$r(#9effffff) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0230 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20230"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20230_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0230 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0280 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0280 + * @tc.desc 属性-backgroundBlurStyle-Thick + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0280 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20280"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20280_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0280 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0270 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0270 + * @tc.desc 属性-backgroundBlurStyle-Regular + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0270 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20270"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20270_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0270 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0290 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0290 + * @tc.desc 属性-backgroundBlurStyle-BACKGROUND_THIN + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0290 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20290"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20290_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0290 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0340 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0340 + * @tc.desc 属性-backgroundBlurStyle-BACKGROUND_COMPONENT_ULTRA THIN + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0340 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20340"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20340_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0340 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0310 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0310 + * @tc.desc 属性-backgroundBlurStyle-BACKGROUND_THICK + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0310 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20310"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20310_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0310 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0350 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0350 + * @tc.desc 属性-backgroundBlurStyle-BACKGROUND_COMPONENT_THIN + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0350 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20350"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20350_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0350 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0330 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0330 + * @tc.desc 属性-backgroundBlurStyle-NONE + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0330 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20330"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20330_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0330 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0360 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0360 + * @tc.desc 属性-backgroundBlurStyle-COMPONENT_REGULAR + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0360 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20360"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20360_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0360 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0390 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0390 + * @tc.desc 属性-backgroundBlurStyle-不设置 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0390 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20390"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20390_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0390 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0370 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0370 + * @tc.desc 属性-backgroundBlurStyle-BACKGROUND_COMPONENT_ULTRA_COMPONENT_THICK + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0370 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20370"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20370_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0370 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0380 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0380 + * @tc.desc 属性-backgroundBlurStyle-COMPONENT ULTRA THICK + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0380 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20380"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20380_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0380 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0320 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0320 + * @tc.desc 属性-backgroundBlurStyle-BACKGROUND ULTRA_THICK + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0320 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20320"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20320_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0320 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0400 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0400 + * @tc.desc 属性-DialogAlignment.Default和offset:{ dx:0.dy:0}同时设置 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0400 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20400"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20400_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0400 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0300 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0300 + * @tc.desc 属性-backgroundBlurStyle-BACKGROUND_REGULAR + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0300 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20300"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20300_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0300 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0020 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0020 + * @tc.desc 验证TimePickerDialogOptions非必填性 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0020 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20020"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20020_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0020 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0010 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0010 + * @tc.desc 验证Options非必填性 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20010"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('button1')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0010 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0090 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0090 + * @tc.desc 属性-alignment-CenterStart + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20090"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20090_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0090 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0060 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0060 + * @tc.desc 属性-alignment-Default + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20060"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20060_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0060 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0180 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0180 + * @tc.desc 属性-maskRect-不设置 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0180 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20180"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20180_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0180 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0140 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0140 + * @tc.desc 属性-offset-{dx:0,dy: 0} + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0140 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20140"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface20140_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE2_0140 finish.`); + done(); + }); + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTimepickerdialogInterfaceTest/UIComponentPopupboxTimepickerdialogInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTimepickerdialogInterfaceTest/UIComponentPopupboxTimepickerdialogInterface.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..b26a38cb2ac500271500457bd484301c0d3341b9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTimepickerdialogInterfaceTest/UIComponentPopupboxTimepickerdialogInterface.test.ets @@ -0,0 +1,1380 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 { Driver, ON } from '@ohos.UiTest'; + +export default function UIComponentPopupboxTimepickerdialogInterface() { + describe('UIComponentPopupboxTimepickerdialogInterface', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0950 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0950 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-color-$r("app.color.blue”) + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0950', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0950 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0950"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0950_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0950 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1070 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1070 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-FontWeight-Lighter + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1070 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1070"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1070_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1070 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1030 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1030 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-style-ltalic + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1030"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1030_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1030 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1240 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1240 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-style-Normal + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1240 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1240"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1240_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1240 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1090 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1090 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-FontWeight-Normal + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1090"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1090_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1090 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1010 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1010 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-size-10 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1010"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1010_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1010 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0900 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0900 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-onCancel + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0900 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0900"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0900_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + let text1 = await driver.findComponent(ON.text('取消')); + let point1 = await text1.getBoundsCenter(); + await driver.click(point1.x, point1.y); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0900 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1260 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1260 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-weight-FontWeight-Bolder + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1260 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1260"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1260_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1260 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1180 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1180 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-family-Resource + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1180 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1180"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1180_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1180 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1310 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1310 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-weight-number-400 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1310 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1310"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1310_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1310 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1060 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1060 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-FontWeight-Bolder + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1060"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1060_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1060 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1050 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1050 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-FontWeight-Bold + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1050 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1050"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1050_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1050 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1290 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1290 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-weight-FontWeight-Normal + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1290 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1290"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1290_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1290 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1020 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1020 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-size-Resource + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1020 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1020"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1020_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1020 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1080 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1080 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-FontWeight-Medium + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1080"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1080_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1080 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1100 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1100 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-FontWeight-Regular + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1100"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1100_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1100 finish.`); + done(); + }); + + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0980 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0980"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0980_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0980 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1120 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1120 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-number-500 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1120 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1120"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1120_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1120 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0910 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0910 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-onChange + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0910', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0910 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0910"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0910_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot('1'); + let text1 = await driver.findComponent(ON.text('9')); + let point1 = await text1.getBoundsCenter(); + await driver.click(point1.x, point1.y); + await Utils.sleep(1000); + await windowSnap.snapShot('2'); + await Utils.sleep(500); + let text2 = await driver.findComponent(ON.text('31')); + let point2 = await text2.getBoundsCenter(); + await driver.click(point2.x, point2.y); + await Utils.sleep(1000); + await windowSnap.snapShot('3'); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0910 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1220 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1220 + * @tc.desc 通过getUlContext0)获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-size-Resource + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1220 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1220"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1220_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1220 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1360 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1360 + * @tc.desc 通过getUlContext0)获取uiconten对象,调用showTimePickerDialog()-连续调用 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1360 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1360"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1360_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1360 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1340 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1340 + * @tc.desc 通过getUlContext0)获取uiconten对象,调用showTimePickerDialog()-useMilitaryTime-false + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1340 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1340"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1340_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1340 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0990 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0990 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-family-string + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0990', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0990 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0990"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0990_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0990 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0860 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0860 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-number-400 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0860', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0860 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0860"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0860_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0860 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0700 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0700 + * @tc.desc 通过getUContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-color-"rgb(255.0.0)” + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0700 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0700"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0700_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0700 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0890 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0890 + * @tc.desc 通过getUlContext()获取uiconten对象,调用showTimePickerDialog()-onAccept + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0890', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0890 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0890"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0890_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0890 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0850 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0850 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-FontWeight-Regular + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0850', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0850 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0850"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0850_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0850 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1130 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1130 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-string-"500" + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1130 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1130"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1130_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1130 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0880 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0880 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-string-"500" + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0880', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0880 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0880"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0880_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0880 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1160 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1160 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-color-0x0000ff + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1160 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1160"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1160_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1160 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1300 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1300 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-weight-FontWeight-Regular + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1300 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1300"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1300_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1300 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1200 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1200 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-size-"10px" + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1200 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1200"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1200_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1200 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1110 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1110 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-number-400 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1110 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1110"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1110_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1110 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1280 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1280 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-weight-FontWeight-Medium + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1280 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1280"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1280_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1280 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1040 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1040 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-style-Normal + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1040"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1040_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1040 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1170 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1170 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-color-Color.Blue + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1170 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1170"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1170_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1170 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0820 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0820 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-FontWeight-Bolder + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0820', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0820 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0820"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0820_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0820 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0800 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0800 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-style-Normal + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0800 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0800"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0800_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0800 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0790 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0790 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-style-ltalic + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0790 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0790"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0790_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0790 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1140 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1140 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-color-"rgb(255,0,0)" + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1140 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1140"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1140_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1140 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0920 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0920 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-selected-Date-Date(2020-12-25T08:30:00") + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0920', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0920 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0920"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0920_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0920 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1150 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1150 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-color-$r("app.color.blue") + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1150 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1150"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1150_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1150 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0760 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0760 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-size-"10px" + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0760 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0760"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0760_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0760 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1270 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1270 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-weight-FontWeight-Lighter + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1270 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1270"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1270_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1270 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0710 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0710 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-color-$r(app.color.blue") + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0710 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0710"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0710_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0710 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0740 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0740 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-family-Resource + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0740 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0740"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0740_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0740 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1350 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1350 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-useMilitaryTime-true + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1350 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1350"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1350_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1350 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0830 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0830 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-FontWeight-Medium + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0830 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0830"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0830_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0830 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0720 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0720 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-color-0x0000ff + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0720 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0720"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0720_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0720 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1210 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1210 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-size-10 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1210 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1210"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1210_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1210 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0730 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0730 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-color-Color.Blue + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0730', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0730 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0730"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0730_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0730 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0940 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0940 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-color-"rgb(255,0,0)" + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0940', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0940 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0940"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0940_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0940 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0770 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0770 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-size-10 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0770', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0770 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0770"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0770_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0770 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0960 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0960 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-color-0x0000ff + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0960', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0960 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0960"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0960_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0960 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0930 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0930 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-selected-Date不设置 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0930', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0930 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0930"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0930_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0930 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1000 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1000 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-font-size-"10px" + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1000', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1000 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1000"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1000_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1000 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0840 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0840 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-FontWeight-Normal + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0840', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0840 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0840"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0840_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0840 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1320 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1320 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-weight-number-500 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1320 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1320"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1320_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1320 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0750 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0750 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-family-string + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0750 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0750"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0750_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0750 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1230 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1230 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-style-Italic + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1230 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1230"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1230_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1230 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0870 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0870 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-number-500 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0870 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0870"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0870_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0870 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1330 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1330 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-weight-string-"500" + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1330 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1330"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1330_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1330 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0780 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0780 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-size-Resource + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0780 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0780"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0780_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0780 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0970 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0970 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-selectedTextStyle-PickerTextStyle-color-Color.Blue + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0970 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0970"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0970_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0970 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0810 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0810 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-FontWeight-Bold + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0810 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0810"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface0810_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_0810 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1250 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1250 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-weight-FontWeight-Bold + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1250 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1250"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1250_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1250 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1190 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1190 + * @tc.desc 通过getUIContext()获取uiconten对象,调用showTimePickerDialog()-textStyle-PickerTextStyle-font-family-string + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1190 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1190"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogInterface1190_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_INTERFACE_1190 finish.`); + done(); + }); + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTimepickerdialogScenariosTest/UIComponentPopupboxTimepickerdialogScenariosTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTimepickerdialogScenariosTest/UIComponentPopupboxTimepickerdialogScenariosTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..83750edd66317af0115acb88a1f3103d6dca1289 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxTimepickerdialogScenariosTest/UIComponentPopupboxTimepickerdialogScenariosTest.test.ets @@ -0,0 +1,123 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 { DisplayRotation, Driver, ON } from '@ohos.UiTest'; + +export default function UIComponentPopupboxTimepickerdialogScenarios() { + describe('UIComponentPopupboxTimepickerdialogScenarios', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0090 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0090 + * @tc.desc 弹出子窗口时间滑动选择器弹窗后,点击确认退出子窗口 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0090"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogScenarios0090_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.text('确定')); + let point = await text.getBoundsCenter(); + await driver.click(point.x, point.y); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0090 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0030 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0030 + * @tc.desc 两种方法同时存在-性能 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0030"); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogScenarios0030_001')); + await Utils.sleep(250); + await windowSnap.snapShot('1'); + for (let i = 1; i <= 20; i++) { + await Utils.sleep(300); + await button.click(); + await Utils.sleep(300); + await driver.click(200, 200); + } + await Utils.sleep(1000); + await windowSnap.snapShot('2'); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0030 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0020 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0020 + * @tc.desc 两种方法同时存在-常规调用DatePickerDialog后通过getUIContext调用 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0020 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0020"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogScenarios0020_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot('1'); + await Utils.sleep(3000); + windowSnap.snapShot('2'); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0020 finish.`); + done(); + }); + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0010 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0010 + * @tc.desc 两种方法同时存在-getUIContext调用后通过常规调用DatePickerDialog + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0010"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentPopupboxTimepickerdialogScenarios0010_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot('1'); + await Utils.sleep(3000); + windowSnap.snapShot('2'); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_TIMEPICKERDIALOG_SCENARIOS_0010 finish.`); + done(); + }); + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollPickerPickerrefactorTest/UIComponentScrollPickerPickerrefactor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollPickerPickerrefactorTest/UIComponentScrollPickerPickerrefactor.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..c8e2bfa47ae2d8b08aad0b0b507be7f6d26bcb60 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollPickerPickerrefactorTest/UIComponentScrollPickerPickerrefactor.test.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 { 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 { DisplayRotation, Driver, ON, Component } from '@ohos.UiTest'; + +export default function UIComponentScrollPickerPickerrefactor() { + describe('UIComponentScrollPickerPickerrefactor', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_PICKER_PICKERREFACTOR_0190 + * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_PICKER_PICKERREFACTOR_0190 + * @tc.desc TimePick可以正常切换时间进制 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_PICKER_PICKERREFACTOR_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_PICKER_PICKERREFACTOR_0190 start.`); + Settings.createWindow("testability/pages/UIComponentScrollPickerPickerrefactor/UIComponentScrollPickerPickerrefactor0190"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIComponentScrollPickerPickerrefactor0190_001')); + await Utils.sleep(100); + await button.click(); + await Utils.sleep(500); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_PICKER_PICKERREFACTOR_0190 finish.`); + done(); + }); + }) +} 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..001f134be2f1c30421dc0ea8be975d1f449aef85 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 @@ -13,34 +13,85 @@ * limitations under the License. */ -import { describe, afterEach, it } from '@ohos/hypium'; +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 uiAppearance from '@ohos.uiAppearance'; -import { Driver ,ON } from '@ohos.UiTest' - -/* - * UIComponentUISupportColor - * - * Settings.createWindow(config.url): - * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 - * - * windowSnap.snapShot(globalThis.context): - * 窗口截屏&图片文件保存,存储在设备端 - * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 - * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 - * - * Logger日志使用方法: - * import Logger form './model/Logger' - * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) - * */ +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import { BusinessError } from '@kit.BasicServicesKit'; export default function UIComponentUISupportColor() { - describe('UIComponentUISupportColor', () => { + afterEach(async (done: Function) => { + await Settings.initEnv(); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1970 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1970 + * @tc.desc 验证TextPicker组件动态切换浅色模式-浅色模式正常切换 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1970 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1970"); + await Utils.sleep(1000); + await windowSnap.snapShot("before"); + const driver: Driver = Driver.create(); + const changeThemeBt: Component = await driver.findComponent(ON.id('change_theme_bt')); + await changeThemeBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1970 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2030 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2030 + * @tc.desc 验证TextPicker组件跟随系统深浅颜色变化 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2030 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2030"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const changeLightBt: Component = await driver.findComponent(ON.id('change_light_theme_bt')); + await changeLightBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot("light"); + const changeDarkBt: Component = await driver.findComponent(ON.id('change_dark_theme_bt')); + await changeDarkBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1990 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1990 + * @tc.desc 验证TextPicker组件动态切换深色模式-浅色模式正常切换 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1990', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1990 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1990"); + await Utils.sleep(1000); + await windowSnap.snapShot("dark"); + const driver: Driver = Driver.create(); + const changeLightBt: Component = await driver.findComponent(ON.id('change_light_theme_bt')); + await changeLightBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1990 finish.`); + done(); + }) /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1010 @@ -66,6 +117,24 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2010 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2010 + * @tc.desc 验证TextPicker组件固定使用浅色模式 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2010 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2010"); + await Utils.sleep(1000); + await windowSnap.snapShot("1"); + getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + await Utils.sleep(1000); + await windowSnap.snapShot("2"); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2010 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050 @@ -90,6 +159,26 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2000 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2000 + * @tc.desc 验证TextPicker组件动态切换深色模式-深色模式正常切换 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2000', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2000 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2000"); + await Utils.sleep(1000); + await windowSnap.snapShot("before"); + const driver: Driver = Driver.create(); + const changeThemeBt: Component = await driver.findComponent(ON.id('change_theme_bt')); + await changeThemeBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot("after"); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2000 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050_1 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050_1 @@ -114,6 +203,26 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1980 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1980 + * @tc.desc 验证TextPicker组件动态切换浅色模式-深色模式正常切换 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1980 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1980"); + await Utils.sleep(1000); + await windowSnap.snapShot("light"); + const driver: Driver = Driver.create(); + const changeLightBt: Component = await driver.findComponent(ON.id('change_theme_bt')); + await changeLightBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot("dark"); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1980 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1020 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1020 @@ -138,6 +247,24 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2020 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2020 + * @tc.desc 验证TextPicker组件固定使用深色模式 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2020 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2020"); + await Utils.sleep(1000); + await windowSnap.snapShot("1"); + getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2020 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1040 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1040 @@ -158,6 +285,27 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2180 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2180 + * @tc.desc 验证Toggle组件动态切换浅色模式-浅色模式正常切换 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2180 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2180"); + await Utils.sleep(1000); + await windowSnap.snapShot("Toggle"); + const driver: Driver = Driver.create(); + const Toggle: Component = await driver.findComponent(ON.id('Toggle')); + let pointButtonCenter = await Toggle.getBoundsCenter(); + await driver.click(pointButtonCenter.x, pointButtonCenter.y); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2180 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1000 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1000 @@ -182,6 +330,27 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2190 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2190 + * @tc.desc 验证Toggle组件动态切换浅色模式-深色模式正常切换 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2190 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2190"); + await Utils.sleep(1000); + await windowSnap.snapShot("Toggle"); + const driver: Driver = Driver.create(); + const Toggle: Component = await driver.findComponent(ON.id('Toggle')); + let pointButtonCenter = await Toggle.getBoundsCenter(); + await driver.click(pointButtonCenter.x, pointButtonCenter.y); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2190 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1030 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1030 @@ -202,6 +371,27 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2200 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2200 + * @tc.desc 验证Toggle组件动态切换深色模式-浅色模式正常切换 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2200 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2200"); + await Utils.sleep(1000); + await windowSnap.snapShot("Toggle"); + const driver: Driver = Driver.create(); + const Toggle: Component = await driver.findComponent(ON.id('Toggle')); + let pointButtonCenter = await Toggle.getBoundsCenter(); + await driver.click(pointButtonCenter.x, pointButtonCenter.y); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2200 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0990 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0990 @@ -226,6 +416,27 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2210 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2210 + * @tc.desc 验证Toggle组件动态切换深色模式-深色模式正常切换 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2210 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2210"); + await Utils.sleep(1000); + await windowSnap.snapShot("Toggle"); + const driver: Driver = Driver.create(); + const Toggle: Component = await driver.findComponent(ON.id('Toggle')); + let pointButtonCenter = await Toggle.getBoundsCenter(); + await driver.click(pointButtonCenter.x, pointButtonCenter.y); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2210 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0940 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0940 @@ -250,6 +461,49 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2110 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2110 + * @tc.desc The components change according to the dark and light color of the system + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2110 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2110") + await Utils.sleep(2000) + await windowSnap.snapShot('1') + await Utils.sleep(1000) + const driver: Driver = Driver.create(); + const changeThemeBt: Component = await driver.findComponent(ON.id('change_theme_button')); + await changeThemeBt.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2110 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2120 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2120 + * @tc.desc 验证TimePicker组件动态切换浅色模式-深色模式正常切换 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2120 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2120"); + await Utils.sleep(2000); + await windowSnap.snapShot('1'); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const changeThemeBt: Component = await driver.findComponent(ON.id('change_theme_button')); + await changeThemeBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2120 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0930 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0930 @@ -274,6 +528,27 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2130 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2130 + * @tc.desc 验证TimePicker组件动态切换深色模式-浅色模式正常切换 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2130 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2130"); + await Utils.sleep(2000); + await windowSnap.snapShot('1'); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const changeThemeBt: Component = await driver.findComponent(ON.id('change_theme_button')); + await changeThemeBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2130 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0970 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0970 @@ -294,6 +569,57 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2140 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2140 + * @tc.desc 验证TimePicker组件动态切换深色模式-深色模式正常切换 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2140 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2140"); + await Utils.sleep(2000); + await windowSnap.snapShot('1'); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const changeThemeBt: Component = await driver.findComponent(ON.id('change_theme_button')); + await changeThemeBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2140 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2150 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2150 + * @tc.desc 验证TimePicker组件固定使用浅色模式 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2150 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2150"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2160 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2160 + * @tc.desc 验证TimePicker组件固定使用深色模式 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2160 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2160"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2160 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0980 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0980 @@ -323,6 +649,60 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2170 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2170 + * @tc.desc 验证TimePicker组件跟随系统颜色深浅颜色变化 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2170 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2170"); + await Utils.sleep(2000); + await windowSnap.snapShot('1'); + const driver: Driver = Driver.create(); + const changeThemeBt: Component = await driver.findComponent(ON.id('change_theme_button')); + await changeThemeBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2170 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2220 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2220 + * @tc.desc Verify that the Toggle component dynamically toggles dark mode - dark mode toggles normally + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2220 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2220"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2220 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2230_1 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2230_1 + * @tc.desc 验证Toggle组件固定使用深色模式 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2230_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2230_1 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2230"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const lightThemeBt: Component = await driver.findComponent(ON.id('change_light_theme_bt')); + await lightThemeBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2230_1 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0920 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0920 @@ -347,6 +727,44 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2230_2 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2230_2 + * @tc.desc 验证Toggle组件固定使用深色模式 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2230_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2230_2 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2230"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const darkThemeBt: Component = await driver.findComponent(ON.id('change_dark_theme_bt')); + await darkThemeBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2230_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2240 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2240 + * @tc.desc 验证Toggle组件跟随系统深浅颜色变化 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2240_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2240 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2240"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const lightThemeBt: Component = await driver.findComponent(ON.id('change_light_theme_bt')); + await lightThemeBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2240 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0960 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0960 @@ -367,6 +785,26 @@ export default function UIComponentUISupportColor() { done(); }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2240 + * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2240 + * @tc.desc 验证Toggle组件跟随系统深浅颜色变化 + */ + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2240_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2240 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2240"); + await Utils.sleep(1000); + const driver: Driver = Driver.create(); + const darkThemeBt: Component = await driver.findComponent(ON.id('change_dark_theme_bt')); + await Utils.sleep(1000); + await darkThemeBt.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2240 finish.`); + done(); + }) + /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0950 * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0950 diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Logger.ts b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Logger.ts index d8e65ace14fe8912c61a0b31c60ba5c767f116f1..af1e3824e9145fad9306c9ca13b3f73e8d6c8ad9 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Logger.ts +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Logger.ts @@ -16,30 +16,30 @@ import hilog from '@ohos.hilog'; class Logger { - private domain: number; - private prefix: string; - private format: string = "%{public}s, %{public}s"; - - constructor(prefix: string) { - this.prefix = prefix; - this.domain = 0xFF00; - } - - debug(...args: any[]) { - hilog.debug(this.domain, this.prefix, this.format, args); - } - - info(...args: any[]) { - hilog.info(this.domain, this.prefix, this.format, args); - } - - warn(...args: any[]) { - hilog.warn(this.domain, this.prefix, this.format, args); - } - - error(...args: any[]) { - hilog.error(this.domain, this.prefix, this.format, args); - } + private domain: number; + private prefix: string; + private format: string = "%{public}s, %{public}s"; + + constructor(prefix: string) { + this.prefix = prefix; + this.domain = 0xFF00; + } + + debug(...args: any[]) { + hilog.debug(this.domain, this.prefix, this.format, args); + } + + info(...args: any[]) { + hilog.info(this.domain, this.prefix, this.format, args); + } + + warn(...args: any[]) { + hilog.warn(this.domain, this.prefix, this.format, args); + } + + error(...args: any[]) { + hilog.error(this.domain, this.prefix, this.format, args); + } } -export default new Logger('[Screenshot]'); \ No newline at end of file +export default new Logger('[Screenshot]'); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets index c74ae272407cbf707ddcfaaacf42c1e132d5452d..46dd30ac334fa5e9db956ae434fe01237d4bbe9f 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets @@ -16,41 +16,42 @@ import screen from '@ohos.screen'; import window from '@ohos.window'; import Logger from './Logger'; -import { GlobalThis } from './globalThis' -import { BusinessError } from '@ohos.base' -import Window from '@ohos.window' -import common from '@ohos.app.ability.common'; +import { GlobalThis } from './globalThis'; +import { BusinessError } from '@ohos.base'; +import Window from '@ohos.window'; import { i18n } from '@kit.LocalizationKit'; -import { router } from '@kit.ArkUI'; -import { systemDateTime } from '@kit.BasicServicesKit'; +import { ConfigurationConstant } from '@kit.AbilityKit'; +import { util } from '@kit.ArkTS'; +import { router, uiAppearance } from '@kit.ArkUI'; +import Utils from './Utils'; const TAG: string = '[TEST]'; async function sleep(time: number): Promise { const result: string = await new Promise((resolve: Function) => { setTimeout(() => { - resolve('sleep ok') - }, time) + resolve('sleep ok'); + }, time); }); console.info(result); } class Settings { - isPhone: boolean = true; - windowClass: window.Window | undefined = undefined + isPhone: boolean = false; + windowClass: window.Window | undefined = undefined; windowCreateType: string = "changeWindow"; private static DEFAULT_WIDTH: number = 720; - private static DEFAULT_HEIGHT: number = 1280; + private static DEFAULT_HEIGHT: number = 1412; private static DEFAULT_DPI: number = 240; - private static DEFAULT_OFFSET_X: number = 0; - private static DEFAULT_OFFSET_Y: number = 60; - private portrait: boolean = true + private static DEFAULT_OFFSET_X: number = 100; + private static DEFAULT_OFFSET_Y: number = 132; + private portrait: boolean = true; changeWindowPosition(windowClass: window.Window, X: number | undefined, Y: number | undefined) { //为悬浮窗设置位置 windowClass.moveWindowTo(X, Y, (err) => { if (err.code) { - Logger.error(TAG, `Failed to move the window. Cause : ${JSON.stringify(err)}`) + Logger.error(TAG, `Failed to move the window. Cause : ${JSON.stringify(err)}`); return; } Logger.info(TAG, 'Succeed moveWindowTo.'); @@ -61,7 +62,7 @@ class Settings { //为悬浮窗设置大小 windowClass.resize(width, height, (err) => { if (err.code) { - Logger.error(TAG, `Failed to change the window size. Cause : ${JSON.stringify(err)}`) + Logger.error(TAG, `Failed to change the window size. Cause : ${JSON.stringify(err)}`); return; } Logger.info(TAG, 'Succeed changeWindowSize'); @@ -72,15 +73,14 @@ class Settings { //为悬浮窗加载对应的目标页面 windowClass.setUIContent(pageURI, (err) => { if (err.code) { - Logger.error(TAG, `Failed to load the window. Cause : ${JSON.stringify(err)}`) + Logger.error(TAG, `Failed to load the window. Cause : ${JSON.stringify(err)}`); return; } Logger.info(TAG, `Succeeded in loading the content.`); - //显示悬浮窗 windowClass.showWindow((err) => { if (err.code) { - Logger.error(TAG, `Failed to show the window. Cause : ${JSON.stringify(err)}`) + Logger.error(TAG, `Failed to show the window. Cause : ${JSON.stringify(err)}`); return; } Logger.info(TAG, `Succeeded in showing the window.`); @@ -92,11 +92,10 @@ class Settings { //为悬浮窗加载对应的目标页面 windowClass.setUIContent(pageURI, (err) => { if (err.code) { - Logger.error(TAG, `Failed to load the window. Cause : ${JSON.stringify(err)}`) + Logger.error(TAG, `Failed to load the window. Cause : ${JSON.stringify(err)}`); return; } Logger.info(TAG, `Succeeded in loading the content.`); - }) } @@ -108,12 +107,11 @@ class Settings { return; } Logger.info(TAG, `Succeeded in getting all screens. Data:${JSON.stringify(data)}`); - screenClass = data[0]; //设置设备dpi screenClass.setDensityDpi(dpi, (err: BusinessError) => { if (err.code) { - Logger.error(TAG, `Failed to set the pixel density. Code : ${JSON.stringify(err)}`) + Logger.error(TAG, `Failed to set the pixel density. Code : ${JSON.stringify(err)}`); return; } Logger.info(TAG, `Succeeded in setting the pixel density`); @@ -125,7 +123,7 @@ class Settings { windowClass.setWindowSystemBarEnable(names, (err: BusinessError) => { const errCode: number = err.code; if (errCode) { - Logger.error(TAG, 'Failed to set the system bar to be invisible. Cause:' + JSON.stringify(err)) + Logger.error(TAG, 'Failed to set the system bar to be invisible. Cause:' + JSON.stringify(err)); return; } Logger.info(TAG, `Succeeded in set the system bar to be invisible`); @@ -145,6 +143,42 @@ class Settings { } } + async initEnv() { + let context = getContext() + let promise = await Window.getLastWindow(context); + let orientation = Window.Orientation.PORTRAIT; + try { + getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_NOT_SET); + await promise.setPreferredOrientation(orientation); + Utils.sleep(1000); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Set dark-mode successfully.'); + }).catch((error:Error) => { + console.error('Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + + if (this.windowClass == undefined) { + return + } + + this.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + } + /* * 窗口页面更新 * Setting.createWindow(pageURI: String, {X,Y,width,height,dpi}?:{X?:number,Y?:number,width?:number,height?:number,dpi?:number}):void diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Utils.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Utils.ets index 7f06aa4d872061e0682441fd8f47b33730bc78c1..2d02986d8c4b624d9d90a19f98cb51172c2bf52d 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Utils.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Utils.ets @@ -13,35 +13,27 @@ * limitations under the License. */ -import {Driver , ON} from '@ohos.UiTest' +import { Driver, ON } from '@ohos.UiTest'; export default class Utils { - - static async sleep(time : number) :Promise { - const result:string = await new Promise((resolve:Function)=>{ - setTimeout(()=> { - resolve('sleep ok') - },time) + static async sleep(time: number): Promise { + const result: string = await new Promise((resolve: Function) => { + setTimeout(() => { + resolve('sleep ok'); + }, time); }); console.info(result); } - static async waitAsync (ms:number):Promise{ - return new Promise((resolve)=>{ - setTimeout(resolve,ms) - }) + static async waitAsync(ms: number): Promise { + return new Promise((resolve) => { + setTimeout(resolve, ms); + }) } - static async clickComponentByKey (componentKey :string){ - let driver = Driver.create(); - let component = await driver.findComponent(ON.id(componentKey)) - await component.click(); - + static async clickComponentByKey(componentKey: string) { + let driver = Driver.create(); + let component = await driver.findComponent(ON.id(componentKey)); + await component.click(); } - - } - - - - diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/globalThis.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/globalThis.ets index 1fa18fbd244d65f4c78213b89d9d01e29e01eae6..adffab9fbe3b12218449db00c2489ff00f3d1bcb 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/globalThis.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/globalThis.ets @@ -13,37 +13,30 @@ * limitations under the License. */ -import common from '@ohos.app.ability.common' +import common from '@ohos.app.ability.common'; // 构造单例对象 - -export class GlobalThis { - +export class GlobalThis { private constructor() { } - private static instance:GlobalThis; - - private _uiContexts = new Map (); - - public static getInstance():GlobalThis { + private static instance: GlobalThis; + private _uiContexts = new Map(); + public static getInstance(): GlobalThis { if (!GlobalThis.instance) { - GlobalThis.instance = new GlobalThis(); - + GlobalThis.instance = new GlobalThis(); } - - return GlobalThis.instance - + return GlobalThis.instance; } - getContext(key:string):common.UIAbilityContext | undefined { + getContext(key: string): common.UIAbilityContext | undefined { return this._uiContexts.get(key); } - setContext(key:string, value:common.UIAbilityContext) :void { - this._uiContexts.set(key,value); + setContext(key: string, value: common.UIAbilityContext): void { + this._uiContexts.set(key, value); } // 其他需要传递的类依次扩展 -} \ No newline at end of file +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/snapShot.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/snapShot.ets index 773f21352336973e8a11bce347632a45bd62dd62..db55bdcecbde82e9cde8c7c0ca35f4b0103cfe23 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/snapShot.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/snapShot.ets @@ -17,17 +17,16 @@ import window from '@ohos.window'; import Logger from './Logger'; import image from '@ohos.multimedia.image'; import fs from '@ohos.file.fs'; -import common from '@ohos.app.ability.common' -import { GlobalThis } from './globalThis' -import screenshot from '@ohos.screenshot' -import { BusinessError } from '@ohos.base' +import common from '@ohos.app.ability.common'; +import { GlobalThis } from './globalThis'; +import screenshot from '@ohos.screenshot'; +import { BusinessError } from '@ohos.base'; import Settings from './Settings'; import { Driver } from '@kit.TestKit'; import { display } from '@kit.ArkUI'; const TAG: string = '[TEST]'; - class windowSnap { filePath(suffix: string, pageName ?: string) { let context: common.UIAbilityContext | undefined = GlobalThis.getInstance().getContext('context') @@ -41,46 +40,45 @@ class windowSnap { } let displayName = `IMG_${name}.${suffix}` let filePath: string = pathDir + "/" + displayName; - Logger.info(TAG, 'createFile filePath = ${filePath}') + Logger.info(TAG, 'createFile filePath = ${filePath}'); return filePath; - } async deleteFile(filePath: string) { - let exists = await fs.access(filePath) - Logger.info(TAG, `oldFile exists = ${exists}`) + let exists = await fs.access(filePath); + Logger.info(TAG, `oldFile exists = ${exists}`); if (exists) { - fs.unlinkSync(filePath) - Logger.info(TAG, `remove file succeed`) + fs.unlinkSync(filePath); + Logger.info(TAG, `remove file succeed`); } } createFile(filePath: string) { - return fs.openSync(filePath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE) + return fs.openSync(filePath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); } async save(filePath: string, data: image.PixelMap) { let packOpts: image.PackingOption = { format: "image/webp", quality: 100 } - let imagePackerApi = image.createImagePacker() - let arrayBuffer = await imagePackerApi.packing(data, packOpts) + let imagePackerApi = image.createImagePacker(); + let arrayBuffer = await imagePackerApi.packing(data, packOpts); let file: fs.File | null = null; while (file == null) { - file = this.createFile(filePath) + file = this.createFile(filePath); } - let exists = await fs.access(file.path) - Logger.info(TAG, `createFile exists = ${exists}`) - let fd = file.fd - Logger.info(TAG, `createFile fd = ${fd}`) - imagePackerApi.release() + let exists = await fs.access(file.path); + Logger.info(TAG, `createFile exists = ${exists}`); + let fd = file.fd; + Logger.info(TAG, `createFile fd = ${fd}`); + imagePackerApi.release(); try { - await fs.write(fd, arrayBuffer) + await fs.write(fd, arrayBuffer); } catch (err) { - Logger.error(TAG, `write failed code is ${err.code},message is ${err.message}`) + Logger.error(TAG, `write failed code is ${err.code},message is ${err.message}`); } - fs.closeSync(file) - Logger.info(TAG, `write picture done`) + fs.closeSync(file); + Logger.info(TAG, `write picture done`); } async saveLog(content: string, name: string) { @@ -265,4 +263,4 @@ class windowSnap { } } -export default new windowSnap() \ No newline at end of file +export default new windowSnap(); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets index 5b2992dcb24394039f4c71907479c34895c1a73a..d082fdb69f1040f05c7082df9e37a77ed15ca3f9 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Copyright (c) 2024 Copyright (C) 2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -59,13 +59,27 @@ export default class TestAbility extends UIAbility { hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageCreate'); GlobalThis.getInstance().setContext("context", this.context) - windowStage.loadContent('testability/pages/Index', (err) => { - if (err.code) { - hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); - return; + let atManager = abilityAccessCtrl.createAtManager(); + let appFlags = bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION; + let permissionFlags = 0; + bundleManager.getBundleInfoForSelf(appFlags, (err, data) => { + if (err) { + Logger.error(TAG, 'getAllApplicationInfo failed: %{public}s', err.message); + console.error("") } - hilog.info(0x0000, 'testTag', 'Succeeded in loading the content.'); - }); + let tokenID = + data.appInfo.accessTokenId; //系统应用可以通过bundleManager.getApplicationInfo获取,普通应用可以通过bundleManager.getBundleInfoForSelf获取 + atManager.grantUserGrantedPermission(tokenID, 'ohos.permission.READ_MEDIA', permissionFlags, (err, data) => { + if (err) { + Logger.info(TAG, `grantUserGrantedPermission fail, err->${JSON.stringify(err)}`) + } + }) + atManager.grantUserGrantedPermission(tokenID, 'ohos.permission.WRITE_MEDIA', permissionFlags, (err, data) => { + if (err) { + Logger.info(TAG, `grantUserGrantedPermission fail, err->${JSON.stringify(err)}`) + } + }) + }) } onWindowStageDestroy() { diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..2d1cd25bc69824a2ad386f3bdb8c558c942fe225 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0110.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0110 { + build() { + Column() { + Button("range_string[][]") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: [ + getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.appliance')) + ], + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..bfc3db889131e3df424ce1c598e2103f8332742c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0120.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct ComponentFunctionSpecialComponentsDialogTextPickerDialog0120 { + build() { + Column() { + Button("range_Recource") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..e926587fe51b176f6918e8b7a046058dda9ae615 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0130.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0130 { + build() { + Column() { + Button("TextPickerRangeContent_icon_string") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: [ + { + text: '测试1', + icon: 'cat.jpg' + }, + { + text: '测试2', + icon: '2.png' + } + ], + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..3cc92eb7d4e1fc66f8dd04a343bd81859f7547e3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0140.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0140 { + build() { + Column() { + Button("TextPickerRangeContent_icon_Resource") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: [ + { + icon: $r('app.media.icon') + }, + { + icon: $r('app.media.icon') + } + ], + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..bf87b9d4bf861681a80d771970d44f355a0bf7a2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0180.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0180 { + build() { + Column() { + Button("TextCascadePickerRangeContent[]_text_Resource") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: [ + { + text: this.getString($r('app.string.fruit')), + children: [ + { text: this.getString($r('app.string.apple')) }, + { text: this.getString($r('app.string.banana')) }, + ] + }, + { + text: this.getString($r('app.string.appliance')), + children: [ + { text: this.getString($r('app.string.tv')) }, + { text: this.getString($r('app.string.computer')) }, + ] + } + ], + }) + }) + }.width('100%') + .height('100%') + } + + getString(res: Resource): string { + return getContext(this).resourceManager.getStringSync(res); + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0210.ets new file mode 100644 index 0000000000000000000000000000000000000000..6909f925600aa01a0e3189cf5c5a8fbb14e98aef --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0210.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0210 { + build() { + Column() { + Button("selected_number[]") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: [ + getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.appliance')), + ], + canLoop: false, + selected: [1, 2] + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..09bdfb8d319dfebf9a3ca611da329ae00d34f7e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0220.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0220 { + build() { + Column() { + Button("value_string") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + value: "西瓜" + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..1d59e4d136aa69380e10fb0aa8dd1d08dd4fde1e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0230.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0230 { + build() { + Column() { + Button("value_string[]") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: [ + getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.appliance')), + ], + canLoop: false, + value: ['西瓜', '洗衣机'] + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..12a930606d86f5226be14bd03b175acafba1d53f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0240.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0240 { + build() { + Column() { + Button("disappearTextStyle") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + disappearTextStyle: null + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..1654c12585b81fe59a18de6ba914115b13831c22 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0250.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0250 { + build() { + Column() { + Button("disappearTextStyle_color_Color") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + disappearTextStyle: { + color: Color.Red + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..f7e72374c4fda4b9ad7988157f843ae8143eff91 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0260.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0260 { + build() { + Column() { + Button("disappearTextStyle_color_number") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + disappearTextStyle: { + color: 0xFF0000 + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..cdb578c2ad188322c7dfb9587ada7fb9322e8eef --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0270.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0270 { + build() { + Column() { + Button("disappearTextStyle_color_string") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + disappearTextStyle: { + color: 'rgb(0,128,0)' + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..1a0b8bdee011baaa30b412342ccac27a4db84e56 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0280.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0280 { + build() { + Column() { + Button("disappearTextStyle_color_Resource") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + disappearTextStyle: { + color: getContext(this).resourceManager.getColorSync($r('app.color.color_0x800080')) + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..0887b7e4e076bd1c013d35c0a1e684e8db877457 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0290.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0290 { + build() { + Column() { + Button("disappearTextStyle_font_size_string") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + disappearTextStyle: { + font: { + size: '24%' + } + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..ee9796d3e4e15e87aea85756806199d35002813d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0330.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0330 { + build() { + Column() { + Button("disappearTextStyle_font_weight_number_0") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + disappearTextStyle: { + font: { + weight: 0 + } + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0520.ets new file mode 100644 index 0000000000000000000000000000000000000000..dd57f673acb0684c60367db46b21833c2929087c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0520.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0520 { + build() { + Column() { + Button("selectedTextStyle_color_number") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + selectedTextStyle: { + color: 0xFF0000 + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0530.ets new file mode 100644 index 0000000000000000000000000000000000000000..cef54e7d1930136b1b2abdeb26b096f26e2a6697 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0530.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0530 { + build() { + Column() { + Button("selectedTextStyle_color_string") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + selectedTextStyle: { + color: "rgb(0,128,0)" + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0540.ets new file mode 100644 index 0000000000000000000000000000000000000000..67006a896c7f0bb72f000dbf4ae93e40f2394690 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0540.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0540 { + build() { + Column() { + Button("selectedTextStyle_color_Resource") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + selectedTextStyle: { + color: getContext(this).resourceManager.getColorSync($r('app.color.color_0x800080')) + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0550.ets new file mode 100644 index 0000000000000000000000000000000000000000..ad6f23c6e65eb722220133aad5360a82ea8b8085 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0550.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0550 { + build() { + Column() { + Button("selectedTextStyle_font_size_string") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + selectedTextStyle: { + font: { + size: '24%' + } + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0560.ets new file mode 100644 index 0000000000000000000000000000000000000000..bbf1860569764c4e0d008a8b2f9009d60aeeb22a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0560.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0560 { + build() { + Column() { + Button("selectedTextStyle_font_size_string") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + selectedTextStyle: { + font: { + size: $r('app.string.string_24') + } + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0570.ets new file mode 100644 index 0000000000000000000000000000000000000000..1f1a38d24c612886d92c7241522f2bf8512c71b5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0570.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0570 { + build() { + Column() { + Button("selectedTextStyle_font_weight_string") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + selectedTextStyle: { + font: { + weight: '50%' + } + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0580.ets new file mode 100644 index 0000000000000000000000000000000000000000..b014aa68e50a659d85eae0e1e955b8b49e3ff6ac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0580.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0580 { + build() { + Column() { + Button("selectedTextStyle_font_weight_number") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + selectedTextStyle: { + font: { + weight: 1000 + } + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0590.ets new file mode 100644 index 0000000000000000000000000000000000000000..1b9a8cfe0843ddc9d466bb7919497673a6370f8c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0590.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0590 { + build() { + Column() { + Button("selectedTextStyle_font_weight_number_0") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + selectedTextStyle: { + font: { + weight: 0 + } + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0600.ets new file mode 100644 index 0000000000000000000000000000000000000000..676ee9e6bfd2a0670b0dc7ba8b45a381f103a264 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0600.ets @@ -0,0 +1,45 @@ +import font from '@ohos.font' + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct ComponentFunctionSpecialComponentsDialogTextPickerDialog0600 { + aboutToAppear(): void { + font.registerFont({ + familyName: 'HarmonyOS_Sans_Thin_Italic', + familySrc: $rawfile('font/HarmonyOS_Sans_Thin_Italic.ttf') + }); + } + + build() { + Column() { + Button("selectedTextStyle_font_family_自定义字体") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + selectedTextStyle: { + font: { + family: 'arial' + } + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0610.ets new file mode 100644 index 0000000000000000000000000000000000000000..778823105a5cd690ae457ab051a8cd96e4a06c88 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0610.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import font from '@ohos.font' + +@Entry +@Component +struct ComponentFunctionSpecialComponentsDialogTextPickerDialog0610 { + build() { + Column() { + Button("selectedTextStyle_font_family_多个字体") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + selectedTextStyle: { + font: { + family: "Arial, HarmonyOS Sans" + } + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0620.ets new file mode 100644 index 0000000000000000000000000000000000000000..558e47500dad8ffe3150426eb71cbb041b0c892d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0620.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import font from '@ohos.font' + +@Entry +@Component +struct ComponentFunctionSpecialComponentsDialogTextPickerDialog0620 { + aboutToAppear(): void { + font.registerFont({ + familyName: 'HarmonyOS_Sans_Thin_Italic', + familySrc: $rawfile('font/HarmonyOS_Sans_Thin_Italic.ttf') + }); + } + + build() { + Column() { + Button("selectedTextStyle_font_family_自定义字体") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + selectedTextStyle: { + font: { + family: "HarmonyOS_Sans_Thin_Italic" + } + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0630.ets new file mode 100644 index 0000000000000000000000000000000000000000..75f1c4f85f92a21c86496fb9b0efc0c06dac6ff5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0630.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0630 { + build() { + Column() { + Button("defaultPickerltemHeight_异常值_1000") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + defaultPickerItemHeight: 1000 + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0640.ets new file mode 100644 index 0000000000000000000000000000000000000000..b8d479abf76dd3def2963a7a2b4b6f16a13c93c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0640.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0640 { + build() { + Column() { + Button("defaultPickerltemHeight_异常值_0px") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + defaultPickerItemHeight: '0px' + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0650.ets new file mode 100644 index 0000000000000000000000000000000000000000..4086f51577ecc1887f2c21f27895227aa0581a54 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0650.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0650 { + build() { + Column() { + Button("defaultPickerltemHeight_异常值_-50") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + defaultPickerItemHeight: -50 + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0660.ets new file mode 100644 index 0000000000000000000000000000000000000000..93c413517672b1a1836b353cc0e99e8c77625fd6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0660.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0660 { + build() { + Column() { + Button("backgroundColor_number") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundColor: 0xFF0000 + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0670.ets new file mode 100644 index 0000000000000000000000000000000000000000..ec8f3de2ffa0b0e4ff7a1f96980be375d3a83629 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0670.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0670 { + build() { + Column() { + Button("backgroundColor_Color") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundColor: Color.Red + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0680.ets new file mode 100644 index 0000000000000000000000000000000000000000..26a88d7db81fddc3aaeca2d9e25eb1c9fe61e554 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0680.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0680 { + build() { + Column() { + Button("backgroundColor_string") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundColor: 'rgb(0,128,0)' + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0690.ets new file mode 100644 index 0000000000000000000000000000000000000000..d77107850dc60c83d226fe94f02117e602c2a145 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0690.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0690 { + build() { + Column() { + Button("backgroundColor_Resource") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundColor: getContext(this).resourceManager.getColorSync($r('app.color.color_0x800080')) + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0700.ets new file mode 100644 index 0000000000000000000000000000000000000000..95387f602013e598fea02c711d7178fcbbc155ea --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0700.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0700 { + build() { + Column() { + Button("backgroundBlurStyle_Thin") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundBlurStyle: BlurStyle.Thin + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0710.ets new file mode 100644 index 0000000000000000000000000000000000000000..7db4aac8a466171e4b43e56bf739b3af6590eec9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0710.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0710 { + build() { + Column() { + Button("backgroundBlurStyle_Regular") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundBlurStyle: BlurStyle.Regular + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0720.ets new file mode 100644 index 0000000000000000000000000000000000000000..f86f70d03d10228f4859e106fafdbe87b619582a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0720.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0720 { + build() { + Column() { + Button("backgroundBlurStyle_Thick") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundBlurStyle: BlurStyle.Thick + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0730.ets new file mode 100644 index 0000000000000000000000000000000000000000..1e334facd9aa79eb2fc22dd9e0f0a7125a45c2b3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0730.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0730 { + build() { + Column() { + Button("backgroundBlurStyle_BACKGROUND_THIN") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundBlurStyle: BlurStyle.BACKGROUND_THIN + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0740.ets new file mode 100644 index 0000000000000000000000000000000000000000..d2fabf38a11418efebf6292ca7f9761a9bcaee34 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0740.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0740 { + build() { + Column() { + Button("backgroundBlurStyle_BACKGROUND_REGULAR") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundBlurStyle: BlurStyle.BACKGROUND_REGULAR + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0750.ets new file mode 100644 index 0000000000000000000000000000000000000000..a1fded9b282ecee7dc7233c383f692035b529b20 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0750.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0750 { + build() { + Column() { + Button("backgroundBlurStyle_BACKGROUND_THICK") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundBlurStyle: BlurStyle.BACKGROUND_THICK + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0760.ets new file mode 100644 index 0000000000000000000000000000000000000000..a9c279e8e7bff68c582a5b28055ddc2498f01fd4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0760.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0760 { + build() { + Column() { + Button("backgroundBlurStyle_BACKGROUND_ULTRA_THICK") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundBlurStyle: BlurStyle.BACKGROUND_ULTRA_THICK + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0770.ets new file mode 100644 index 0000000000000000000000000000000000000000..ebdf2ca3f3c012d553ee7659e684e38b6c7b3da9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0770.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0770 { + build() { + Column() { + Button("backgroundBlurStyle_NONE") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundBlurStyle: BlurStyle.NONE + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0780.ets new file mode 100644 index 0000000000000000000000000000000000000000..a79ffcd3a9fd8f91a749602f839e0d97c1928463 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0780.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0780 { + build() { + Column() { + Button("backgroundBlurStyle_NONE") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundBlurStyle: BlurStyle.NONE + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0800.ets new file mode 100644 index 0000000000000000000000000000000000000000..5368dc62ffbe9d6259e7cf084bc49ca772ab55b6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0800.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0800 { + build() { + Column() { + Button("backgroundBlurStyle_COMPONENT_REGULAR") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundBlurStyle: BlurStyle.COMPONENT_REGULAR + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0810.ets new file mode 100644 index 0000000000000000000000000000000000000000..fe52b4d387541c26cb5f2835b76348411f38f713 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0810.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog0810 { + build() { + Column() { + Button("backgroundBlurStyle_COMPONENT_THICK") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + backgroundBlurStyle: BlurStyle.COMPONENT_THICK + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1010.ets new file mode 100644 index 0000000000000000000000000000000000000000..f311e69aab8982fca8345e8a26686f12a56f4d23 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1010.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1010 { + build() { + Column() { + Button("maskRect_x:NULL") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + x: null + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1020.ets new file mode 100644 index 0000000000000000000000000000000000000000..53cbcbe762f8c93d8b2ce9526d251e68133c3674 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1020.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1020 { + build() { + Column() { + Button("maskRect_string_y60%") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + y: '50%' + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1030.ets new file mode 100644 index 0000000000000000000000000000000000000000..1541b3e4a9fd1045de62a37a513403218feb7818 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1030.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1030 { + build() { + Column() { + Button("maskRect_string_y") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + y: '' + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1040.ets new file mode 100644 index 0000000000000000000000000000000000000000..88db6b42ec625065fede9d433a229477e4f0238c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1040.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1040 { + build() { + Column() { + Button("maskRect_number_y:-100") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + y: -100 + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1050.ets new file mode 100644 index 0000000000000000000000000000000000000000..917387044ac9333fe4037e66b857e52b3500dc5e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1050.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1050 { + build() { + Column() { + Button("maskRect_Resource_y:$r(200px)") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + y: $r('app.string.string_200px') + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1060.ets new file mode 100644 index 0000000000000000000000000000000000000000..75d5ef60624f2556701def4a3be3fd0e0beae5f4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1060.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1060 { + build() { + Column() { + Button("maskRect_y:Undefined") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + y: undefined + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1070.ets new file mode 100644 index 0000000000000000000000000000000000000000..ebdbe35c32b867b925dd318214b6b6c0abf1d60a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1070.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1070 { + build() { + Column() { + Button("maskRect_string_width:40%") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + width: '40%' + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1080.ets new file mode 100644 index 0000000000000000000000000000000000000000..7994f879b6cd2ed2ea1ca8ef1c654ab7a4e5fb6d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1080.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1080 { + build() { + Column() { + Button("maskRect_number_width:200") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + width: 200 + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1090.ets new file mode 100644 index 0000000000000000000000000000000000000000..a35e578d403b8c6c9ff4e1e612435050af763be6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1090.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1090 { + build() { + Column() { + Button("maskRect_string_width:$r(300px)") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + width: getContext(this).resourceManager.getStringSync($r('app.string.string_300px')) + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1100.ets new file mode 100644 index 0000000000000000000000000000000000000000..9cd85c87c5834dc5b408fac407ffa2c7d6125dcc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1100.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1100 { + build() { + Column() { + Button("maskRect_string_width:-200") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + width: -200 + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1110.ets new file mode 100644 index 0000000000000000000000000000000000000000..1ca6618675d02705f8033b2e4961ca03df3a96fa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1110.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1110 { + build() { + Column() { + Button("maskRect_string_height:200px") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + height: '200px' + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1120.ets new file mode 100644 index 0000000000000000000000000000000000000000..bd13ff497a98c1e72576335672dd46c0b80a20d9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1120.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1120 { + build() { + Column() { + Button("maskRect_number_height:200") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + height: 200 + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1130.ets new file mode 100644 index 0000000000000000000000000000000000000000..863605ee5336e6eb184247d77d66050df9e828bb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1130.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1130 { + build() { + Column() { + Button("maskRect_resource_height:$r(60%)") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + height: getContext(this).resourceManager.getStringSync($r('app.string.string_60')) + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1140.ets new file mode 100644 index 0000000000000000000000000000000000000000..510db3fc7dfa2ed207b108f8a4ae4db697c49a47 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1140.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 ComponentFunctionSpecialComponentsDialogTextPickerDialog1140 { + build() { + Column() { + Button("maskRect_string_height:-60%") + .id("show_dialog") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test4'], + maskRect: { + height: '-60%' + } + }) + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..4eb19269760c93ac9531d5ceced02499b1fa3f2d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0130.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 UIComponentUIsupportColor0130 { + build() { + Column() { + // 设置组件为深色模式 + WithTheme({ colorMode: ThemeColorMode.DARK }) { + Column() { + Button('WithTheme 布局高度 30%') + .margin(20) + } + .height('30%') + .justifyContent(FlexAlign.Center) + .backgroundColor($r('sys.color.background_primary')) + } + } + .width('100%') + .height('100%') + .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.END, SafeAreaEdge.BOTTOM, SafeAreaEdge.START]) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/ModifierConfig.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/ModifierConfig.ets new file mode 100644 index 0000000000000000000000000000000000000000..ce58cdb0bf88e36924071ae86e7c267eeac16370 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/ModifierConfig.ets @@ -0,0 +1,88 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +//定义要测试的属性以及类型 +export interface TextPickerTestAttributes { + CanLoop?: boolean + DisappearTextStyle?: PickerTextStyle + TextStyle?: PickerTextStyle + SelectedTextStyle?: PickerTextStyle + SelectedIndex?: (number | number[]) + DefaultPickerItemHeight?: (string | number) +} + +export const Range:string[] | string[][] | Resource | TextPickerRangeContent[] | TextCascadePickerRangeContent[] = ['apple1', 'orange2', 'peach3', 'grape4'] + +//初始化测试数据 +export const TextPickerTestData: TextPickerTestAttributes[] = [ + { + CanLoop: true, + DefaultPickerItemHeight: 10, + DisappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + SelectedTextStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + TextStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + SelectedIndex: 1 + }, + { + CanLoop: false, + DefaultPickerItemHeight: 0, + DisappearTextStyle: { color: Color.Blue, font: { size: 15, weight: FontWeight.Lighter } }, + SelectedTextStyle: { color: Color.Green }, + TextStyle: { color: Color.Blue, font: { size: 15, weight: FontWeight.Lighter } }, + SelectedIndex: 2 + } +] + +//定义要测试的属性以及类型 +export interface TimePickerTestAttributes { + DisappearTextStyle?: PickerTextStyle + TextStyle?: PickerTextStyle + SelectedTextStyle?: PickerTextStyle + UseMilitaryTime?: boolean +} + +//初始化测试数据 +export const TimePickerTestData: TimePickerTestAttributes[] = [ + { + UseMilitaryTime: true, + DisappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + SelectedTextStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + TextStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + }, + { + UseMilitaryTime: false, + DisappearTextStyle: { color: Color.Blue, font: { size: 15, weight: FontWeight.Lighter } }, + SelectedTextStyle: { color: Color.Green }, + TextStyle: { color: Color.Blue, font: { size: 15, weight: FontWeight.Lighter } }, + } +] + +//定义要测试的属性以及类型 +export interface ToggleTestAttributes { + SelectedColor?: (ResourceColor | undefined) + SwitchPointColor?: (ResourceColor | undefined) +} + +//初始化测试数据 +export const ToggleTestData: ToggleTestAttributes[] = [ + { + SelectedColor: 0xff00ff00, + SwitchPointColor: Color.Black + }, + { + SelectedColor: "#ff0000ff", + SwitchPointColor: Color.Green + } +] diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0460.ets new file mode 100644 index 0000000000000000000000000000000000000000..9581900ff1865690941ffab89fbdebd3079cec51 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0460.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 { TextPickerModifier } from '@kit.ArkUI' +import { Range, TextPickerTestData } from './ModifierConfig'; + +@Entry +@Component +struct UIComponentButtonCommonButton0460 { + + @State modifier: TextPickerModifier | undefined = undefined; + + build() { + Column() { + Button("切换配置1") + .id("button1") + .margin(20) + .onClick(() => { + const attr = TextPickerTestData[0]; + this.modifier = new TextPickerModifier() + .defaultPickerItemHeight(attr.DefaultPickerItemHeight) + .disappearTextStyle(attr.DisappearTextStyle) + .canLoop(attr.CanLoop) + .selectedTextStyle(attr.SelectedTextStyle) + .textStyle(attr.TextStyle) + .selectedIndex(attr.SelectedIndex) + }) + TextPicker({ + range: Range + }).attributeModifier(this.modifier) + + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0470.ets new file mode 100644 index 0000000000000000000000000000000000000000..4295ebe584c57a97d8a3f9b1c3cf6beb5cbaaf66 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0470.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 { TextPickerModifier } from '@kit.ArkUI' +import { Range, TextPickerTestData } from './ModifierConfig'; + +@Entry +@Component +struct UIComponentButtonCommonButton0470 { + + @State modifier: TextPickerModifier | undefined = undefined; + + build() { + Column() { + Button("切换配置2") + .id("button1") + .margin(20) + .onClick(() => { + const attr = TextPickerTestData[1]; + this.modifier = new TextPickerModifier() + .defaultPickerItemHeight(attr.DefaultPickerItemHeight) + .disappearTextStyle(attr.DisappearTextStyle) + .canLoop(attr.CanLoop) + .selectedTextStyle(attr.SelectedTextStyle) + .textStyle(attr.TextStyle) + .selectedIndex(attr.SelectedIndex) + }) + TextPicker({ + range: Range + }).attributeModifier(this.modifier) + + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0480.ets new file mode 100644 index 0000000000000000000000000000000000000000..c4edcc8a61602e4788d45d4a100442f8c739842c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0480.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 { TimePickerModifier } from '@kit.ArkUI' +import { TimePickerTestData } from './ModifierConfig'; + +@Entry +@Component +struct UIComponentButtonCommonButton0480 { + + @State modifier: TimePickerModifier | undefined = undefined; + + build() { + Column() { + Button("切换配置1") + .id("button1") + .margin(20) + .onClick(() => { + const attr = TimePickerTestData[0]; + this.modifier = new TimePickerModifier() + .useMilitaryTime(attr.UseMilitaryTime) + .disappearTextStyle(attr.DisappearTextStyle) + .selectedTextStyle(attr.SelectedTextStyle) + .textStyle(attr.TextStyle) + }) + TimePicker().attributeModifier(this.modifier) + + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0490.ets new file mode 100644 index 0000000000000000000000000000000000000000..bcec6dbdb8633aa0713d5a362b8cd3090f9fe970 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0490.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 { TimePickerModifier } from '@kit.ArkUI' +import { TimePickerTestData } from './ModifierConfig'; + +@Entry +@Component +struct UIComponentButtonCommonButton0490 { + + @State modifier: TimePickerModifier | undefined = undefined; + + build() { + Column() { + Button("切换配置2") + .id("button1") + .margin(20) + .onClick(() => { + const attr = TimePickerTestData[1]; + this.modifier = new TimePickerModifier() + .useMilitaryTime(attr.UseMilitaryTime) + .disappearTextStyle(attr.DisappearTextStyle) + .selectedTextStyle(attr.SelectedTextStyle) + .textStyle(attr.TextStyle) + }) + TimePicker().attributeModifier(this.modifier) + + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0500.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c8c5317ace26e18f2ff0c43d2a8bdfd04da7701 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0500.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' +import { Color } from '@ohos.graphics.scene' + +interface TestAttributes { + SelectedColor?: (ResourceColor | undefined) + SwitchPointColor?: (ResourceColor | undefined) +} + +@Entry +@Component +struct UIComponentButtonStyle0100 { + @State styleIndex: number = 0; + + testData: TestAttributes[] = [ + { + SelectedColor: 0xff00ff00, + SwitchPointColor: Color.Black + }, + { + SelectedColor: "#ff0000ff", + SwitchPointColor: Color.Green + } +] + + build() { + Column() { + Button('Modify') + .onClick(() => { + this.styleIndex = 1; + }) + .id('showButton') + Toggle({ type: ToggleType.Switch, isOn: true }) + .selectedColor(this.testData[this.styleIndex].SelectedColor) + .switchPointColor(this.testData[this.styleIndex].SwitchPointColor) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0510.ets new file mode 100644 index 0000000000000000000000000000000000000000..124c3a3ea1bf6d1379eb0f540c8b2f5199f269aa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0510.ets @@ -0,0 +1,40 @@ +import { ToggleModifier } from '@kit.ArkUI' +import { ToggleTestData } from './ModifierConfig'; + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonCommonButton0510 { + + @State modifier: ToggleModifier | undefined = undefined; + + build() { + Column() { + Button('切换配置2') + .id('button1') + .onClick(() => { + const attr = ToggleTestData[1]; + this.modifier = new ToggleModifier() + .selectedColor(attr.SelectedColor) + .switchPointColor(attr.SwitchPointColor) + }) + Toggle({ + type: ToggleType.Switch + }).attributeModifier(this.modifier) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle006.ets new file mode 100644 index 0000000000000000000000000000000000000000..ab02e078e0ab35a4580d29a875efd96f8c1338e4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle006.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. + */ +import { ConfigurationConstant } from '@kit.AbilityKit'; + +@Entry +@Component +struct UIComponentButtonRadioStyle006 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle008.ets new file mode 100644 index 0000000000000000000000000000000000000000..c7a8910dff20848bd2095fc1d297c5a2c2a18810 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle008.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { ConfigurationConstant } from '@kit.AbilityKit'; + +@Entry +@Component +struct UIComponentButtonRadioStyle008 { + @State ToggleUnselectedColor: ResourceColor = '' + + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Button('十六进制数值') + .onClick(() => { + this.ToggleUnselectedColor = '#BBFFFF' + }) + .id('Button') + Row() { + Toggle({ type: ToggleType.Switch }) + .switchStyle({ unselectedColor: this.ToggleUnselectedColor }) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('50%') + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle009.ets new file mode 100644 index 0000000000000000000000000000000000000000..257f839819d0b1ea6288beddf2ae4c55eb2c9d4b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle009.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 { ConfigurationConstant } from '@kit.AbilityKit'; + +@Entry +@Component +struct UIComponentButtonRadioStyle009 { + @State ToggleUnselectedColor: ResourceColor = '' + @State UnselectedColo: boolean = false + + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Button('unselectedColor:字符串') + .onClick(() => { + this.UnselectedColo = !this.UnselectedColo + this.ToggleUnselectedColor = this.UnselectedColo ? 'rgb(139,0,0)' : 'rgba(34, 188, 30, 1.00)' + }) + .id('Button') + Row() { + Toggle({ type: ToggleType.Switch }) + .switchStyle({ unselectedColor: this.ToggleUnselectedColor }) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('50%') + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle010.ets new file mode 100644 index 0000000000000000000000000000000000000000..cebb74ce593042bc276e7406ee1992f6ca9fb765 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle010.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { ConfigurationConstant } from '@kit.AbilityKit'; + +@Entry +@Component +struct UIComponentButtonRadioStyle010 { + @State ToggleUnselectedColor: ResourceColor = '' + + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Button('unselectedColor:非法值型') + .onClick(() => { + this.ToggleUnselectedColor = 'abc1234' + }) + .id('Button') + Row() { + Toggle({ type: ToggleType.Switch }) + .switchStyle({ unselectedColor: this.ToggleUnselectedColor }) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('50%') + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle012.ets new file mode 100644 index 0000000000000000000000000000000000000000..4fa845fdd20a04600f2bda30dde5001b01d0926a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle012.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 { ConfigurationConstant } from '@kit.AbilityKit'; + +@Entry +@Component +struct UIComponentButtonRadioStyle012 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle014.ets new file mode 100644 index 0000000000000000000000000000000000000000..73ac83cbefc3d0d8b28b7449bb89aa6654ce50b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle014.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 UIComponentButtonRadioStyle014 { + build() { + Row() { + Column() { + Toggle({ type: ToggleType.Switch }) + .switchStyle({ + trackBorderRadius: $r("app.integer.negative5") + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle015.ets new file mode 100644 index 0000000000000000000000000000000000000000..5024f6aa1d8a39b42f39618eff45fb2e9397aaf6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle015.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 UIComponentButtonRadioStyle015 { + build() { + Row() { + Column() { + Toggle({ type: ToggleType.Switch }) + .switchStyle({ + trackBorderRadius: -5 + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle016.ets new file mode 100644 index 0000000000000000000000000000000000000000..cc7780ae5297380e6b9a98004a66f292f8c2e587 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle016.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { ConfigurationConstant } from '@kit.AbilityKit'; + +@Entry +@Component +struct UIComponentButtonRadioStyle016 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch }) + .switchStyle({ + trackBorderRadius: 10 + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle017.ets new file mode 100644 index 0000000000000000000000000000000000000000..da22df002401263a9a05fb6ce90e8952127d6769 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle017.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 { ConfigurationConstant } from '@kit.AbilityKit'; + +@Entry +@Component +struct UIComponentButtonRadioStyle017 { + @State i: number = 0 + TogglePointRadius: number[] = [-1, 0, 5, 5.5, 50, -1, 500] + + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Button('pointRadius:number') + .onClick(() => { + this.i++ + }) + .id('Button') + Row() { + Toggle({ type: ToggleType.Switch }) + .switchStyle({ + pointRadius: this.TogglePointRadius[this.i] + }) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('50%') + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle018.ets new file mode 100644 index 0000000000000000000000000000000000000000..b527bbef962fabb9ef17cc094ada2046bc4aef45 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle018.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 UIComponentButtonRadioStyle018 { + build() { + Row() { + Column() { + Toggle({ type: ToggleType.Switch }) + .switchStyle({ + pointRadius: $r("app.integer.negative5") + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle019.ets new file mode 100644 index 0000000000000000000000000000000000000000..5535061a639f51175e96bd85c5ae28e10d6119a5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle019.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 UIComponentButtonRadioStyle019 { + build() { + Row() { + Column() { + Toggle({ type: ToggleType.Switch }) + .switchStyle({ + pointRadius: -5 + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle020.ets new file mode 100644 index 0000000000000000000000000000000000000000..bdd6a76fbd04cae8e1c766aec4dca865ba53bdf8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle020.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { ConfigurationConstant } from '@kit.AbilityKit'; + +@Entry +@Component +struct UIComponentButtonRadioStyle020 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch }) + .switchStyle({ + trackBorderRadius: 9 + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle021.ets new file mode 100644 index 0000000000000000000000000000000000000000..54679645e7653942b0afcae91e057a8ef21f33d7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle021.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 { ConfigurationConstant } from '@kit.AbilityKit'; + + +@Entry +@Component +struct UIComponentButtonRadioStyle021 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Checkbox }) + .switchStyle({ + unselectedColor: null, + pointRadius: null, + pointColor: null, + trackBorderRadius: null + }) + } + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle022.ets new file mode 100644 index 0000000000000000000000000000000000000000..d0355527007393aa2a996aac250a08d08c8c4a92 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle022.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 { ConfigurationConstant } from '@kit.AbilityKit'; + + +@Entry +@Component +struct UIComponentButtonRadioStyle023 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Button }) { + Text('Toggle Button') + } + .switchStyle({ + unselectedColor: null, + pointRadius: null, + pointColor: null, + trackBorderRadius: null + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle023.ets new file mode 100644 index 0000000000000000000000000000000000000000..c41d5346d8547b27134ded80f8c996c4e0a1688c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle023.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 { ConfigurationConstant } from '@kit.AbilityKit' + +@Entry +@Component +struct UIComponentButtonRadioStyle013 { + @State i: number = 0 + ToggleWidth: number[] = [-1, 36, 20, 20, 30.5, 0, -10, 1800] + ToggleHeight: number[] = [-1, 20, 20, 60, 18.3, 0, -20, 700] + + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Button('宽高按钮').id('Button').onClick(() => { + this.i++ + }) + + Row() { + Toggle({ type: ToggleType.Switch }) + .width(this.ToggleWidth[this.i]) + .height(this.ToggleHeight[this.i]) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('50%') + } + .width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle024.ets new file mode 100644 index 0000000000000000000000000000000000000000..135f5f330dc5d1c004387bdb0604ca8096d6dc8b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle024.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 { ConfigurationConstant } from '@kit.AbilityKit' + +@Entry +@Component +struct UIComponentButtonRadioStyle024 { + @State ToggleWidth: number = -1 + @State ToggleHeight: number = -1 + @State TogglePointRadius: number = -1 + + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Button('设置数值') + .onClick(() => { + this.ToggleWidth = 36 + this.ToggleHeight = 20 + this.TogglePointRadius = 10 + }) + .id('Button') + Row() { + Toggle({ type: ToggleType.Switch }) + .switchStyle({ pointRadius: this.TogglePointRadius }) + .width(this.ToggleWidth) + .height(this.ToggleHeight) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle025.ets new file mode 100644 index 0000000000000000000000000000000000000000..eab9e54a42c739f60e2dd7b85e51bc9bbc07d7e1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle025.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 { ConfigurationConstant } from '@kit.AbilityKit' + +@Entry +@Component +struct UIComponentButtonRadioStyle025 { + @State ToggleWidth: number = -1 + @State ToggleHeight: number = -1 + @State TogglePointRadius: number = -1 + + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Button('设置数值') + .onClick(() => { + this.ToggleWidth = 36 + this.ToggleHeight = 20 + this.TogglePointRadius = 20 + }) + .id('Button') + Row() { + Toggle({ type: ToggleType.Switch }) + .switchStyle({ pointRadius: this.TogglePointRadius }) + .width(this.ToggleWidth) + .height(this.ToggleHeight) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('50%') + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle026.ets new file mode 100644 index 0000000000000000000000000000000000000000..e32d8c323552aa6d95a7bc33c2b13cf21781bfe2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle026.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 { ConfigurationConstant } from '@kit.AbilityKit' + +@Entry +@Component +struct UIComponentButtonRadioStyle026 { + @State ToggleWidth: number = -1 + @State ToggleHeight: number = -1 + @State TogglePointRadius: number = -1 + + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Button('设置数值').id('Button').onClick(() => { + this.ToggleWidth = 36 + this.ToggleHeight = 20 + this.TogglePointRadius = 40 + }) + + Row() { + Toggle({ type: ToggleType.Switch }) + .switchStyle({ pointRadius: this.TogglePointRadius }) + .width(this.ToggleWidth) + .height(this.ToggleHeight) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('50%') + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0020.ets index 8f94a66cdabdd87c205a1772b39b3a08779ec5aa..a5001f450a16a5ee8ae9874447f2fbc85b58f780 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0020.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0020.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0020 { - build() { Row() { Column() { @@ -29,7 +28,7 @@ struct UIComponentButtonSelectControlSize0020 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0030.ets index 677f4acaa42c15ec2652d317a55fe3cea889288e..fe009c2d3161107e545bef6e8457db0a7f17371d 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0030.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0030.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0030 { - build() { Row() { Column() { @@ -30,7 +29,7 @@ struct UIComponentButtonSelectControlSize0030 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0040.ets index 4e6852fff5aa3e56479faa4b8d21706919769fe1..3add37e2c5854f641a65876e9b1ee44f78095ffa 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0040.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0040.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0040 { - build() { Row() { Column() { @@ -30,7 +29,7 @@ struct UIComponentButtonSelectControlSize0040 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0050.ets index 8af8a70b7c52193e608c310833b9d93cba4f91e8..bb2bd04649063b3e9bebfe5632d7e3cbb59751b6 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0050.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0050.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0050 { - build() { Row() { Column() { @@ -39,7 +38,7 @@ struct UIComponentButtonSelectControlSize0050 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0060.ets index 920a0e924e58fe6fbf831f3e72e661bdafbddba6..f173b1b876f190be8603905cefc8c729402d7411 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0060.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0060.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0060 { - build() { Row() { Column() { @@ -32,7 +31,7 @@ struct UIComponentButtonSelectControlSize0060 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0070.ets index ab77b0dd7fc8ab46e3703150e0e4343d4c739264..7766c5c087e267742ed370c3669d05c978d6fbc2 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0070.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0070.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0070 { - build() { Row() { Column() { @@ -29,7 +28,7 @@ struct UIComponentButtonSelectControlSize0070 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0080.ets index e6b928aa4374fb99ea58ba7fed4ff24219256a9d..854151e161bac1e6c6bb463639b2ac867071886d 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0080.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0080.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0080 { - build() { Row() { Column() { @@ -28,7 +27,7 @@ struct UIComponentButtonSelectControlSize0080 { right: BorderStyle.Dashed, top: BorderStyle.Dashed, bottom: BorderStyle.Dashed - }) + }) } .width('100%') .height('100%') @@ -36,7 +35,7 @@ struct UIComponentButtonSelectControlSize0080 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0090.ets index 662f00e9b593f57035392f0eb90e33d31c6bd9f8..e1d108fca20497e56ae2625b9a1d2448fe33d450 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0090.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0090.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0090 { - build() { Row() { Column() { @@ -28,7 +27,7 @@ struct UIComponentButtonSelectControlSize0090 { right: BorderStyle.Solid, top: BorderStyle.Dotted, bottom: BorderStyle.Dashed - }) + }) } .width('100%') .height('100%') @@ -36,7 +35,7 @@ struct UIComponentButtonSelectControlSize0090 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0100.ets index 97e2d6db1cd6d506ac7e62dd155d0cd18576bd0f..134a6fbe887970d84f75c6d3a0e0372f16d151d0 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0100.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0100.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0100 { - build() { Row() { Column() { @@ -34,7 +33,7 @@ struct UIComponentButtonSelectControlSize0100 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0110.ets index 3f2d24c293cd9da67b2229d14d7e9595a7838970..7b2fe27dad98b903fbc1005f30c04b12c7d3212b 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0110.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0110.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0110 { - build() { Row() { Column() { @@ -30,7 +29,7 @@ struct UIComponentButtonSelectControlSize0110 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0120.ets index b27e5fc6cc6f9bc6f6bc5ee9c4fc3d1c5510761f..373fe485dac160d937a7b59111c5dbf9e532ccbb 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0120.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0120.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0120 { - build() { Row() { Column() { @@ -30,7 +29,7 @@ struct UIComponentButtonSelectControlSize0120 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0130.ets index 781645c06a28b4514d1c673caf0ece7f54b0571c..ddd0e16e4a80dad4414358baa01c0de2ad9b855d 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0130.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0130.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0130 { - build() { Row() { Column() { @@ -30,7 +29,7 @@ struct UIComponentButtonSelectControlSize0130 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0140.ets index 58b8dfe9ddfba1c9c9537292e2c8a21be9020227..b28d626e2068a632b16569414d661efea60b42ad 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0140.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0140.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0140 { - build() { Row() { Column() { @@ -33,7 +32,7 @@ struct UIComponentButtonSelectControlSize0140 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0150.ets index 52c5fbc85daf6161168e9cd468cd5479726172f8..b0eded5806c4725cedc81a687c11b43e124d9323 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0150.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0150.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0150 { - build() { Row() { Column() { @@ -33,7 +32,7 @@ struct UIComponentButtonSelectControlSize0150 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0160.ets index 1a976f06c15fc0d737f3af612f6b70802d6859dc..b4fe74e6d9412ac8707f6610fd36c557f85a4031 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0160.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0160.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0160 { - build() { Row() { Column() { @@ -32,7 +31,7 @@ struct UIComponentButtonSelectControlSize0160 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0170.ets index 333f42417a212c78501ad2bcbbd6de8a3c6078d1..547b028b9dae70ee42fbda2b02650cf20adab8c1 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0170.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0170.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0170 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0170 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0180.ets index 8f02a8d103b8843cd7b735011f269700343ce9b1..274457a9a1349f52011196c1adb1a8e5a6e578bf 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0180.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0180.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0180 { - build() { Row() { Column() { @@ -39,7 +38,7 @@ struct UIComponentButtonSelectControlSize0180 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0190.ets index a9dcdb2479eb284b9b985c08c4264fad49a724cb..f0b048c8f08d7fe53401c591f71604389b264738 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0190.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0190.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0190 { - build() { Row() { Column() { @@ -30,7 +29,7 @@ struct UIComponentButtonSelectControlSize0190 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0200.ets index 35604723b14029f622c16ffe3241c9b02a4dc264..6624d807c6fbe5dba5edf66a84a9fdc65a2705d5 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0200.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0200.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0200 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -35,7 +36,7 @@ struct UIComponentButtonSelectControlSize0200 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0210.ets index 7552f1a5ce1ea32eead440a6d03302ff35095862..e38372460bc93a8d1208959465ebeeb6eae2d306 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0210.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0210.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0210 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -35,7 +36,7 @@ struct UIComponentButtonSelectControlSize0210 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0220.ets index 90fc8ed08252f3ba29d46fa12d3d1812a77418ae..aba553a5f6dcaeb777a0413df09dc82620fce265 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0220.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0220.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0220 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -34,7 +35,7 @@ struct UIComponentButtonSelectControlSize0220 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0230.ets index 00a103d33f4c90be2ec24116d14bedff573645ad..36832ffcffc09573b330218ecf79cf5994d66427 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0230.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0230.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0230 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0230 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0240.ets index 376f2a5c4f79ba47d9247705ae1023d41abcf50f..994acaef278f4754875d789218dee07484ba3077 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0240.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0240.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0240 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0240 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0250.ets index e7a5a7eb2d734a282338c68d45ceccb23f368fe1..218366e38d247fac34e4f3e5be1473b5c9165b11 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0250.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0250.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0250 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0250 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0260.ets index d032ff4771541d3e4ebef6a6884dd44451b52bba..d3b522973d176cc2f680f97845b6b184fd029125 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0260.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0260.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0260 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0260 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0270.ets index 6bd7ffd20f29ac11fd1894866d3df5005dfe3225..6474279a617b031f821c1bcf2d893730f6b9632d 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0270.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0270.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0270 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -47,7 +48,7 @@ struct UIComponentButtonSelectControlSize0270 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0280.ets index 1eab9672df58c690a9fd40626829c11d61b8ccce..2bc0d291f1c9ea9e280c1a3fd4f4c7c4a34ced54 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0280.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0280.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0280 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0280 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0290.ets index 13d07c2334371b0bf959d1888d9ad28c74a33b7c..975898351753afa21d7d85e58f5bc8aae1d250fa 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0290.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0290.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0290 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -34,7 +35,7 @@ struct UIComponentButtonSelectControlSize0290 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0300.ets index e993e25a902e387c9129dec0e4de13af03be9414..f9e3baa51952d72da735a7568fe451e4ffc143cc 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0300.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0300.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0300 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -30,7 +31,7 @@ struct UIComponentButtonSelectControlSize0300 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0310.ets index e87e90e8f5fcb470c944852a2bbb72ac081c035d..635cb18f4f8d40c2b21651937e752180f2ab1147 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0310.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0310.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0310 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0310 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0320.ets index c248a063abe0f6cdbefc9a13ee6147bd37f24c01..ab9da902908251225ac0eb2dc7de5a660cf92332 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0320.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0320.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0320 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0320 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0330.ets index e4ccbe6b49bd3c2ab64317c7b7ce10b8ebf445a8..ed7bef3e26ad71f8c1fa3e83d113e3e0df6b86af 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0330.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0330.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0330 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0330 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0340.ets index b7345220991d6a77a91e62dc7554a218c2f7042b..d57e0e583b1b1a534d14e6be68bee6cb13dc7554 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0340.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0340.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0340 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0340 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0350.ets index e99d7b4cba5776f32990b496ec75e3cdbd53072b..bad34e32a2cb3588ac2b158448b0c1d301b4a9b2 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0350.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0350.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0350 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -47,7 +48,7 @@ struct UIComponentButtonSelectControlSize0350 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0360.ets index 4c53312e3ec376eba2fe3b13e7a72b6ef0129fa5..b6ef6557e758a3ad20472fbfdfc5ddb1bb1103a8 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0360.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0360.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0360 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -35,7 +36,7 @@ struct UIComponentButtonSelectControlSize0360 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0370.ets index 3d3d527e7fd6e5087b4dcb89ab059539d9858d97..bd3fc889de1adecc50035e0adfea4b180b986d51 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0370.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0370.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0370 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -34,7 +35,7 @@ struct UIComponentButtonSelectControlSize0370 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0380.ets index 0b1d4552c56d5248b52d69869fff23ca3b7dbdb1..a4745b1e565669957fde803dd708630fcda2cdb1 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0380.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0380.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0380 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -30,7 +31,7 @@ struct UIComponentButtonSelectControlSize0380 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0390.ets index 0f726cb217981c6c9b011a46ad98a7c046fa993d..6feb8aaeb072333725d1f806b5268d405b3ab037 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0390.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0390.ets @@ -21,7 +21,12 @@ struct UIComponentButtonSelectControlSize0390 { Column() { Select(this.getOptions()) .controlSize(ControlSize.NORMAL) - .padding({ top: 8, left: 16, bottom:8, right: 16 }) + .padding({ + top: 8, + left: 16, + bottom: 8, + right: 16 + }) } .width('100%') .height('100%') @@ -29,7 +34,7 @@ struct UIComponentButtonSelectControlSize0390 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0400.ets index 67bebde895c323c5e3a43829b48f34244e2ac1a4..5fd5760a265aef6d259778f713e8faf24277ac91 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0400.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0400.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0400 { - build() { Row() { Column() { @@ -30,7 +29,7 @@ struct UIComponentButtonSelectControlSize0400 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0410.ets index 720f69da841cb69faef83a2042d8257658228e0f..082ca2827009e3b1934c6a0296f676facdcd690c 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0410.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0410.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0410 { - build() { Row() { Column() { @@ -30,7 +29,7 @@ struct UIComponentButtonSelectControlSize0410 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0420.ets index 5af0aab2d10ec3d39f7b9f0f7b262e3d3984fd4e..f5ca46e25b0787837c137511ddb6c44605649c49 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0420.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0420.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0420 { - build() { Row() { Column() { @@ -24,7 +23,12 @@ struct UIComponentButtonSelectControlSize0420 { .controlSize(ControlSize.NORMAL) Select(this.getOptions()) .controlSize(ControlSize.NORMAL) - .padding({top: 8, left: 16, bottom: 8, right: 16}) + .padding({ + top: 8, + left: 16, + bottom: 8, + right: 16 + }) } .width('100%') .height('100%') @@ -32,7 +36,7 @@ struct UIComponentButtonSelectControlSize0420 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0430.ets index 6f390512898ffc371da7f6b88a926239f8fca2f5..2f694ad2a2be30ebc8b61780833a5b728be25a57 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0430.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0430.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0430 { - build() { Row() { Column() { @@ -32,7 +31,7 @@ struct UIComponentButtonSelectControlSize0430 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0450.ets index 542dacf9f992490f8f661bd04d1117b8b3e23c36..0425d585f3286a75a8e46c1f5b2dc80ecf6eccac 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0450.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0450.ets @@ -18,6 +18,7 @@ struct UIComponentButtonSelectControlSize0450 { @State bgColor: ResourceColor = Color.Blue @State text: string = "" + build() { Row() { Column() { @@ -47,7 +48,7 @@ struct UIComponentButtonSelectControlSize0450 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0470.ets index c8d6b399fdb947f4b25c2b9e40ed5bf9f15b2575..c92df42c41c0aaedb4fef7097cc0f4d840053a30 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0470.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0470.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0470 { - build() { Row() { Column() { @@ -29,7 +28,7 @@ struct UIComponentButtonSelectControlSize0470 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0480.ets index 146e5bd6edf856878904269c61901a99b59b9b1b..7ed7e83a09b2635e0cf57a33db0edd9ad995a1e8 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0480.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0480.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0480 { - build() { Row() { Column() { @@ -30,7 +29,7 @@ struct UIComponentButtonSelectControlSize0480 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0490.ets index edf8bc77e95d53108b909077bb4f8d5dc5f964d3..c19928aad1ac6887e8fc85e64b22bfc3b9057310 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0490.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0490.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0490 { - build() { Row() { Column() { @@ -30,7 +29,7 @@ struct UIComponentButtonSelectControlSize0490 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0500.ets index 0c3c6c3ea5fc2fd467cb877906f1cda8a083b27d..ebaee59bfc5a41a544edfc2620529150bb1b5d79 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0500.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0500.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0500 { - build() { Row() { Column() { @@ -39,7 +38,7 @@ struct UIComponentButtonSelectControlSize0500 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0510.ets index 39954515a249ff0379cdb65e56bf13f3f9b57b6a..d73ec1e23cfc7872d1f96fffbb417fb66c9b3c91 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0510.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0510.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0510 { - build() { Row() { Column() { @@ -32,7 +31,7 @@ struct UIComponentButtonSelectControlSize0510 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0520.ets index af78aa90b34344ad8435cfccb14faaa01fbcfbe7..03efee6ea0850a50b27afe1bb6754364c3beb0f6 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0520.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0520.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0520 { - build() { Row() { Column() { @@ -28,7 +27,7 @@ struct UIComponentButtonSelectControlSize0520 { right: BorderStyle.Dotted, top: BorderStyle.Dotted, bottom: BorderStyle.Dotted - }) + }) } .width('100%') .height('100%') @@ -36,7 +35,7 @@ struct UIComponentButtonSelectControlSize0520 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0530.ets index bfcffd51cee003d241874be4e03ed15fbd5298c2..a533bfefec54c46bfa3882fa5efa3abe68cc7b57 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0530.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0530.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0530 { - build() { Row() { Column() { @@ -28,7 +27,7 @@ struct UIComponentButtonSelectControlSize0530 { right: BorderStyle.Dotted, top: BorderStyle.Solid, bottom: BorderStyle.Dashed - }) + }) } .width('100%') .height('100%') @@ -36,7 +35,7 @@ struct UIComponentButtonSelectControlSize0530 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0540.ets index 756265a746e0d6418679e83d95c9084a037a09ce..b77199a31ad04faab2115fb025c8de3861a96fef 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0540.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0540.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0540 { - build() { Row() { Column() { @@ -34,7 +33,7 @@ struct UIComponentButtonSelectControlSize0540 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0550.ets index 3676d33d1b4636779c63d17f5f99e8f5412f9677..4e7881971f892074f36f1c5a8509eb323cc67fbd 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0550.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0550.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0550 { - build() { Row() { Column() { @@ -29,7 +28,7 @@ struct UIComponentButtonSelectControlSize0550 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0560.ets index 3dc41d0ff6df88e184de6356ffc8c95b2bc66274..26d3073991a11831d520a33999572e4dd0651519 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0560.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0560.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0560 { - build() { Row() { Column() { @@ -30,7 +29,7 @@ struct UIComponentButtonSelectControlSize0560 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0570.ets index f640cdd59ad5cce49e68cad88d571425a927e1aa..ba35a0d9ff5669a18102fbcc8acdd184dc03b970 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0570.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0570.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0570 { - build() { Row() { Column() { @@ -30,7 +29,7 @@ struct UIComponentButtonSelectControlSize0570 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0580.ets index 485aa5964a2d0ea16017117b1516029ff6b33c99..a48f01a02fc5138a638fb36fa6a235e9a324db5f 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0580.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0580.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0580 { - build() { Row() { Column() { @@ -33,7 +32,7 @@ struct UIComponentButtonSelectControlSize0580 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0590.ets index 81db79de2545b35232cb672582f2e08c0810cbc2..d8633618d2b4a58952adcd5e1de563c076997fef 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0590.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0590.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0590 { - build() { Row() { Column() { @@ -33,7 +32,7 @@ struct UIComponentButtonSelectControlSize0590 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0600.ets index 2721958edba82caab500437bd88600223f7ce515..545fddc0ef1700ac88a3a27a3eb25925b61a8f54 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0600.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0600.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0600 { - build() { Row() { Column() { @@ -32,7 +31,7 @@ struct UIComponentButtonSelectControlSize0600 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0610.ets index 0ef6660a7955e3324d0b3e2c99a9d7111e886004..f0ac51fc628a08794f456c2217fdd6e114ee9c3d 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0610.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0610.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0610 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0610 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0620.ets index 85a2818f897a6835d4c5147dfd7a574653f1e279..a08a0d91c5897ef18027a6a11fc50e598ec97d0f 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0620.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0620.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0620 { - build() { Row() { Column() { @@ -39,7 +38,7 @@ struct UIComponentButtonSelectControlSize0620 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0630.ets index 1b59b7bac88f4e362b11a66fd41483c7ebe94fd8..e2a0abd2453d61a980dfd037f9d35ceca40a30ea 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0630.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0630.ets @@ -16,7 +16,6 @@ @Entry @Component struct UIComponentButtonSelectControlSize0630 { - build() { Row() { Column() { @@ -30,7 +29,7 @@ struct UIComponentButtonSelectControlSize0630 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0640.ets index 5fd234ce1275d6f4083c719bba4de049ac460628..6d584483d7871dc9aae882d5340ddbcda09f94ae 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0640.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0640.ets @@ -17,17 +17,18 @@ @Component struct UIComponentButtonSelectControlSize0640 { @State text: string = "TTTTT" + build() { Row() { Column() { Select(this.getOptions()) .controlSize(ControlSize.SMALL) .value(this.text) - .font({ weight: -10}) + .font({ weight: -10 }) Select(this.getOptions()) .controlSize(ControlSize.SMALL) .value(this.text) - .font({ weight: '10%'}) + .font({ weight: '10%' }) } .width('100%') .height('100%') @@ -35,7 +36,7 @@ struct UIComponentButtonSelectControlSize0640 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0650.ets index b3d05edbc7127731040b29693980664b6ded46ba..8919bbbd87095ec4f967bee4674036411ef873c2 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0650.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0650.ets @@ -17,21 +17,22 @@ @Component struct UIComponentButtonSelectControlSize0650 { @State text: string = "TTTTT" + build() { Row() { Column() { Select(this.getOptions()) .controlSize(ControlSize.SMALL) .value(this.text) - .font({ weight: null}) + .font({ weight: null }) Select(this.getOptions()) .controlSize(ControlSize.SMALL) .value(this.text) - .font({ weight: undefined}) + .font({ weight: undefined }) Select(this.getOptions()) .controlSize(ControlSize.SMALL) .value(this.text) - .font({ weight: FontWeight.Medium}) + .font({ weight: FontWeight.Medium }) } .width('100%') .height('100%') @@ -39,7 +40,7 @@ struct UIComponentButtonSelectControlSize0650 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0660.ets index 31bf89b8c0a35fd5f2993bf2d62896a941b0215e..e5cfd39fc77c1eb2253873edc5453cfac4ecdc24 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0660.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0660.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0660 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -26,7 +27,7 @@ struct UIComponentButtonSelectControlSize0660 { Select(this.getOptions()) .controlSize(ControlSize.SMALL) .value(this.text) - .font({ size: 16, weight: FontWeight.Medium}) + .font({ size: 16, weight: FontWeight.Medium }) } .width('100%') .height('100%') @@ -34,7 +35,7 @@ struct UIComponentButtonSelectControlSize0660 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0670.ets index ab64d011268e11b1e36e310503c3538ef18bb8ce..ae3341bd050d13e7344273be830a2f62827a1f8f 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0670.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0670.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0670 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0670 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0680.ets index 474a2c6aa0970d0370be21171ac43f5cd2089fa3..b664ea9062310b5f1cf26b1cee44f441a4dda601 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0680.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0680.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0680 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0680 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0690.ets index 54c714caaa07070be3f030dc17003e9baf00ee06..92ab6183e20aacf6ffb0bfccb54388c9fd66e03a 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0690.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0690.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0690 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0690 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0700.ets index ff167961a7ca74be9541eb2a8cd4a4477b3cb303..9a46a867460fc461d0248680c0e91def4c573b2b 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0700.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0700.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0700 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0700 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0710.ets index b961501056f7907c3046f7b288e6b2c36f904f22..35487d09ac7a2b933ea2f93e7968733349abdff6 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0710.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0710.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0710 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -47,7 +48,7 @@ struct UIComponentButtonSelectControlSize0710 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0720.ets index 9d06cad3cf6931b585aaf518e7581cf0f0dbd01c..4f558f1d32e83f3b56c2330eccb20bfb5efc42c8 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0720.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0720.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0720 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0720 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0730.ets index a627db05c2f6f49b9aefd93ad72dac0048542656..a9828795d39b103340eb20d209fedd7567d68226 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0730.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0730.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0730 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -34,7 +35,7 @@ struct UIComponentButtonSelectControlSize0730 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0740.ets index c4e55045b603afa48bb32508f41b61879c8cba16..cf67bd41cc7b25a51d437fd5fd23502718355657 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0740.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0740.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0740 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0740 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0750.ets index 18d4d90aff77f73a77e6fca51830e359448a2093..66a241c27c3bd24cd64684f808da237e0dab8945 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0750.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0750.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0750 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0750 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0760.ets index e9cb80faa787d4a59d05ea14258febebb609daff..bcc583e8e340f54567ab7209dc23c8f9dfa90850 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0760.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0760.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0760 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0760 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0770.ets index 66f2d698ea3c18b18f7e46e9a4950db9375a8b44..6eb6b328c69b53b27fdbc2c5a7c19c72c3193050 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0770.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0770.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0770 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -31,7 +32,7 @@ struct UIComponentButtonSelectControlSize0770 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0780.ets index aa1eec49dfe7f8047ac7578f2bc3102864f5f636..2efb7188e048fdf336d39a4d92a7dacc585e2caf 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0780.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0780.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0780 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -47,7 +48,7 @@ struct UIComponentButtonSelectControlSize0780 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0790.ets index 9cec4110f7ef3796a1aa953f3e174e688bcd9528..8221a022241ff4bacb13c68111f7ac36a140afec 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0790.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0790.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0790 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -35,7 +36,7 @@ struct UIComponentButtonSelectControlSize0790 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0800.ets index 1c85a911a36afda7b6c0eb08b13384162d7e729c..244892bd1b3f52d72eedb1c7cab74fbb5e0d623a 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0800.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0800.ets @@ -17,6 +17,7 @@ @Component struct UIComponentButtonSelectControlSize0800 { @State text: string = "TTTTT" + build() { Row() { Column() { @@ -34,7 +35,7 @@ struct UIComponentButtonSelectControlSize0800 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0810.ets index 56cf5860c52247cfde1fb6f6b42432899281014a..3d80612e845d42a39518dc1be9bf106c5dde1eeb 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0810.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0810.ets @@ -21,7 +21,12 @@ struct UIComponentButtonSelectControlSize0810 { Column() { Select(this.getOptions()) .controlSize(ControlSize.SMALL) - .padding({ top: 8, left: 16, bottom:8, right: 16 }) + .padding({ + top: 8, + left: 16, + bottom: 8, + right: 16 + }) } .width('100%') .height('100%') @@ -29,7 +34,7 @@ struct UIComponentButtonSelectControlSize0810 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0820.ets index 26bf15aac66dfec53d4b84cf87ea6d4193e6402e..3f4cdb804d5be0a3832fb3a49939a64fac307437 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0820.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0820.ets @@ -29,7 +29,7 @@ struct UIComponentButtonSelectControlSize0820 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0830.ets index 3b169d5f54743bb0440227850caaacc9df983a1e..8eec48fd838b76b8f8f550911890f7057ec844c6 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0830.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0830.ets @@ -32,7 +32,7 @@ struct UIComponentButtonSelectControlSize0830 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0840.ets index e4bb5cdf2f4bee4e50285056f49b44c4b4e4e36d..c397b2538bc31f4cc95e1ae05206b6f900a83b78 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0840.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0840.ets @@ -23,7 +23,12 @@ struct UIComponentButtonSelectControlSize0840 { .controlSize(ControlSize.SMALL) Select(this.getOptions()) .controlSize(ControlSize.SMALL) - .padding({ top: 8, left: 16, bottom: 8, right:16 }) + .padding({ + top: 8, + left: 16, + bottom: 8, + right: 16 + }) } .width('100%') .height('100%') @@ -31,7 +36,7 @@ struct UIComponentButtonSelectControlSize0840 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0860.ets index f46d0f68f2820c7e588eb17d476d32ac43d143b4..f627a88915bde0d72e421a0b3b41106c9985c9a2 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0860.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0860.ets @@ -19,6 +19,7 @@ struct UIComponentButtonSelectControlSize0860 { @State bgColor: ResourceColor = Color.Blue @State control: ControlSize = ControlSize.NORMAL @State text: string = "" + build() { Row() { Column() { @@ -53,7 +54,7 @@ struct UIComponentButtonSelectControlSize0860 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0880.ets index 7f56d5487da15f7b8ef5220e6707ba1e2aca5787..2f8d876de8e0e7c48055b2bd8874ebc1350afc5b 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0880.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0880.ets @@ -18,6 +18,7 @@ struct UIComponentButtonSelectControlSize0880 { @State control: ControlSize = ControlSize.NORMAL @State text: string = "" + build() { Row() { Column() { @@ -41,7 +42,7 @@ struct UIComponentButtonSelectControlSize0880 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0890.ets index 9b00212ebc021e3628b7594b00b6d21d778e0765..91fe092a18b48be67a743546be4229f2d365964b 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0890.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0890.ets @@ -44,7 +44,7 @@ struct UIComponentButtonSelectControlSize0890 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0900.ets index 8f20770318176a098250b13a9dfab887100a699f..2f77265972a743f1d56c4bba3c215e17fb70b3f6 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0900.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0900.ets @@ -18,6 +18,7 @@ struct UIComponentButtonSelectControlSize0900 { @State control: ControlSize = ControlSize.NORMAL @State text: string = "" + build() { Row() { Column() { @@ -41,7 +42,7 @@ struct UIComponentButtonSelectControlSize0900 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0910.ets index a41053058743deb2e13df7f14860fb1108d841e6..f070a979eef99a860f3451c837991b822e767823 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0910.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0910.ets @@ -18,6 +18,7 @@ struct UIComponentButtonSelectControlSize0910 { @State control: ControlSize = ControlSize.NORMAL @State text: string = "" + build() { Row() { Column() { @@ -41,7 +42,7 @@ struct UIComponentButtonSelectControlSize0910 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0920.ets index 7cc25223cef4275b0b4bef28ae8a473451c6deec..22227bb88db0859810d18e96cda4795107836e6f 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0920.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0920.ets @@ -18,6 +18,7 @@ struct UIComponentButtonSelectControlSize0920 { @State control: ControlSize = ControlSize.NORMAL @State containerWidth: Length = -1 + build() { Row() { Column() { @@ -41,7 +42,7 @@ struct UIComponentButtonSelectControlSize0920 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0930.ets index 665fa8feb5c83fc01dc87eb8521dda5210c8f7fa..d48f339d86a7d01c6e7840050ef9d19e4f681154 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0930.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0930.ets @@ -18,6 +18,7 @@ struct UIComponentButtonSelectControlSize0930 { @State control: ControlSize = ControlSize.NORMAL @State containerWidth: Length = -1 + build() { Row() { Column() { @@ -41,7 +42,7 @@ struct UIComponentButtonSelectControlSize0930 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0940.ets index 05e161493059e9646406aeafa6a89ae97f8cff73..e2ed7dc8a402b8d2b1f1f5d40bcb4c3d159c0845 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0940.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0940.ets @@ -18,6 +18,7 @@ struct UIComponentButtonSelectControlSize0940 { @State control: ControlSize = ControlSize.NORMAL @State containerWidth: Length = -1 + build() { Row() { Column() { @@ -41,7 +42,7 @@ struct UIComponentButtonSelectControlSize0940 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0950.ets index e05b4d85e24bb28e448e155ca6825914e2a3b5e5..7a429569b974be455bbf8c0a12203aedb6d83dff 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0950.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0950.ets @@ -19,6 +19,7 @@ struct UIComponentButtonSelectControlSize0950 { @State fontSize: Length = -1 @State control: ControlSize = ControlSize.NORMAL @State text: string = "TTTTT" + build() { Row() { Column() { @@ -43,7 +44,7 @@ struct UIComponentButtonSelectControlSize0950 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0960.ets index 60c309e4dfbdccf66073ab2bffa1486ea804d2ef..afe441cf240955ca2277e4cf443e0bade1a9398e 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0960.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0960.ets @@ -19,6 +19,7 @@ struct UIComponentButtonSelectControlSize0960 { @State fontSize: Length = -1 @State control: ControlSize = ControlSize.NORMAL @State text: string = "TTTTT" + build() { Row() { Column() { @@ -43,7 +44,7 @@ struct UIComponentButtonSelectControlSize0960 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0970.ets index 7861d93219048c224b43cb25eb0febb8a9884e4b..9e6fa89d0a20235d7fa1223931db3c0bb908c61c 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0970.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0970.ets @@ -19,6 +19,7 @@ struct UIComponentButtonSelectControlSize0970 { @State fontSize: Length = -1 @State control: ControlSize = ControlSize.NORMAL @State text: string = "TTTTT" + build() { Row() { Column() { @@ -43,7 +44,7 @@ struct UIComponentButtonSelectControlSize0970 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0980.ets index 80f00d80fd5ea5e17c01f6f5c64a4c2e9eeb8d78..3d5f0df64d28f686fe970a56d52df34c22b61022 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0980.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0980.ets @@ -18,6 +18,7 @@ struct UIComponentButtonSelectControlSize0980 { @State control: ControlSize = ControlSize.NORMAL @State containerHeight: Length = -1 + build() { Row() { Column() { @@ -41,7 +42,7 @@ struct UIComponentButtonSelectControlSize0980 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0990.ets index 600813ccde7e48eb3aeb3d1ebaba22af08132366..0a88129ea3ae80dd1d3630b0c60c2a8f5ead4ecb 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0990.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0990.ets @@ -18,6 +18,7 @@ struct UIComponentButtonSelectControlSize0990 { @State control: ControlSize = ControlSize.NORMAL @State containerHeight: Length = -1 + build() { Row() { Column() { @@ -41,7 +42,7 @@ struct UIComponentButtonSelectControlSize0990 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1000.ets index 96ec6daac73f08dcf65d3fe7b947c951c1a27cb6..e76bbe292260b62b63c45dc1fce3a867232a7a32 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1000.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1000.ets @@ -18,6 +18,7 @@ struct UIComponentButtonSelectControlSize1000 { @State control: ControlSize = ControlSize.NORMAL @State containerHeight: Length = -1 + build() { Row() { Column() { @@ -41,7 +42,7 @@ struct UIComponentButtonSelectControlSize1000 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1010.ets index f3b927892901d491719cbba6b2853f7ffa54d4e2..0f53077160e3f1bba9bc8c654c2377f3d8dfa6f2 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1010.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1010.ets @@ -29,7 +29,7 @@ struct UIComponentButtonSelectControlSize1010 { } getOptions(): Array { - const options:Array = []; + const options: Array = []; for (let i = 1; i <= 20; i++) { const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); options.push({ value: value }); diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c8c5317ace26e18f2ff0c43d2a8bdfd04da7701 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0100.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' +import { Color } from '@ohos.graphics.scene' + +interface TestAttributes { + SelectedColor?: (ResourceColor | undefined) + SwitchPointColor?: (ResourceColor | undefined) +} + +@Entry +@Component +struct UIComponentButtonStyle0100 { + @State styleIndex: number = 0; + + testData: TestAttributes[] = [ + { + SelectedColor: 0xff00ff00, + SwitchPointColor: Color.Black + }, + { + SelectedColor: "#ff0000ff", + SwitchPointColor: Color.Green + } +] + + build() { + Column() { + Button('Modify') + .onClick(() => { + this.styleIndex = 1; + }) + .id('showButton') + Toggle({ type: ToggleType.Switch, isOn: true }) + .selectedColor(this.testData[this.styleIndex].SelectedColor) + .switchPointColor(this.testData[this.styleIndex].SwitchPointColor) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..9a46b29f9ba07423d71e4115ddf29f8767c93d21 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0120.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +interface TestAttributes { + SwitchPointColor?: (ResourceColor | undefined) +} + +@Entry +@Component +struct UIComponentButtonStyle0120 { + @State styleIndex: number = 0; + testData: TestAttributes[] = [ + { + SwitchPointColor: Color.Black + }, + { + SwitchPointColor: Color.Green + } + ] + + build() { + Column() { + Button('Modify') + .onClick(() => { + this.styleIndex = 1; + }) + .id('UIComponentButtonStyle0120') + Toggle({ type: ToggleType.Switch, isOn: true }) + .switchPointColor(this.testData[this.styleIndex].SwitchPointColor) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..a77a6cd80be5ccc5df34f0a994d52ef0c705a4dd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0010.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerEvent0010 { + @State range: string[] = ['peach1', 'peach2', 'peach3', 'peach4', 'peach5', 'peach6']; + @State selectValue: string = ''; + @State selectIndex: string = ''; + + build() { + Column() { + Text(`select value: {"value":${this.selectValue}, "index":${this.selectIndex}}`) + .margin({ bottom: 30 }) + TextPicker({ + range: this.range + }).onChange((value, index) => { + this.selectValue = `${value}`; + this.selectIndex = `${index}`; + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0010 value: {"value":${this.selectValue}, "index":${this.selectIndex}}`); + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..57a0267bc59830046483af76b3b8ba764b479439 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0020.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerEvent0020 { + @State range: string[] = ['peach1', 'peach2', 'peach3', 'peach4', 'peach5', 'peach6']; + @State selectValue: string = ''; + @State selectIndex: string = ''; + + build() { + Column() { + Text(`select value: {"value":${this.selectValue}, "index":${this.selectIndex}}`) + .margin({ bottom: 30 }) + TextPicker({ + range: this.range + }).onChange((value, index) => { + this.selectValue = `${value}`; + this.selectIndex = `${index}`; + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0020 value: {"value":${this.selectValue}, "index":${this.selectIndex}}`); + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..5b3542862bfd4cab342c7cf49925f059af8091ae --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0030.ets @@ -0,0 +1,105 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerEvent0030 { + @State range: TextCascadePickerRangeContent[] = [ + { + text: '湖北省', + children: [ + { + text: '武汉市', + children: [ + { text: '洪山区' }, + { text: '江夏区' }, + { text: '青山区' }, + { text: '汉阳区' }, + { text: '江汉区' }, + ] + }, + { + text: '鄂州市', + children: [ + { text: '鄂城区' }, + { text: '葛店区' }, + { text: '华容区' }, + ] + }, + { + text: '黄冈市', + children: [ + { text: '黄州区' }, + { text: '蕲春县' }, + { text: '武穴市' }, + { text: '黄梅县' }, + ] + }, + ] + }, + { + text: '浙江省', + children: [ + { + text: '杭州市', + children: [ + { text: '西湖区' }, + { text: '余杭区' }, + { text: '萧山区' }, + { text: '滨江区' } + ] + }, + { + text: '绍兴市', + children: [ + { text: '上虞区' }, + { text: '越城区' }, + { text: '柯桥区' }, + ] + }, + { + text: '宁波市', + children: [ + { text: '江北区' }, + { text: '北仑区' }, + { text: '海曙区' } + ] + }, + ] + }, + { + text: '湖南省', + children: [] + }, + ]; + @State selectValue: string = ''; + @State selectIndex: string = ''; + + build() { + Column() { + Text(`select value: {"value":${this.selectValue}, "index":${this.selectIndex}}`) + .margin({ bottom: 30 }) + TextPicker({ + range: this.range + }).onChange((value, index) => { + this.selectValue = `${value}`; + this.selectIndex = `${index}`; + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0030 value: {"value":${this.selectValue}, "index":${this.selectIndex}}`); + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..a1a7599559e8a4c41dec27e1f37a8d73f1d0204f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0040.ets @@ -0,0 +1,101 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerEvent0040 { + @State range: TextCascadePickerRangeContent[] = [ + { + text: '湖北省', + children: [ + { + text: '武汉市', + children: [ + { text: '洪山区' }, + { text: '江夏区' }, + { text: '青山区' }, + { text: '汉阳区' }, + { text: '江汉区' }, + ] + }, + { + text: '鄂州市', + children: [ + { text: '鄂城区' }, + { text: '葛店区' }, + { text: '华容区' }, + ] + }, + { + text: '黄冈市', + children: [ + { text: '黄州区' }, + { text: '蕲春县' }, + { text: '武穴市' }, + { text: '黄梅县' }, + ] + }, + ] + }, + { + text: '浙江省', + children: [ + { + text: '杭州市', + children: [ + { text: '西湖区' }, + { text: '余杭区' }, + { text: '萧山区' }, + { text: '滨江区' } + ] + }, + { + text: '绍兴市', + children: [ + { text: '上虞区' }, + { text: '越城区' }, + { text: '柯桥区' }, + ] + }, + { + text: '宁波市', + children: [ + { text: '江北区' }, + { text: '北仑区' }, + { text: '海曙区' } + ] + }, + ] + }, + ]; + @State selectValue: string = ''; + @State selectIndex: string = ''; + + build() { + Column() { + Text(`select value: {"value":${this.selectValue}, "index":${this.selectIndex}}`) + .margin({ bottom: 30 }) + TextPicker({ + range: this.range + }).onChange((value, index) => { + this.selectValue = `${value}`; + this.selectIndex = `${index}`; + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_EVENT_0040 value: {"value":${this.selectValue}, "index":${this.selectIndex}}`); + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..91700e32ef02677771de31ea5bb3e2fdbe5efda8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0010.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 UIComponentButtonTextPickerFadeout0010 { + @State showTextPicker: boolean = false; + + build() { + Column() { + Row() { + Text("渐隐高度:default").id('text_picker_gradientHeight') + Button("010_TextPicker").margin({ left: 20 }).id('show_picker_bt').onClick(() => { + this.showTextPicker = true; + }) + } + + if (this.showTextPicker) { + TextPicker({ + range: ['香蕉', '苹果', '西瓜', '柠檬'] + }).id('text_picker') + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..4f7add803c1ed90eadc5de92cf9fd4cfbb6668b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0030.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 UIComponentButtonTextPickerFadeout0030 { + @State showTextPicker: boolean = false; + + build() { + Column() { + Row() { + Text("渐隐高度:100px").id('text_picker_gradientHeight') + Button("030_TextPicker").margin({ left: 20 }).id('show_picker_bt').onClick(() => { + this.showTextPicker = true; + }) + } + + if (this.showTextPicker) { + TextPicker({ + range: ['香蕉', '苹果', '西瓜', '柠檬'] + }).id('text_picker').id('text_picker').gradientHeight('100px') + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..e12a60c633ee8c5f94fd2a5159ea425232f69968 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0040.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 UIComponentButtonTextPickerFadeout0040 { + @State showTextPicker: boolean = false; + + build() { + Column() { + Row() { + Text("渐隐高度:50fp").id('text_picker_gradientHeight') + Button("040_TextPicker").margin({ left: 20 }).id('show_picker_bt').onClick(() => { + this.showTextPicker = true; + }) + } + + if (this.showTextPicker) { + TextPicker({ + range: ['香蕉', '苹果', '西瓜', '柠檬'] + }).id('text_picker').gradientHeight('50fp') + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..39179fe5e9b0517c04d418691ded0188f6389e5d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0050.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 UIComponentButtonTextPickerFadeout0050 { + @State showTextPicker: boolean = false; + + build() { + Column() { + Row() { + Text("渐隐高度:100lpx").id('text_picker_gradientHeight') + Button("050_TextPicker").margin({ left: 20 }).id('show_picker_bt').onClick(() => { + this.showTextPicker = true; + }) + } + if (this.showTextPicker) { + TextPicker({ + range: ['香蕉', '苹果', '西瓜', '柠檬'] + }).id('text_picker').gradientHeight('100lpx') + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..73733057e5b1a6cd0772ead8bb98f4f4ab1d1581 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0070.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 UIComponentButtonTextPickerFadeout0070 { + @State showTextPicker: boolean = false; + + build() { + Column() { + Row() { + Text("渐隐高度:resource 100px").id('text_picker_gradientHeight') + Button("070_TextPicker").margin({ left: 20 }).id('show_picker_bt').onClick(() => { + this.showTextPicker = true; + }) + } + + if (this.showTextPicker) { + TextPicker({ + range: ['香蕉', '苹果', '西瓜', '柠檬'] + }).id('text_picker').gradientHeight($r('app.string.string100')) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c15eefb4db253f7f0e9c5b1f0b34e987e352f97 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0080.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 UIComponentButtonTextPickerFadeout0080 { + @State showTextPicker: boolean = false; + + build() { + Column() { + Row() { + Text("渐隐高度:0").id('text_picker_gradientHeight') + Button("080_TextPicker").margin({ left: 20 }).id('show_picker_bt').onClick(() => { + this.showTextPicker = true; + }) + } + + if (this.showTextPicker) { + TextPicker({ + range: ['香蕉', '苹果', '西瓜', '柠檬'] + }).id('text_picker').gradientHeight(0) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..e086619f3c12351fce2d3fe73e4e3013168d31ca --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0090.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 UIComponentButtonTextPickerFadeout0090 { + @State showTextPicker: boolean = false; + + build() { + Column() { + Row() { + Text("渐隐高度:-66").id('text_picker_gradientHeight') + Button("090_TextPicker").margin({ left: 20 }).id('show_picker_bt').onClick(() => { + this.showTextPicker = true; + }) + } + + if (this.showTextPicker) { + TextPicker({ + range: ['香蕉', '苹果', '西瓜', '柠檬'] + }).id('text_picker').gradientHeight(-66) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..9580ad4717d0568706325c6a627c071487248a1e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0100.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 UIComponentButtonTextPickerFadeout0100 { + @State showTextPicker: boolean = false; + + build() { + Column() { + Row() { + Text("渐隐高度:99999").id('text_picker_gradientHeight') + Button("100_TextPicker").margin({ left: 20 }).id('show_picker_bt').onClick(() => { + this.showTextPicker = true; + }) + } + + if (this.showTextPicker) { + TextPicker({ + range: ['香蕉', '苹果', '西瓜', '柠檬'] + }).id('text_picker').gradientHeight(99999) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..33555b39303eea03a136910858df831e717f43fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0110.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 UIComponentButtonTextPickerFadeout0110 { + @State showTextPicker: boolean = false; + + build() { + Column() { + Row() { + Text("渐隐高度:null").id('text_picker_gradientHeight') + Button("110_TextPicker").margin({ left: 20 }).id('show_picker_bt').onClick(() => { + this.showTextPicker = true; + }) + } + + if (this.showTextPicker) { + TextPicker({ + range: ['香蕉', '苹果', '西瓜', '柠檬'] + }).id('text_picker').gradientHeight(null) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..b560dc4140fea0a5b94620ea45dc9ddf395d9f99 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0120.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 UIComponentButtonTextPickerFadeout0120 { + @State showTextPicker: boolean = false; + + build() { + Column() { + Row() { + Text("渐隐高度:undefined").id('text_picker_gradientHeight') + Button("120_TextPicker").margin({ left: 20 }).id('show_picker_bt').onClick(() => { + this.showTextPicker = true; + }) + } + + if (this.showTextPicker) { + TextPicker({ + range: ['香蕉', '苹果', '西瓜', '柠檬'] + }).id('text_picker').gradientHeight(undefined) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..6740e53e2fdf04f3d0ff292fb13ee6e181a4f701 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0130.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 UIComponentButtonTextPickerFadeout0130 { + @State showTextPicker: boolean = false; + + build() { + Column() { + Row() { + Text("渐隐高度:100").id('text_picker_gradientHeight') + Button("130_TextPicker").margin({ left: 20 }).id('show_picker_bt').onClick(() => { + this.showTextPicker = true; + }) + } + + if (this.showTextPicker) { + TextPicker({ + range: ['香蕉', '苹果', '西瓜', '柠檬'] + }).id('text_picker').gradientHeight(100) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..13bf975c7f528bd41deff75e165f48b437b68f7f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0010.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0010 { + build() { + Column() { + Text("内容项元素高度为0").margin({ bottom: 20 }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).defaultPickerItemHeight(0) + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..8d91374922fb389dec449dcde11f820a72c9d158 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0030.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0030 { + build() { + Column() { + Text("内容项元素高度为0").margin({ bottom: 20 }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).defaultPickerItemHeight(0) + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..f3558f037925f832b828d3a6205bc21cb840b77f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0040.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0040 { + build() { + Column() { + Text("内容项元素高度为’20‘").margin({ bottom: 20 }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).defaultPickerItemHeight('20') + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..7dcedb45f0a1c7ec7aa9094674053794c05c964f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0050.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0050 { + build() { + Column() { + Text("内容项元素高度为80px").margin({ bottom: 20 }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).defaultPickerItemHeight('80px') + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..5b9e94136d6c66e743ffbbd415f31b2c593f5ecc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0060.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0060 { + build() { + Column() { + Text("内容项元素高度为0").margin({ bottom: 20 }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).defaultPickerItemHeight('20%') + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..216c7c8d2d4477dc82782f23586dadab594c262d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0070.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 UIComponentButtonTextPickerInterface0070 { + build() { + Column() { + Text("最上和最下两个选项的文本颜色为黄色、字号10、字体粗").margin({ bottom: 20 }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).disappearTextStyle({ + color: Color.Yellow, + font: { + size: 10, + weight: FontWeight.Bold + } + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..cca2786ecbf8c9028a9c2276e4911bfcd82b623c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0080.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 UIComponentButtonTextPickerInterface0080 { + build() { + Column() { + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).selectedTextStyle({ + color: Color.Yellow, + font: { + size: 10, + weight: FontWeight.Bold + } + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..d147509ae35e08afacf7bf1e71baeb2c7850ec63 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0090.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 UIComponentButtonTextPickerInterface0090 { + @State canLoop: boolean | null | undefined = true; + + build() { + Column() { + TextPicker({ + range: ['Test 1', 'Test 2'], + }).textStyle({ + color: Color.Yellow, + font: { + size: 10, + weight: FontWeight.Bold + } + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..132d9254303f5612bd8c27366758089e6ee387a4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0100.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 UIComponentButtonTextPickerInterface0100 { + @State range: string[] = ['一', '二', '三', '四']; + + build() { + Column() { + Row() { + Button("set text: english").id('option_bt1').onClick(() => { + this.range = ['one', 'two', 'three', 'four']; + ; + }) + Button("set text: number").margin({ left: 20 }).id('option_bt2').onClick(() => { + this.range = ['1', '2', '3', '4']; + ; + }) + } + + TextPicker({ + range: this.range, + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..53c819feeec043cb7a2a4642f1af88a517305d1b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0120.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0120 { + build() { + Column() { + TextPicker({ + range: ['香蕉-banana', '苹果-apple', '橙子','orange'], + }).width(300) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..7ba3621d684a19fb2bb363fd24239bdf967be0bf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0130.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0130 { + build() { + Column() { + TextPicker({ + range: ['香蕉-banana', '1', '橙子','orange'], + }).width(300) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..b61df4ac4267bce6b7b832beee46de682606d53b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0150.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0150 { + build() { + Column() { + TextPicker({ + range: ['Orange1', 'Orange2', 'Orange3', 'Orange4'], + value: 'Orange2', + selected: 1 + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..99aa443289854b9e3da03148c79e47b6279acfdf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0160.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0160 { + build() { + Column() { + TextPicker({ + range: ['peach1', 'peach2', 'peach3', 'peach4'], + selected: 2 + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..bd15903577969f4abb158df3ed3f40139426cfc5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0170.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0170 { + build() { + Column() { + TextPicker({ + range: ['peach1', 'peach2', 'peach3', 'peach4'], + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..ee5d860391f4b90f3a421a943f5bd606fc311a77 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0230.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0230 { + build() { + Stack() { + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..21770abbe66fbe1d144915788d2cf42836422656 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0240.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0240 { + build() { + Stack() { + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..7151d097b33cb0dd5a7be1c9249234ce9b02295d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0250.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0250 { + build() { + Stack() { + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..34c2015ce4fd4b3ce85a92e93297547abd338604 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0260.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0260 { + build() { + Stack() { + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..5034508bece95bf38daa782dfe788cbc5efb070b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0270.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0270 { + build() { + Stack() { + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..87ba4b0b01acf2c8fb05d739cd41ec831ef3748b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0280.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 UIComponentButtonTextPickerInterface0280 { + @State canLoop: boolean | null | undefined = true; + + build() { + Column() { + TextPicker({ + range: ['香蕉1', '香蕉2banana', '香蕉3dddddddddddddddddddddd', '苹果appleeddddddddddddddddddddddddd', 'apple1', 'apple2'], + }).canLoop(this.canLoop) + .width(200) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..1e69aef65d48984096af56f80a476fcb2388e86e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0290.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 { STRING_1_ZH_JT } from '../UIComponentButtonTextPickerMirrorImage/Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0290 { + @State canLoop: boolean | null | undefined = true; + @State selectIndex: number = 0; + + build() { + Column() { + Row() { + Button("+") + .id('button1') + .onClick(() => { + this.selectIndex += 1; + }) + Button("-") + .id('button2') + .onClick(() => { + this.selectIndex -= 1; + }) + } + TextPicker({ + range: STRING_1_ZH_JT, + selected: this.selectIndex + }).canLoop(this.canLoop) + .width(200) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..219641255ca08bd20c9b79422326a32a887bc0a6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0300.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 UIComponentButtonTextPickerInterface0300 { + build() { + Column() { + Text('width: 160, minWidth: 200') + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).width(160) + .constraintSize({ minWidth: 200 }) + Text('width: 160, minWidth: 250').margin({ top: 15 }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).width(160) + .constraintSize({ minWidth: 250 }) + Text('width: 160, minWidth: 300').margin({ top: 15 }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).width(160) + .constraintSize({ minWidth: 300 }) + }.alignItems(HorizontalAlign.Start) + .width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0310.ets new file mode 100644 index 0000000000000000000000000000000000000000..7efc87d617613b2fc9bb646890f7f0b82f1aa008 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0310.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 UIComponentButtonTextPickerInterface0310 { + build() { + Column() { + Row() { + Column() { + Text("default").margin({ bottom: 20 }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'] + }).height(120) + } + + Column() { + Text("minHeight: 160").margin({ bottom: 20 }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'] + }).constraintSize({ + minHeight: 160 + }).height(120) + }.margin({ left: 20, right: 20 }) + + Column() { + Text("minHeight: 240").margin({ bottom: 20 }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).constraintSize({ + minHeight: 240 + }).height(120) + } + }.justifyContent(FlexAlign.SpaceBetween) + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..421f616426841c4cade518815ae5dbff90d73fe0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0320.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0320 { + build() { + Column() { + TextPicker({ + range: ['Test 111111111', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).backgroundColor('#e0e0e0') + .height(400) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..3fd4c074d9d51098417ab2a8e78a841ee1e112a0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0330.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0330 { + build() { + Column() { + TextPicker({ + range: ['Test 111111111', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..4e625bc67c7338d9a41898f4ef5c6fb7d084dd39 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0340.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 UIComponentButtonTextPickerInterface0340 { + build() { + Column() { + Row() { + Text("left").backgroundColor(Color.Orange) + Column() { + Text('top').backgroundColor(Color.Orange) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).backgroundColor('#e0e0e0') + .margin(20) + Text('bottom').backgroundColor(Color.Orange) + } + + Text("right").backgroundColor(Color.Orange) + } + }.width('100%') + .height("100%") + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0350.ets new file mode 100644 index 0000000000000000000000000000000000000000..c939330215308714f2c22de1495d9d16197ca52a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0350.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 UIComponentButtonTextPickerInterface0350 { + build() { + Column() { + Column() { + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).backgroundColor('#e0e0e0') + .height('50%') + .width('50%') + .margin("25%") + } + .height(200) + .width(200) + .backgroundColor(Color.Red) + } + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0360.ets new file mode 100644 index 0000000000000000000000000000000000000000..7265057ef638759583a45fc3f163e9cea4ea02a6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0360.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 UIComponentButtonTextPickerInterface0360 { + build() { + Column() { + Row() { + Text("left").backgroundColor(Color.Orange) + Column() { + Text('top').backgroundColor(Color.Orange) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).backgroundColor('#e0e0e0') + .margin(0) + Text('bottom').backgroundColor(Color.Orange) + } + + Text("right").backgroundColor(Color.Orange) + } + }.width('100%') + .height("100%") + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0370.ets new file mode 100644 index 0000000000000000000000000000000000000000..c64a9c3e6114e90bba544fbd595219d58a37c5ab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0370.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 UIComponentButtonTextPickerInterface0370 { + build() { + Column() { + Text("边距:top: 60, left: 40, bottom: 30,right: 80").margin({ bottom: 20 }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).padding({ + top: 60, + left: 40, + bottom: 30, + right: 80 + }).backgroundColor('#e0e0e0') + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0380.ets new file mode 100644 index 0000000000000000000000000000000000000000..b98f9ff25fe4248f772b6dc31500a1472bd5c864 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0380.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 UIComponentButtonTextPickerInterface0380 { + build() { + Column() { + TextPicker({ + range: ['Test 1', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).backgroundColor('#e0e0e0') + .padding({ + left: 200, + top: 200, + right: 200, + bottom: 200 + }) + .width(400) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0390.ets new file mode 100644 index 0000000000000000000000000000000000000000..df72502b3a54ba374d6a603b8ee70d7c714e351e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0390.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0390 { + build() { + Column() { + TextPicker({ + range: ['香蕉', '苹果', '橙子', '西瓜'], + }).padding(0).backgroundColor('#e0e0e0') + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0400.ets new file mode 100644 index 0000000000000000000000000000000000000000..d1eb1e1e093e28a2cea2637c65b28c7f07b4ae60 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0400.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 UIComponentButtonTextPickerInterface0400 { + build() { + Column() { + Text("宽300 高400").margin({ bottom: 20 }) + TextPicker({ + range: ['Test 111111111', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).backgroundColor('#e0e0e0') + .width(300) + .height(400) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0410.ets new file mode 100644 index 0000000000000000000000000000000000000000..9fd156b68c674b38cfe7d3974b672ff2c45120ec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0410.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0410 { + build() { + Column() { + TextPicker({ + range: ['Test 111111111', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).backgroundColor('#e0e0e0') + .width(240) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0420.ets new file mode 100644 index 0000000000000000000000000000000000000000..93be64151182da5de7ef8baf97600f9017862f3e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0420.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0420 { + build() { + Column() { + TextPicker({ + range: ['Test 111111111', 'Test 2', 'Test3', 'Test 11', 'Test 22', 'Test33', 'Test 21', 'Test 22', 'Test 33'], + }).backgroundColor('#e0e0e0') + .width(400) + }.width('100%') + .height('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0510.ets new file mode 100644 index 0000000000000000000000000000000000000000..7c563529b69ed26f1d8a78c278c36b1e412e376a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0510.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0510 { + build() { + Column() { + TextPicker({ + range: ['Test 1', 'Test 2'], + }) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0520.ets new file mode 100644 index 0000000000000000000000000000000000000000..e49e696a69265dc691172cee6e9cdfc7659da55e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0520.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0520 { + build() { + Column() { + TextPicker({ + range: ['Test 1', 'Test 2'], + }).canLoop(false) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0530.ets new file mode 100644 index 0000000000000000000000000000000000000000..df3ef85dabdb03f1754b6e0d292fd67cd2560a55 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0530.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0530 { + build() { + Column() { + TextPicker({ + range: ['Test 1', 'Test 2'], + }).canLoop(null) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0540.ets new file mode 100644 index 0000000000000000000000000000000000000000..65cc77804cc7525ee46bb74a33aeb534455a5ead --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0540.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0540 { + build() { + Column() { + TextPicker({ + range: ['Test 1', 'Test 2'], + }).canLoop(undefined) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0550.ets new file mode 100644 index 0000000000000000000000000000000000000000..76eda65373e6f631378213a7c8af2d351cce1357 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0550.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerInterface0550 { + build() { + Column() { + TextPicker({ + range: ['Test 1', 'Test 2'], + }) + }.width('100%') + .height('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0560.ets new file mode 100644 index 0000000000000000000000000000000000000000..c71feedc60ee542bd62909fd71de03b306486961 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0560.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 UIComponentButtonTextPickerInterface0560 { + @State canLoop: boolean | null | undefined = true; + + build() { + Column() { + Button("set cabLoop: false").id('option_bt').onClick(() => { + this.canLoop = false; + }) + TextPicker({ + range: ['Test 1', 'Test 2'], + }).canLoop(this.canLoop) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0570.ets new file mode 100644 index 0000000000000000000000000000000000000000..be8eb233996b645dc9a0c664efe81fd6fd3e5275 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0570.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 UIComponentButtonTextPickerInterface0570 { + @State canLoop: boolean | null | undefined = null; + + build() { + Column() { + Button("set cabLoop: false").id('option_bt').onClick(() => { + this.canLoop = false; + }) + TextPicker({ + range: ['Test 1', 'Test 2'], + }).canLoop(this.canLoop) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0580.ets new file mode 100644 index 0000000000000000000000000000000000000000..a9f2921752d903fb5c4c9a6328f2cb886f13ccaa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0580.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 UIComponentButtonTextPickerInterface0580 { + @State canLoop: boolean | null | undefined = false; + + build() { + Column() { + Button("set cabLoop: null").id('option_bt').onClick(() => { + this.canLoop = null; + }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test 3'], + }).canLoop(this.canLoop) + }.width('100%') + .height('100%') + + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/Commons.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/Commons.ets new file mode 100644 index 0000000000000000000000000000000000000000..189fe5f0fc17f7ff45f9115402c9305919f75712 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/Commons.ets @@ -0,0 +1,282 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/************* 中文简体 ****************/ +export const CASCADE_ZH_JT: TextCascadePickerRangeContent[] = [ + { + text: '水果', + children: [ + { text: '菠萝' }, + { text: '苹果' } + ] + }, + { + text: '家电', + children: [ + { text: '电视机' }, + { text: '电冰箱' } + ] + }, + { + text: '数字', + children: [ + { text: '一' }, + { text: '二' }, + { text: '三' }, + { text: '四' }, + { text: '五' }, + ] + } +]; + +export const IMAGE_ZH_JT: TextPickerRangeContent[] = [ + { + icon: 'cat.jpg', + text: "香蕉" + }, + { + icon: 'cat.jpg', + text: "苹果" + }, + { + icon: 'cat.jpg', + text: "菠萝" + }, + { + icon: 'cat.jpg', + text: "西瓜" + } +]; + +export const STRING_1_ZH_JT: string[] = getContext().resourceManager.getStringArrayValueSync($r('app.strarray.fruit')); + +export const STRING_2_ZH_JT: string[][] = [ + getContext().resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + getContext().resourceManager.getStringArrayValueSync($r('app.strarray.appliance')) +]; + +export const RESOURCE_ZH_JT: Resource = $r('app.strarray.fruit'); + +/************* 中文繁体 ****************/ +export const CASCADE_ZH_FT: TextCascadePickerRangeContent[] = [ + { + text: '水果', + children: [ + { text: '菠蘿' }, + { text: '蘋果' } + ] + }, + { + text: '家電', + children: [ + { text: '電視' }, + { text: '電腦' } + ] + }, + { + text: '數字', + children: [ + { text: '壹' }, + { text: '貳' }, + { text: '叁' }, + { text: '肆' }, + { text: '伍' }, + ] + } +]; + +export const IMAGE_ZH_FT: TextPickerRangeContent[] = [ + { + icon: 'cat.jpg', + text: "鳳梨" + }, + { + icon: 'cat.jpg', + text: "蘋果" + }, + { + icon: 'cat.jpg', + text: "菠蘿" + }, + { + icon: 'cat.jpg', + text: "火龍果" + } +]; + +export const STRING_1_ZH_FT: string[] = getContext().resourceManager.getStringArrayValueSync($r('app.strarray.fruit_ft')); + +export const STRING_2_ZH_FT: string[][] = [ + getContext().resourceManager.getStringArrayValueSync($r('app.strarray.fruit_ft')), + getContext().resourceManager.getStringArrayValueSync($r('app.strarray.appliance_ft')) +]; + +export const RESOURCE_ZH_FT: Resource = $r('app.strarray.fruit_ft'); + +/************* 藏文 ****************/ +export const CASCADE_ZH_ZW: TextCascadePickerRangeContent[] = [ + { + text: 'འབྲས་བུ་', + children: [ + { text: 'བརྩེད་པོ' }, + { text: 'འབྲིང་' } + ] + }, + { + text: 'གཞི་རྩོམ་པ།', + children: [ + { text: 'བརྙན་འཕྲིན' }, + { text: 'འབྲུག་འབྱུང་' } + ] + }, + { + text: 'གཞོན་ནང་', + children: [ + { text: 'བརྒྱལ་ཁང་' }, + { text: 'དབང་རྩེ་' } + ] + } +]; + +export const IMAGE_ZH_ZW: TextPickerRangeContent[] = [ + { + icon: 'cat.jpg', + text: "བཟོ་བདེ་" + }, + { + icon: 'cat.jpg', + text: "འབྲིང་" + }, + { + icon: 'cat.jpg', + text: "བོ་ལོའི་སོགས་" + }, + { + icon: 'cat.jpg', + text: "ཧ་མི་དངོས་" + } +]; + +export const STRING_1_ZH_ZW: string[] = getContext().resourceManager.getStringArrayValueSync($r('app.strarray.fruit_zw')); + +export const STRING_2_ZH_ZW: string[][] = [ + getContext().resourceManager.getStringArrayValueSync($r('app.strarray.fruit_zw')), + getContext().resourceManager.getStringArrayValueSync($r('app.strarray.appliance_zw')) +]; + +export const RESOURCE_ZH_ZW: Resource = $r('app.strarray.fruit_zw'); + + +/************* 维吾尔文 ****************/ +export const CASCADE_ZH_WW: TextCascadePickerRangeContent[] = [ + { + text: 'لىياڭنىڭ شەھىرى', + children: [ + { text: 'شېنجاڭ شەھىرى' }, + { text: 'دالىيان شەھىرى' } + ] + }, + { + text: 'جىلىن شەھىرى', + children: [ + { text: 'چاڭچۇن شەھىرى' }, + { text: 'سۈرپىڭ شەھىرى' } + ] + }, + { + text: 'خەيلۇن جياڭ ئۆلكىسى', + children: [ + { text: 'خەربىن شەھىرى' }, + { text: 'مۈتەن جېڭشەن' } + ] + } +]; + +export const IMAGE_ZH_WW: TextPickerRangeContent[] = [ + { + icon: 'cat.jpg', + text: "تېلېۋىزور" + }, + { + icon: 'cat.jpg', + text: "تازىلاش ماشىنىسى" + }, + { + icon: 'cat.jpg', + text: "مۇزلاتقۇچ" + }, + { + icon: 'cat.jpg', + text: "ھەۋا شۇندۇرغۇچ" + } +]; + +export const STRING_1_ZH_WW: string[] = getContext().resourceManager.getStringArrayValueSync($r('app.strarray.fruit_ww')); + +export const STRING_2_ZH_WW: string[][] = [ + getContext().resourceManager.getStringArrayValueSync($r('app.strarray.fruit_ww')), + getContext().resourceManager.getStringArrayValueSync($r('app.strarray.appliance_ww')) +]; + +export const RESOURCE_ZH_WW: Resource = $r('app.strarray.fruit_ww'); + +/************* 英文 ****************/ +export const CASCADE_EN: TextCascadePickerRangeContent[] = [ + { + text: 'fruit', + children: [ + { text: 'banana' }, + { text: 'apple' }, + { text: 'lemon' }, + { text: 'orange' }, + ] + }, + { + text: 'appliance', + children: [ + { text: 'Computer' }, + { text: 'Refrigerator' }, + { text: 'TV' }, + ] + } +]; + +export const IMAGE_EN: TextPickerRangeContent[] = [ + { + icon: 'cat.jpg', + text: "banana" + }, + { + icon: 'cat.jpg', + text: "apple" + }, + { + icon: 'cat.jpg', + text: "lemon" + }, + { + icon: 'cat.jpg', + text: "orange" + } +]; + +export const STRING_1_EN: string[] = getContext().resourceManager.getStringArrayValueSync($r('app.strarray.fruit_en')); + +export const STRING_2_EN: string[][] = [ + getContext().resourceManager.getStringArrayValueSync($r('app.strarray.fruit_en')), + getContext().resourceManager.getStringArrayValueSync($r('app.strarray.appliance_en')) +]; + +export const RESOURCE_EN: Resource = $r('app.strarray.fruit_en'); \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..310bb4c6649101c6046ba2bfeaf0dc5333e84a8a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0020.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0020 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Auto; + @State range: string[][] = [ + ['测试1', '测试2', '测试3', '测试4'], + ['测试5', '测试6', '测试7', '测试8'], + ]; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0020 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..f38a6da58cad9148137a2eba1e388b8becf3dcc2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0030.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0030 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Auto; + @State range: TextPickerRangeContent[] = [ + { + icon: 'cat.jpg', + text: "测试1" + }, + { + icon: 'cat.jpg', + text: "测试2" + }, + { + icon: 'cat.jpg', + text: "测试3" + }, + { + icon: 'cat.jpg', + text: "测试4" + } + ]; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0030 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..9fbed1369927c65b97da4ce52feb8312c7e8e854 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0050.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0050 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[] = ['测试1', '测试2', '测试3', '测试4']; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0050 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..61cdde3541832c53abe68ca16a527c1d00a5934b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0060.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0060 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Auto; + @State range: string[] = ['测试1', '测试2', '测试3', '测试4']; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0060 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..ee44f169801a2047dd5699b80483ebac81e01a34 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0070.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0070 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: Resource = $r('app.strarray.city'); + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + // range: this.range + range: getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.city')) + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0070 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..4b9637bd1299765e73943df695a00c1c77416f30 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0080.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0080 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Auto; + @State range: string[][] = [ + ['測試1', '測試2', '測試3', '測試4'], + ['測試5', '測試6', '測試7', '測試8'], + ]; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0080 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..16250a610b4d419db806f55bfcdf865387d12419 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0090.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0090 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Auto; + @State range: TextPickerRangeContent[] = [ + { + icon: 'cat.jpg', + text: "測試1" + }, + { + icon: 'cat.jpg', + text: "測試2" + }, + { + icon: 'cat.jpg', + text: "測試3" + }, + { + icon: 'cat.jpg', + text: "測試4" + } + ]; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0090 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..5acaf1e1d0c4c379ffdc8c614a2049f4923d8b38 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0100.ets @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0100 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = [ + { + text: '水果', + children: [ + { text: '菠蘿' }, + { text: '蘋果' } + ] + }, + { + text: '家電', + children: [ + { text: '電視機' }, + { text: '電冰箱' } + ] + }, + { + text: '數字', + children: [ + { text: '壹' }, + { text: '貳' }, + { text: '叁' }, + { text: '肆' }, + { text: '伍' }, + ] + } + ]; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0100 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..3e587ab39dddbb3b97c326de36e282bcda030283 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0110.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0110 { + @State range: string[][] = []; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("TextPickerRangeContent[]").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.range = [ + ['Test 1', 'Test 2', 'Test 3', 'Test 4'], + ['Test 5', 'Test 6', 'Test 7', 'Test 8'], + ]; + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0150 onChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..e95f32c86c83b9c50c55dc580ae7352de4cae7b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0120.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0120 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[] = ['测试1', '测试2', '测试3', '测试4']; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0120 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..6a79b3c0672d73d30fcf5af8796be92a8dce1004 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0130.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0130 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[] = ['چاڭچۇن شەھىرى', 'سۈرپىڭ شەھىرى', 'خەربىن شەھىرى', 'مۈتەن جېڭشەن']; + ; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0130 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..e7aafdee20a74f240b6ebc316ab376a7ed5079c6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0140.ets @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0140 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = [ + { + text: 'لىياڭنىڭ شەھىرى', + children: [ + { text: 'شېنجاڭ شەھىرى' }, + { text: 'دالىيان شەھىرى' } + ] + }, + { + text: 'جىلىن شەھىرى', + children: [ + { text: 'چاڭچۇن شەھىرى' }, + { text: 'سۈرپىڭ شەھىرى' } + ] + }, + { + text: 'خەيلۇن جياڭ ئۆلكىسى', + children: [ + { text: 'خەربىن شەھىرى' }, + { text: 'مۈتەن جېڭشەن' } + ] + } + ]; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0140 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..7d4dff48c976dae86144c99c1220a80211c2a875 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0150.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0150 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + + }) + Button("TextPickerRangeContent[]").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.range = [ + { + icon: 'cat.jpg', + text: "བཟོ་བདེ་" + }, + { + icon: 'cat.jpg', + text: "འབྲིང་" + }, + { + icon: 'cat.jpg', + text: "བོ་ལོའི་སོགས་" + }, + { + icon: 'cat.jpg', + text: "ཧ་མི་དངོས་" + } + ]; + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0150 onChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..9d0cc101425fd2b641cc8f9cac1571c086c3a8ce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0170.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 Logger from '../../../test/model/Logger'; +import { RESOURCE_ZH_FT, STRING_1_ZH_FT, STRING_1_ZH_WW } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0170 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[] = STRING_1_ZH_WW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0170 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..21e26fa2ded462ad01ae0eecc5541150907e108e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0180.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 Logger from '../../../test/model/Logger'; +import { RESOURCE_ZH_FT, STRING_1_ZH_FT } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0180 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: Resource = RESOURCE_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + // range: this.range + range: STRING_1_ZH_FT + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0180 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..44a9995b3f75618801341f2a67c1910c0170a072 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0190.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 Logger from '../../../test/model/Logger'; +import { CASCADE_ZH_WW, IMAGE_ZH_FT, RESOURCE_EN, RESOURCE_ZH_FT, STRING_1_EN, STRING_1_ZH_FT, STRING_1_ZH_WW } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0190 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextPickerRangeContent[] = IMAGE_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0190 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..98793659e9ba2c8c9bda0624ca98eaddbd55576e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0200.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 Logger from '../../../test/model/Logger'; +import { CASCADE_ZH_WW, RESOURCE_ZH_FT, STRING_1_ZH_FT, STRING_1_ZH_WW } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0200 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = CASCADE_ZH_WW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0200 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..5e898385e4f96b8c818a67cba201c439eb4e8e86 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0220.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 Logger from '../../../test/model/Logger'; +import { CASCADE_ZH_WW, RESOURCE_EN, RESOURCE_ZH_FT, STRING_1_EN, STRING_1_ZH_FT, STRING_1_ZH_WW } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0220 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: Resource = RESOURCE_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + // range: this.range + range: STRING_1_EN + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0220 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..f1455e49da19184a8605a3a82568312d0fc8e2c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0230.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 Logger from '../../../test/model/Logger'; +import { CASCADE_ZH_WW, RESOURCE_EN, RESOURCE_ZH_FT, STRING_1_EN, STRING_1_ZH_FT, STRING_1_ZH_WW } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0230 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[] = STRING_1_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0230 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..b577a7f4eb0d4e897c6c7f76775d763cd98d7823 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0250.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 Logger from '../../../test/model/Logger'; +import { CASCADE_ZH_JT, CASCADE_ZH_WW, IMAGE_ZH_FT, RESOURCE_EN, RESOURCE_ZH_FT, STRING_1_EN, STRING_1_ZH_FT, STRING_1_ZH_WW, STRING_2_ZH_JT, STRING_2_ZH_ZW } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0250 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[][] = STRING_2_ZH_ZW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0250 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..11b0fa38589066f9bb64073a0e6a6d2cc8c1d37d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0260.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 Logger from '../../../test/model/Logger'; +import { CASCADE_ZH_JT, CASCADE_ZH_WW, IMAGE_ZH_FT, RESOURCE_EN, RESOURCE_ZH_FT, STRING_1_EN, STRING_1_ZH_FT, STRING_1_ZH_WW, STRING_2_ZH_JT } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0260 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = CASCADE_ZH_JT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0260 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..fbec6a4ed150c416b3a1819c4be9763374acdc7b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0270.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 Logger from '../../../test/model/Logger'; +import { CASCADE_ZH_WW, IMAGE_ZH_FT, RESOURCE_EN, RESOURCE_ZH_FT, STRING_1_EN, STRING_1_ZH_FT, STRING_1_ZH_WW, STRING_2_ZH_JT } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0270 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[][] = STRING_2_ZH_JT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0270 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..f5d5227ded5c6c80054af3e60bd046853c0361c1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0280.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 Logger from '../../../test/model/Logger'; +import { IMAGE_ZH_JT, RESOURCE_ZH_WW, STRING_1_ZH_WW } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0280 { + @State range: Resource = RESOURCE_ZH_WW; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("Resource").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + // range: this.range, + range: STRING_1_ZH_WW, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0280 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..3c47e8dd262003c4455740ccf6d2f6e73b587869 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0290.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 Logger from '../../../test/model/Logger'; +import { IMAGE_ZH_JT } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0290 { + @State range: TextPickerRangeContent[] = IMAGE_ZH_JT; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("TextPickerRangeContent[]").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0290 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..9cc7e1a66cbdc81f73f264d393c6a67e9fc3768b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0300.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 Logger from '../../../test/model/Logger'; +import { IMAGE_EN, IMAGE_ZH_JT, RESOURCE_ZH_WW, STRING_1_ZH_WW } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0300 { + @State range: TextPickerRangeContent[] = IMAGE_EN; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("TextPickerRangeContent[]").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0300 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..6a8407e54c053a7d207bc65adb77443da04474ad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0320.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 Logger from '../../../test/model/Logger'; +import { CASCADE_ZH_JT, CASCADE_ZH_WW, IMAGE_ZH_FT, RESOURCE_EN, RESOURCE_ZH_FT, STRING_1_EN, STRING_1_ZH_FT, STRING_1_ZH_WW, STRING_2_ZH_JT, STRING_2_ZH_ZW } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0320 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = CASCADE_ZH_JT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0320 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..f5051b2690c1d2e926b217f54a4e52f685231ae5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0330.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0330 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextPickerRangeContent[] = IMAGE_ZH_WW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0330 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..10e9ed6ad509c64e5dd9157ee9cf22fdc4ea0af3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0340.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0340 { + @State range: string[][] = STRING_2_ZH_ZW; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("string[][]").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0340 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0350.ets new file mode 100644 index 0000000000000000000000000000000000000000..cf017f37d1137f7245ac3d88f79e55e9964c13a1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0350.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0350 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: Resource = RESOURCE_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + // range: this.range + range: STRING_1_ZH_FT + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0350 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0360.ets new file mode 100644 index 0000000000000000000000000000000000000000..c971db5a0f640cce080d11b517870a686e9ca361 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0360.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0360 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[][] = STRING_2_ZH_ZW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0360 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0370.ets new file mode 100644 index 0000000000000000000000000000000000000000..b2abaf07e067872db073c1b9e534bb25abc6e049 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0370.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0370 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[][] = STRING_2_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0370 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0380.ets new file mode 100644 index 0000000000000000000000000000000000000000..e431055c77370077590d04160944faeee033c7e0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0380.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0340 { + @State range: Resource = RESOURCE_ZH_ZW; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("Resource").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + // range: this.range, + range: STRING_1_ZH_ZW, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0340 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0390.ets new file mode 100644 index 0000000000000000000000000000000000000000..60ec1745c1009769a2fbded8430f75fc4c033885 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0390.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0340 { + @State range: string[][] = STRING_2_ZH_JT; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("string[][]").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0340 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0400.ets new file mode 100644 index 0000000000000000000000000000000000000000..c01f85c4381116e9d6e3e15ecffc9e5a25f19e1e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0400.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0340 { + @State range: TextPickerRangeContent[] = IMAGE_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("TextPickerRangeContent[]").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0340 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0410.ets new file mode 100644 index 0000000000000000000000000000000000000000..44b3f884f6ece851f8c7aaee6f1aac2f9ea11894 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0410.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0410 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: Resource = RESOURCE_ZH_ZW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + // range: this.range + range: STRING_1_ZH_ZW + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0410 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0420.ets new file mode 100644 index 0000000000000000000000000000000000000000..8ceac6c070e5fffd1b85145e688b2263de1703ec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0420.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0420 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = CASCADE_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0420 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0430.ets new file mode 100644 index 0000000000000000000000000000000000000000..1ab24395d21448e7ca2a6c7b8476a93883beeff8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0430.ets @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0430 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextPickerRangeContent[] = IMAGE_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0430 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0440.ets new file mode 100644 index 0000000000000000000000000000000000000000..1cbc7152ce3aa60960d1ec07df75a6cc68f12c79 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0440.ets @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_JT, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_JT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0440 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: Resource = RESOURCE_ZH_JT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + // range: this.range + range: STRING_1_ZH_JT + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0440 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0450.ets new file mode 100644 index 0000000000000000000000000000000000000000..72060872d8cbc424d1d6792f722d6a7e46111da7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0450.ets @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0450 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: Resource = RESOURCE_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + // range: this.range + range: STRING_1_ZH_FT + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0450 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0470.ets new file mode 100644 index 0000000000000000000000000000000000000000..1c22d049a4911520b8c911fc3400bf88b388c02f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0470.ets @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + IMAGE_ZH_ZW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0470 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextPickerRangeContent[] = IMAGE_ZH_ZW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0470 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0480.ets new file mode 100644 index 0000000000000000000000000000000000000000..1eb6e58d37aee8b78a71439d14b0471825572bd7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0480.ets @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_WW, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0480 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: Resource = RESOURCE_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + // range: this.range + range: STRING_1_EN + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0480 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0490.ets new file mode 100644 index 0000000000000000000000000000000000000000..d63757851539dcf79eceaa708af941ccd0c8ca27 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0490.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_JT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0490 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextPickerRangeContent[] = IMAGE_ZH_JT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0490 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0500.ets new file mode 100644 index 0000000000000000000000000000000000000000..da3d29d88ce2ec19c3ea6d8931550f51de60e825 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0500.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0500 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[][] = STRING_2_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0500 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0510.ets new file mode 100644 index 0000000000000000000000000000000000000000..2d533a82c4c552903b967b6f0eef0d12e86c815a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0510.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0510 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Auto; + @State range: TextPickerRangeContent[] = [ + { + icon: 'cat.jpg', + text: "བཟོ་བདེ་" + }, + { + icon: 'cat.jpg', + text: "འབྲིང་" + }, + { + icon: 'cat.jpg', + text: "བོ་ལོའི་སོགས་" + }, + { + icon: 'cat.jpg', + text: "ཧ་མི་དངོས་" + } + ]; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0510 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0520.ets new file mode 100644 index 0000000000000000000000000000000000000000..65c464fe36a933ea0cf3fe312eaeff24b690b282 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0520.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0520 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: Resource = $r('app.strarray.fruit'); + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + // range: this.range + range: getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')) + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0520 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0530.ets new file mode 100644 index 0000000000000000000000000000000000000000..35dda009674fcc5c8dcd06d982a38fb95b4bfc82 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0530.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0530 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Auto; + @State range: string[][] = [ + ['چاڭچۇن شەھىرى', 'سۈرپىڭ شەھىرى', 'خەربىن شەھىرى', 'مۈتەن جېڭشەن'], + ['چاڭچۇن شەھىرى', 'سۈرپىڭ شەھىرى', 'خەربىن شەھىرى', 'مۈتەن جېڭشەن'] + ]; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0530 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0540.ets new file mode 100644 index 0000000000000000000000000000000000000000..a7f3729a2d3d87344301564a6543d85c51ee3589 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0540.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0540 { + @State range: string[] = []; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("string[]").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.range = getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')); + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0540 onChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0550.ets new file mode 100644 index 0000000000000000000000000000000000000000..2dc2ecfdeb7f7e495ad4ae7068e1b853c1d6873e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0550.ets @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0550 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = [ + { + text: 'འབྲས་བུ་', + children: [ + { text: 'བརྩེད་པོ' }, + { text: 'འབྲིང་' } + ] + }, + { + text: 'གཞི་རྩོམ་པ།', + children: [ + { text: 'བརྙན་འཕྲིན' }, + { text: 'འབྲུག་འབྱུང་' } + ] + }, + { + text: 'གཞོན་ནང་', + children: [ + { text: 'བརྒྱལ་ཁང་' }, + { text: 'དབང་རྩེ་' } + ] + } + ]; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0550 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0560.ets new file mode 100644 index 0000000000000000000000000000000000000000..3ffae162a48a7d4e4eafa648dbcd3728cfa1c67c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0560.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0560 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextPickerRangeContent[] = [ + { + icon: 'cat.jpg', + text: "香蕉" + }, + { + icon: 'cat.jpg', + text: "苹果" + }, + { + icon: 'cat.jpg', + text: "西瓜" + }, + { + icon: 'cat.jpg', + text: "菠萝" + } + ]; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0560 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0570.ets new file mode 100644 index 0000000000000000000000000000000000000000..48ebb679ad51a97b73b34766463061d4bf2fe9cc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0570.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0570 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[] = getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit_zw')); + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0570 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0580.ets new file mode 100644 index 0000000000000000000000000000000000000000..e2bc7e25b95b3e9f357a9c7efe57148bcb67aa6c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0580.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0580 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[] = getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit_zw')); + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0580 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0590.ets new file mode 100644 index 0000000000000000000000000000000000000000..03d087d9227cba6a2839d322318af0831ff3fba0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0590.ets @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0590 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = [ + { + text: '水果', + children: [ + { text: '菠萝' }, + { text: '苹果' } + ] + }, + { + text: '家电', + children: [ + { text: '电视机' }, + { text: '电冰箱' } + ] + }, + { + text: '数字', + children: [ + { text: '一' }, + { text: '二' }, + { text: '三' }, + { text: '四' }, + { text: '五' }, + ] + } + ]; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0590 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0620.ets new file mode 100644 index 0000000000000000000000000000000000000000..0bf6d01a584313a91b049e0cb27f103082782082 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0620.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0620 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[] = getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit_ft')); + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0620 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0630.ets new file mode 100644 index 0000000000000000000000000000000000000000..dae795053504a9a0631dda0f1298ed0306adf8f6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0630.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 Logger from '../../../test/model/Logger'; +import { CASCADE_EN } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0630 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = CASCADE_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0630 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0640.ets new file mode 100644 index 0000000000000000000000000000000000000000..848a7e19f458e88dc65c0b41ae7ad3c9f8f6ce87 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0640.ets @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0640 { + @State range: TextCascadePickerRangeContent[] = [ + { + text: 'لىياڭنىڭ شەھىرى', + children: [ + { text: 'شېنجاڭ شەھىرى' }, + { text: 'دالىيان شەھىرى' } + ] + }, + { + text: 'جىلىن شەھىرى', + children: [ + { text: 'چاڭچۇن شەھىرى' }, + { text: 'سۈرپىڭ شەھىرى' } + ] + }, + { + text: 'خەيلۇن جياڭ ئۆلكىسى', + children: [ + { text: 'خەربىن شەھىرى' }, + { text: 'مۈتەن جېڭشەن' } + ] + } + ]; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("TextCascadePickerRangeContent[]").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0640 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0650.ets new file mode 100644 index 0000000000000000000000000000000000000000..02b843228b06068d95abb4c0bc7e755b7aedc848 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0650.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0650 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Auto; + @State range: string[][] = [ + getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit')), + getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.appliance')), + ]; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0650 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0660.ets new file mode 100644 index 0000000000000000000000000000000000000000..f202267dfa405394824cc55ce04483b94f187ff8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0660.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 Logger from '../../../test/model/Logger'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0660 { + @State range: string[] = []; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("Resource").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + range: getContext(this).resourceManager.getStringArrayValueSync($r('app.strarray.fruit_en')), + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0660 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0670.ets new file mode 100644 index 0000000000000000000000000000000000000000..a5658c823ca0221ae7e7952ef63173da110d0c63 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0670.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 Logger from '../../../test/model/Logger'; +import { CASCADE_EN, IMAGE_EN, IMAGE_ZH_JT, RESOURCE_ZH_WW, STRING_1_ZH_WW } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0670 { + @State range: TextCascadePickerRangeContent[] = CASCADE_EN; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("TextCascadePickerRangeContent[]").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0670 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0680.ets new file mode 100644 index 0000000000000000000000000000000000000000..007d9547bddf532c268e1d771f3c3e5dd9ec9e72 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0680.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_JT, + CASCADE_ZH_WW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_ZH_JT, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0680 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextPickerRangeContent[] = IMAGE_ZH_WW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0680 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0690.ets new file mode 100644 index 0000000000000000000000000000000000000000..92429bf93e2955533bc8dd88fe30193e0e143ce8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0690.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0690 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = CASCADE_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0690 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0700.ets new file mode 100644 index 0000000000000000000000000000000000000000..db1d28ecdf8db0ed7559c1427656118d29080599 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0700.ets @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_ZH_JT, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0790 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = CASCADE_ZH_ZW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0790 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0710.ets new file mode 100644 index 0000000000000000000000000000000000000000..e854f8325ea8e118d1eb350e2acd32bc69b79128 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0710.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0710 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[] = STRING_1_ZH_ZW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0710 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0720.ets new file mode 100644 index 0000000000000000000000000000000000000000..48340d4c596777c854d51782c89be9e82439dbc0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0720.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0720 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[][] = STRING_2_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0720 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0730.ets new file mode 100644 index 0000000000000000000000000000000000000000..2a473c3972b4b95b1778d470d8ea028066661f17 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0730.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0730 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[][] = STRING_2_ZH_WW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0730 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0740.ets new file mode 100644 index 0000000000000000000000000000000000000000..7e82a0c8f71f60b6baba87da9c15f11009072e73 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0740.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_JT, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0740 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[] = STRING_1_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0740 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0750.ets new file mode 100644 index 0000000000000000000000000000000000000000..5a0db0d62bd90ca6bb2b19ef587a5f28deb434b5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0750.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_JT, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0750 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[][] = STRING_2_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0750 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0760.ets new file mode 100644 index 0000000000000000000000000000000000000000..461bacc81a8f9d407d42a346a1f072ba1b78d60a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0760.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0760 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = CASCADE_ZH_WW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0760 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0770.ets new file mode 100644 index 0000000000000000000000000000000000000000..25b624600e4fdc49f87847dc11f8ba791a4adcad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0770.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 Logger from '../../../test/model/Logger'; +import { CASCADE_EN, CASCADE_ZH_JT, IMAGE_EN, IMAGE_ZH_JT, RESOURCE_ZH_WW, STRING_1_ZH_WW } from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0770 { + @State range: TextCascadePickerRangeContent[] = CASCADE_ZH_JT; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("TextCascadePickerRangeContent[]").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0770 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0780.ets new file mode 100644 index 0000000000000000000000000000000000000000..de1366a29256d3fc40541b0e0ca59fd787b3dcc8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0780.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0780 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[] = STRING_1_ZH_WW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0780 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0790.ets new file mode 100644 index 0000000000000000000000000000000000000000..20df9671472ce582a5442db08d861eb66e9597bc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0790.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_ZH_JT, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0790 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = CASCADE_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0790 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0800.ets new file mode 100644 index 0000000000000000000000000000000000000000..02f03c9a37c71d18b99f03dc93f58370ff0576a1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0800.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + IMAGE_ZH_ZW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0800 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextPickerRangeContent[] = IMAGE_ZH_ZW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0800 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0810.ets new file mode 100644 index 0000000000000000000000000000000000000000..5a00a8862fe75adb8cdcdbeb0b4634a91a7cdd5b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0810.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0810 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextPickerRangeContent[] = IMAGE_ZH_WW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0810 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0820.ets new file mode 100644 index 0000000000000000000000000000000000000000..8e81211b0a82971dfa5f848f33cad9c5487b1556 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0820.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0820 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[] = STRING_1_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0820 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0830.ets new file mode 100644 index 0000000000000000000000000000000000000000..195e6eb75578568ac0a2fbcc88cfb71a4611ec8f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0830.ets @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_WW, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0830 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: Resource = RESOURCE_ZH_WW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + // range: this.range + range: STRING_1_ZH_WW + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0830 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0840.ets new file mode 100644 index 0000000000000000000000000000000000000000..8b02f8dd2f0d5a2e3b8eb10a97916a59de9787a0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0840.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0840 { + @State range: TextCascadePickerRangeContent[] = CASCADE_ZH_ZW; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("TextCascadePickerRangeContent[]").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0840 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0850.ets new file mode 100644 index 0000000000000000000000000000000000000000..890a8d738e9dae7fb1ee670e6e15c287f805b7ad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0850.ets @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_WW, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0850 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[] = STRING_1_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0850 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0860.ets new file mode 100644 index 0000000000000000000000000000000000000000..ab4c127ab9162da938cd8554564bdc3d75f2a642 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0860.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0860 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextPickerRangeContent[] = IMAGE_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0860 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0870.ets new file mode 100644 index 0000000000000000000000000000000000000000..cbcbe4bff84bdb38de0d5e1ae798d678fa5347e8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0870.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0870 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[][] = STRING_2_ZH_WW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0870 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0880.ets new file mode 100644 index 0000000000000000000000000000000000000000..b67e1790e18d82cee684d0007a1597edec4f1ad0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0880.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_JT, + RESOURCE_ZH_WW, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_JT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0880 { + @State range: Resource = RESOURCE_ZH_JT; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("Resource").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + // range: this.range, + range: STRING_1_ZH_JT, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0880 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0890.ets new file mode 100644 index 0000000000000000000000000000000000000000..364dcb7da410853ca29f2298051031055478af0b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0890.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0890 { + @State range: string[][] = STRING_2_ZH_WW; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("string[][]").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0890 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0900.ets new file mode 100644 index 0000000000000000000000000000000000000000..5d79ffe785daea9d5ea87bea27c18684dd4f735f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0900.ets @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_WW, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0900 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: Resource = RESOURCE_ZH_WW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + // range: this.range + range: STRING_1_ZH_WW + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0900 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0910.ets new file mode 100644 index 0000000000000000000000000000000000000000..990fd30bc98b7b4d6cc1e847c63772fb709073c0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0910.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0910 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[][] = STRING_2_ZH_ZW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0910 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0920.ets new file mode 100644 index 0000000000000000000000000000000000000000..7dc88199659ab065f25a30596ed3255d02477623 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0920.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_JT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0920 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextCascadePickerRangeContent[] = CASCADE_ZH_ZW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0920 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0930.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c238b64d6bf18cad95027989c854b9d64bb8804 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0930.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_WW, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0930 { + @State range: Resource = RESOURCE_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("Resource").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0930 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0940.ets new file mode 100644 index 0000000000000000000000000000000000000000..6662f974a927aef6036f8b864b78fefc940a9089 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0940.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0940 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[][] = STRING_2_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0940 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0950.ets new file mode 100644 index 0000000000000000000000000000000000000000..f9872275801f656d55e4c73aaa97684303410d8e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0950.ets @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_WW, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0950 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: Resource = RESOURCE_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + // range: this.range + range: STRING_1_EN + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0950 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0960.ets new file mode 100644 index 0000000000000000000000000000000000000000..b68376cc0e2ea459b56d86da354ad643a4a7d572 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0960.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_JT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0960 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextPickerRangeContent[] = IMAGE_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0960 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0970.ets new file mode 100644 index 0000000000000000000000000000000000000000..1a232126b1fbbfe4f396f016b419342e4bca2292 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0970.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0970 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: string[][] = STRING_2_EN; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Auto").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Auto; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0970 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0980.ets new file mode 100644 index 0000000000000000000000000000000000000000..343fcef61e6cfa6c2398ebf700362891a05eb5a0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0980.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. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_JT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0980 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: TextPickerRangeContent[] = IMAGE_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Ltr").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Ltr; + }) + } + + if (this.showPicker) { + TextPicker({ + range: this.range + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0980 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0990.ets new file mode 100644 index 0000000000000000000000000000000000000000..d3fd44a19f2367fd72df118b258c3cf44bbd591e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0990.ets @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Logger from '../../../test/model/Logger'; +import { + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage0990 { + @State showPicker: boolean = false; + @State customDirection: Direction = Direction.Ltr; + @State range: Resource = RESOURCE_ZH_ZW; + + build() { + Column() { + Row() { + Button("TextPicker").id('ShowTextPicker').onClick(() => { + this.showPicker = true; + }) + Button("direction:Rtl").id('direction_bt').margin({ left: 20 }).onClick(() => { + this.customDirection = Direction.Rtl; + }) + } + + if (this.showPicker) { + TextPicker({ + // range: this.range + range: STRING_1_ZH_ZW + }).id('TextPicker') + .direction(this.customDirection) + .onChange((value, index) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_0990 onChange: value=${value}, index= ${index}`); + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage1000.ets new file mode 100644 index 0000000000000000000000000000000000000000..284fcff93dc7e211f6b05ded0aa1c07c416a091c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage1000.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 Logger from '../../../test/model/Logger'; +import { + CASCADE_EN, + CASCADE_ZH_FT, + CASCADE_ZH_JT, + CASCADE_ZH_WW, + CASCADE_ZH_ZW, + IMAGE_EN, + IMAGE_ZH_FT, + IMAGE_ZH_WW, + RESOURCE_EN, + RESOURCE_ZH_FT, + RESOURCE_ZH_JT, + RESOURCE_ZH_WW, + RESOURCE_ZH_ZW, + STRING_1_EN, + STRING_1_ZH_FT, + STRING_1_ZH_JT, + STRING_1_ZH_WW, + STRING_1_ZH_ZW, + STRING_2_EN, + STRING_2_ZH_FT, + STRING_2_ZH_JT, + STRING_2_ZH_WW, + STRING_2_ZH_ZW +} from './Commons'; + +@Entry +@Component +struct UIComponentButtonTextPickerMirrorImage1000 { + @State range: string[][] = STRING_2_ZH_FT; + + build() { + Column() { + Row() { + Button("TextPickerDialog").id('ShowTextPicker').onClick(() => { + }) + Button("string[][]").id('direction_bt').margin({ left: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + onChange: (value) => { + Logger.info('TEST', + `SUB_ACE_UI_COMPONENT_BUTTON_TEXTPICKER_MIRRORIMAGE_1000 nChange: value=${JSON.stringify(value.value)}, index= ${JSON.stringify(value.index)}`); + } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..fa4773261b75297f5e0b8967272d82f83e591e89 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0010.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerOverBoundaryRebound0010 { + @State range: string[] = ["香蕉", "苹果"]; + + build() { + Stack() { + TextPicker({ + range: this.range + }).id('TextPicker') + .canLoop(false) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..c774a919d21089e9c9af81fcc37a7b8ee57cf7d3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0020.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTextPickerOverBoundaryRebound0020 { + @State range: string[] = getContext().resourceManager.getStringArrayValueSync($r('app.strarray.swipeSize2')); + + build() { + Stack() { + TextPicker({ + range: this.range + }).id('TextPicker') + .canLoop(false) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..45b49c38d803aaf3545643a591c1d3e25e3c6c5c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0030.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 UIComponentButtonTextPickerOverBoundaryRebound0030 { + @State range: TextPickerRangeContent[] = [ + { + icon: 'cat.jpg', + text: "香蕉" + }, + { + icon: 'cat.jpg', + text: "苹果" + }, + ]; + + build() { + Stack() { + TextPicker({ + range: this.range + }).id('TextPicker') + .canLoop(false) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..b07e660e0be222f0a1a6c962371da10d6da0f769 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0040.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 UIComponentButtonTextPickerOverBoundaryRebound0040 { + @State range: string[][] = [ + ["test 1", "test 2"], + ["测试 1", "测试 2"] + ]; + + build() { + Stack() { + TextPicker({ + range: this.range + }).id('TextPicker') + .canLoop(false) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..7dac929d196a3bab2ff012baddddd7adcc3f94cb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0050.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 UIComponentButtonTextPickerOverBoundaryRebound0050 { + @State range: TextCascadePickerRangeContent[] = [ + { + text: '水果', + children: [ + { text: '菠蘿' }, + { text: '蘋果' } + ] + }, + { + text: '家電', + children: [ + { text: '電視機' }, + { text: '電冰箱' } + ] + }, + { + text: '數字', + children: [ + { text: '壹' }, + { text: '貳' }, + { text: '叁' }, + ] + } + ]; + + build() { + Stack() { + TextPicker({ + range: this.range + }).id('TextPicker') + .canLoop(false) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerEvent/UIComponentButtonTimepickerEvent0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerEvent/UIComponentButtonTimepickerEvent0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..53d2793cf790f134d65ae06b2ac17f9cbc38a044 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerEvent/UIComponentButtonTimepickerEvent0020.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +@Entry +@Component +struct UIComponentButtonTimepickerEvent0020 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + onChange: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + AlertDialog.show({ + message: JSON.stringify(value), + autoCancel: true, + }) + } + }, + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + .id('showButton') + }.width('100%').height('100%').id('page') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..da837add69c9bafc21dd9f533e88f06923fcccdd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0010.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 UIComponentButtonTimepickerInterface0010 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .useMilitaryTime(false) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..4e152bd15ace6afb6fcc29cf540095430d71e043 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0020.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 UIComponentButtonTimepickerInterface0020 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .useMilitaryTime(true) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..bbafe60884022995f7a33f88fe9e397f9990a5ef --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0030.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 UIComponentButtonTimepickerInterface0030 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .useMilitaryTime(false) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..a570b47c098bcc18883ea32c7de272f21d02bbf8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0110.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 UIComponentButtonTimepickerInterface0110 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..7bf4a251ce1f85e114776571ae11bd4389d57e0e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0130.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 UIComponentButtonTimepickerInterface0130 { + build() { + Row() { + Column() { + TimePicker( + { + selected: new Date('2020-12-25T08:30:00'), + } + ) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..b80c5bc666c385ca2c7556f72500d64c09e9ab93 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0140.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 UIComponentButtonTimepickerInterface0140 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..c9fed3045bdca9d4aeb58cfb6e47da11a897a653 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0150.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 UIComponentButtonTimepickerInterface0150 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..5d36f89ab2af6f2690c0fadf2bc004ebf2916027 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0160.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 UIComponentButtonTimepickerInterface0160 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..49ddb2302b07764406c1757b551dc017b4fd7a6a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0170.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 UIComponentButtonTimepickerInterface0170 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..17d3e996781dada451d59287ebddcf6082cb66db --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0180.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerInterface0180 { + build() { + Column() { + TimePicker( + { + selected: new Date('2020-12-25T08:30:00'), + } + ) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..5e5addc477228d3ab419b09fa837850a21d9f1e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0190.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 UIComponentButtonTimepickerInterface0190 { + build() { + Column() { + TimePicker( + { + selected: new Date('2020-12-25T08:30:00'), + } + ) + .constraintSize({ + minWidth: 300, + maxWidth: 200 + }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..1b322c5319dd8d5993b5930a761badc57ac0246c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0200.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 UIComponentButtonTimepickerInterface0200 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + .constraintSize({ + minHeight: '50%' + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0210.ets new file mode 100644 index 0000000000000000000000000000000000000000..784b3a005312e262c776e1c0c977db87658efd5e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0210.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 UIComponentButtonTimepickerInterface0210 { + build() { + Row() { + Column() { + TimePicker( + { + selected: new Date('2020-12-25T08:30:00'), + } + ) + } + .width('50pv') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..79f73b22a2f5797238131939f27454e188615a1c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0220.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerInterface0220 { + build() { + Column() { + TimePicker( + { + selected: new Date('2020-12-25T08:30:00'), + } + ).height(400) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..78239eede480ecf5a7ddc07ea88e882ea0ff8d90 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0230.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 UIComponentButtonTimepickerInterface0230 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .margin('50%') + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + .border({ width: 2, color: Color.Black }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..3de2e77b94a4780f978cf465a13876a1f7ecadac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0240.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerInterface0240 { + build() { + Column() { + TimePicker( + { + selected: new Date('2020-12-25T08:30:00'), + } + ) + .width(200) + .margin(100) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..d2aface1afa3d819a5fb7617c22b61953382e77f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0250.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerInterface0250 { + build() { + Column() { + TimePicker( + { + selected: new Date('2020-12-25T08:30:00'), + } + ) + .width(300) + .margin(0) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..347305f8a19983591bccafce220b96257a101fad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0260.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 UIComponentButtonTimepickerInterface0260 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .padding(50) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + .backgroundColor(Color.Orange) + .border({ width: 2, color: Color.Black }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..1c51a6a4ce053b3d4306a801d6ccac0d49983a34 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0270.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerInterface0270 { + build() { + Column() { + TimePicker( + { + selected: new Date('2020-12-25T08:30:00'), + } + ) + .width(200) + .padding(100) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..1d08048bd245cb5aa41fcf968d55f1108f87a809 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0280.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 UIComponentButtonTimepickerInterface0280 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .padding(null) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + .backgroundColor(Color.Orange) + .border({ width: 2, color: Color.Black }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..852a98eaf9d89d9a6d9d3eef8c42ef2126353ac8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0290.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 UIComponentButtonTimepickerInterface0290 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .size({ + width: 300, + height: 200 + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..8193cca4a1508b23e7cb147e65469b566b9c0094 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0300.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerInterface0300 { + build() { + Column() { + TimePicker( + { + selected: new Date('2020-12-25T08:30:00'), + } + ) + .width(300) + .backgroundColor('#efefef') + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0310.ets new file mode 100644 index 0000000000000000000000000000000000000000..404065255e6af2399ae0be7739e7918f7e4a182b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0310.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerInterface0310 { + build() { + Column() { + TimePicker( + { + selected: new Date('2020-12-25T08:30:00'), + } + ) + .width(200) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0360.ets new file mode 100644 index 0000000000000000000000000000000000000000..583ebb384fda43c3c3db289af5c27bd1c5af144b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0360.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 UIComponentButtonTimepickerInterface0360 { + @State isMilitaryTime: boolean = false + private selectedTime: Date = new Date('2022-07-22T08:00:00') + + build() { + Row() { + Column() { + Button('切换12小时制/24小时制') + .id('UIComponentButtonTimepickerInterface0360_001') + .margin(30) + .onClick(() => { + this.isMilitaryTime = !this.isMilitaryTime; + }) + TimePicker({ + selected: this.selectedTime, + }) + .useMilitaryTime(this.isMilitaryTime) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0370.ets new file mode 100644 index 0000000000000000000000000000000000000000..b550a06078168bb79cd9755ef46e48bf47e2a526 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0370.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 UIComponentButtonTimepickerInterface0370 { + @State isMilitaryTime: boolean = false + @State selectedTime: Date = new Date('2022-07-22T08:00:00') + + build() { + Row() { + Column() { + Row(){ + Button("+") + .id('button1') + .onClick(() => { + this.selectedTime = new Date('2022-07-22T09:00:00'); + }) + Button("-") + .id('button2') + .onClick(() => { + this.selectedTime = new Date('2022-07-22T07:00:00'); + }) + } + TimePicker({ + selected: this.selectedTime, + }) + } + .width('100%') + .height('100%') + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..49f23962ac7ddbb4b82e3a121a0a63466725ccaf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0010.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0010 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: 'numeric', + minute: 'numeric', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..884b43f41bf98e487113c676fa2643e5dce14492 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0020.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 UIComponentButtonTimepickerNumeric0020 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..b92a0adb90e738adf8a6dda50a47af6c25f25f13 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0030.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0030 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: 'numeric', + minute: 'numeric', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..e75e8c422b2b90b49a0e17d956d739f5feb1173f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0040.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0040 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: '2-digit', + minute: '2-digit', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..953ae2b759ac638e68b27db714e6c1fcbb4c8855 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0050.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 UIComponentButtonTimepickerNumeric0050 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + minute: "numeric", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..7d551ad94a04b7f59c035c1057209e60b938f841 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0060.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 UIComponentButtonTimepickerNumeric0060 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..f95737fda9590795b6cdcc0a1cf118f60829c170 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0070.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0070 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: 'undefined', + minute: 'numeric', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..b64a39dfbf26c4835495a9ce47b411cfacd6b818 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0080.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 UIComponentButtonTimepickerNumeric0080 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "undefined", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..84579d9f201b8264a4b2d55490e881e932abffaa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0090.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 UIComponentButtonTimepickerNumeric0090 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "undefined", + minute: "numeric", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..7047afe5fa7655339ae7a163b34ffa741c8c8f29 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0100.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 UIComponentButtonTimepickerNumeric0100 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "null", + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..09d0fb2c09b0214367bed37093d416e90c3b2ee6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0110.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 UIComponentButtonTimepickerNumeric0110 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: null, + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..a1d2cc1b4f7579d2694e001960435e49abe01877 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0120.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 UIComponentButtonTimepickerNumeric0120 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "null", + minute: "numeric", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..e906573b388da5116a33f0e26815a24875c88647 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0130.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0130 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: '', + minute: '2-digit', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..55e9631b7ff1807ae89a3c1f8c7bf357d9db9d83 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0140.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0140 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: '', + minute: '2-digit', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..815cde610fd1a745a1850cb6ef8265228ad550b6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0150.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0150 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: '', + minute: 'numeric', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..e4eaf4fc5c5f33950d32296454d083352fee699e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0160.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0160 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: '2-digit', + minute: 'numeric', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..d554b91ea7c20ca378503885b0ad148a717a7631 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0170.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0170 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: 'numeric', + minute: '2-digit', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..ec9d04c2b884327d7e3dc1e3048a864109e95e7c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0180.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0180 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: 'null', + minute: '2-digit', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..5892d447b04c49f4cdbf30bd9b40a9e7b8a8cef6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0190.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0190 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: '2-digit', + minute: 'undefined', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..d751d4394aed7a2d529f7cdebb0b567584503d45 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0200.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0200 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: 'numeric', + minute: 'undefined', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0210.ets new file mode 100644 index 0000000000000000000000000000000000000000..ada6dc0d39e1949ad33711966b67dc7fbcae580e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0210.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 UIComponentButtonTimepickerNumeric0210 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "null", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..55fd6c4cf55dd9ebd80c07bff1043183d35f83f8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0220.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 UIComponentButtonTimepickerNumeric0220 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..d5d3983513edf958f146f079f25506fb88804d73 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0230.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 UIComponentButtonTimepickerNumeric0230 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: 'numeric', + minute: 'null', + second: '2-digit' + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..3b7387ff605e8cd716dfbbd0a7096444c5f43efc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0240.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 UIComponentButtonTimepickerNumeric0240 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..bd4b560ff1feb60661efe5923688113d319d823a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0250.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 UIComponentButtonTimepickerNumeric0250 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + minute: "", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..bb8a4a64f0710fc23663409796eeeff9366e75f1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0260.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 UIComponentButtonTimepickerNumeric0260 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..0c597a1bdcbb627f2315efe57424a183c892808f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0270.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 UIComponentButtonTimepickerNumeric0270 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "undefined" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..d9fce0b73fe8472878d7465cb0b5216f42de718c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0280.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 UIComponentButtonTimepickerNumeric0280 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + minute: "numeric", + second: "undefined" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..5ec821dcd6c8d08102a4b2e985f2079eab2233a0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0290.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 UIComponentButtonTimepickerNumeric0290 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: 'numeric', + minute: '2-digit', + second: 'undefined', + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..b3ac04937e3ddf3ff2a26b7b321153893c39d387 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0300.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 UIComponentButtonTimepickerNumeric0300 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "null" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0310.ets new file mode 100644 index 0000000000000000000000000000000000000000..092201408c1dd6904f2cb086d21c2c51dc876112 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0310.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 UIComponentButtonTimepickerNumeric0310 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: '2-digit', + minute: 'numeric', + second: 'null', + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..bcd699ed818f3463df62a807849551afff1dc73a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0320.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 UIComponentButtonTimepickerNumeric0320 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "2-digit", + second: "null" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..288f6ae7ea77dda9e94a2d3e367f0c61e2a24de9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0330.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 UIComponentButtonTimepickerNumeric0330 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..60ebc307c05d1843f42efd2360942a5d3e360b5b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0340.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 UIComponentButtonTimepickerNumeric0340 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + minute: "numeric", + second: "" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0350.ets new file mode 100644 index 0000000000000000000000000000000000000000..d962a5f8b9ed35492c6fa43ad15e88a8704f612c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0350.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 UIComponentButtonTimepickerNumeric0350 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "2-digit", + second: "" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0360.ets new file mode 100644 index 0000000000000000000000000000000000000000..98285502aa956827c899411e648fe3dc149c5d91 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0360.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 UIComponentButtonTimepickerNumeric0360 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({}) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0370.ets new file mode 100644 index 0000000000000000000000000000000000000000..3ccbcfb5673eb3e25d361dfcb69c52c0a83c674c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0370.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 UIComponentButtonTimepickerNumeric0370 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0380.ets new file mode 100644 index 0000000000000000000000000000000000000000..4a96c850877646aa406bb83995c8a70229fd79c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0380.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 UIComponentButtonTimepickerNumeric0380 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0390.ets new file mode 100644 index 0000000000000000000000000000000000000000..364a31080e1a51e38e7216101a1b410da71df521 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0390.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 UIComponentButtonTimepickerNumeric0390 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0400.ets new file mode 100644 index 0000000000000000000000000000000000000000..a7cad115d7c3eeac8533dc11443970d6312a39a1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0400.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 UIComponentButtonTimepickerNumeric0400 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + minute: "2-digit", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0410.ets new file mode 100644 index 0000000000000000000000000000000000000000..14938bcd280e4dad8cf4ce6e242208dbb769a70d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0410.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 UIComponentButtonTimepickerNumeric0410 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: '2-digit', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0420.ets new file mode 100644 index 0000000000000000000000000000000000000000..58cd6e24db6e59a8b9450a3fed43d4c584eb964d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0420.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 UIComponentButtonTimepickerNumeric0420 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions({ + hour: '2-digit', + minute: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0430.ets new file mode 100644 index 0000000000000000000000000000000000000000..b3427bdbe9478986e8a508933a18c9299b913680 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0430.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 UIComponentButtonTimepickerNumeric0430 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .dateTimeOptions(undefined) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0440.ets new file mode 100644 index 0000000000000000000000000000000000000000..22c1a8e7a2b730b06a29994c252575beb22fb534 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0440.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 UIComponentButtonTimepickerNumeric0440 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker(null) + .dateTimeOptions(undefined) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0450.ets new file mode 100644 index 0000000000000000000000000000000000000000..9abe86531b0d962d1a38f865860da6178a70af73 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0450.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 UIComponentButtonTimepickerNumeric0450 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0460.ets new file mode 100644 index 0000000000000000000000000000000000000000..a1982c47d94a2935afa2971e40b110a20dfff6c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0460.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 UIComponentButtonTimepickerNumeric0460 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: 'numeric', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0470.ets new file mode 100644 index 0000000000000000000000000000000000000000..1ad8bf2e84c4d1967d65ddf3f56e1c20cff8f346 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0470.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 UIComponentButtonTimepickerNumeric0470 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: '2-digit', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0480.ets new file mode 100644 index 0000000000000000000000000000000000000000..3799478e18ddbf1e4773b847de71551e693dc89f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0480.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 UIComponentButtonTimepickerNumeric0480 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: 'numeric', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0490.ets new file mode 100644 index 0000000000000000000000000000000000000000..a054f2d31017bdbee35c4ad9dfd6f05cfb40903f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0490.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 UIComponentButtonTimepickerNumeric0490 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '2-digit', + minute: '2-digit', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0500.ets new file mode 100644 index 0000000000000000000000000000000000000000..97404f11fe637203106c8aa3f249825e88bc141e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0500.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 UIComponentButtonTimepickerNumeric0500 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '2-digit', + minute: 'numeric', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0510.ets new file mode 100644 index 0000000000000000000000000000000000000000..fb7a16b4bb1a67871d85ce8bf6bf14f225d5b6a4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0510.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 UIComponentButtonTimepickerNumeric0510 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '2-digit', + minute: '2-digit', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0520.ets new file mode 100644 index 0000000000000000000000000000000000000000..f34a3c48391f6f0c4279659212ae931b5d8a351d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0520.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 UIComponentButtonTimepickerNumeric0520 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'undefined', + minute: 'numeric', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0530.ets new file mode 100644 index 0000000000000000000000000000000000000000..1bb9370026b59bd915cbea1dc9cb5289b87fb4d3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0530.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 UIComponentButtonTimepickerNumeric0530 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "undefined", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0540.ets new file mode 100644 index 0000000000000000000000000000000000000000..d168256076ee463facf612862a1749a9fc671c97 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0540.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 UIComponentButtonTimepickerNumeric0540 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "undefined", + minute: "numeric", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0550.ets new file mode 100644 index 0000000000000000000000000000000000000000..e83e226fa7289e35fb407614e1b510ce1e480885 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0550.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 UIComponentButtonTimepickerNumeric0550 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "null", + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0560.ets new file mode 100644 index 0000000000000000000000000000000000000000..1e59ac1adc0621b8e8ef9b755124ba9b2d9639fd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0560.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 UIComponentButtonTimepickerNumeric0560 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "null", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0570.ets new file mode 100644 index 0000000000000000000000000000000000000000..3d82c40c389833aa88ec4421182417adb89bce47 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0570.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 UIComponentButtonTimepickerNumeric0570 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "null", + minute: "numeric", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0580.ets new file mode 100644 index 0000000000000000000000000000000000000000..3478af8151d8eb8d565532319c766be20a169a63 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0580.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 UIComponentButtonTimepickerNumeric0580 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '', + minute: 'numeric', + second: 'numeric' + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0590.ets new file mode 100644 index 0000000000000000000000000000000000000000..580424935d245d46692ca63408616be56da6a8e3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0590.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 UIComponentButtonTimepickerNumeric0590 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0600.ets new file mode 100644 index 0000000000000000000000000000000000000000..505924581be378e3643fb0855d291b7bc37a262b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0600.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 UIComponentButtonTimepickerNumeric0600 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "", + minute: "numeric", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0610.ets new file mode 100644 index 0000000000000000000000000000000000000000..fe0d3c08e619f76c8c3464b731de4685e56c2a39 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0610.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 UIComponentButtonTimepickerNumeric0610 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "2-digit", + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0620.ets new file mode 100644 index 0000000000000000000000000000000000000000..dbecb8b1ed7253b4d39316c3a1da48526306c032 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0620.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 UIComponentButtonTimepickerNumeric0620 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: '2-digit', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0630.ets new file mode 100644 index 0000000000000000000000000000000000000000..a60b290836af918518e1ec106dbd1b85fa6fa42a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0630.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 UIComponentButtonTimepickerNumeric0630 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: 'undefined', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0640.ets new file mode 100644 index 0000000000000000000000000000000000000000..7bd0c0d3c5f4234c464903d58ce867fa87ef63e2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0640.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 UIComponentButtonTimepickerNumeric0640 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '2-digit', + minute: 'undefined', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0650.ets new file mode 100644 index 0000000000000000000000000000000000000000..0a6e1cffe937c3a2164b144c4f63ef1885c6720e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0650.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 UIComponentButtonTimepickerNumeric0650 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: 'undefined', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0660.ets new file mode 100644 index 0000000000000000000000000000000000000000..3606b11b43a57f0c054271efecccb3568fe96d54 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0660.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 UIComponentButtonTimepickerNumeric0660 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: 'null', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0670.ets new file mode 100644 index 0000000000000000000000000000000000000000..da0ec41cee072df0815a9345e092c17bf044d409 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0670.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 UIComponentButtonTimepickerNumeric0670 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '2-digit', + minute: 'null', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0680.ets new file mode 100644 index 0000000000000000000000000000000000000000..88bbcdb29c8dd456189746a01fc397c58f39c82a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0680.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 UIComponentButtonTimepickerNumeric0680 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: 'null', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0690.ets new file mode 100644 index 0000000000000000000000000000000000000000..c5040cbb38bfc8b64c71be1bcdace8d7bb6b72d7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0690.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 UIComponentButtonTimepickerNumeric0690 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: '', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0700.ets new file mode 100644 index 0000000000000000000000000000000000000000..ba5b0927477a55b3dfeae27209c90f04f30b99c4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0700.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 UIComponentButtonTimepickerNumeric0700 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "2-digit", + minute: "", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0710.ets new file mode 100644 index 0000000000000000000000000000000000000000..987077044d3f17c8708e03dc582536661f4dd826 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0710.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 UIComponentButtonTimepickerNumeric0710 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: '', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0720.ets new file mode 100644 index 0000000000000000000000000000000000000000..51c9d2dfb9fd235e9b6bb901fb8b58a455e33e4a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0720.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 UIComponentButtonTimepickerNumeric0720 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "undefined" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0730.ets new file mode 100644 index 0000000000000000000000000000000000000000..7cc1d7f2c18ddc6d9c9d868cbd8163fd6bcc0cb1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0730.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 UIComponentButtonTimepickerNumeric0730 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '2-digit', + minute: 'numeric', + second: 'undefined' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0740.ets new file mode 100644 index 0000000000000000000000000000000000000000..e2e25624b4bff901ada1168bc80d7fc0a574b707 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0740.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 UIComponentButtonTimepickerNumeric0740 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "2-digit", + second: "undefined" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0750.ets new file mode 100644 index 0000000000000000000000000000000000000000..706ea8927c37e2293f669c4449edf749b71c3443 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0750.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 UIComponentButtonTimepickerNumeric0750 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "null" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0760.ets new file mode 100644 index 0000000000000000000000000000000000000000..8473624333365c7e4f2e5f58ac038e64a54e3eb7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0760.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 UIComponentButtonTimepickerNumeric0760 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '2-digit', + minute: 'numeric', + second: 'null' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0770.ets new file mode 100644 index 0000000000000000000000000000000000000000..af1122a285af35b435bd71e658cdf290f7903520 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0770.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 UIComponentButtonTimepickerNumeric0770 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "2-digit", + second: "null" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0780.ets new file mode 100644 index 0000000000000000000000000000000000000000..1b3044eb4e02ab5e5ac3aca73c54eb8f2b0d4910 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0780.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 UIComponentButtonTimepickerNumeric0780 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0790.ets new file mode 100644 index 0000000000000000000000000000000000000000..4153969472dab995be516b52de2283de63ea1942 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0790.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 UIComponentButtonTimepickerNumeric0790 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "2-digit", + minute: "numeric", + second: "" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0800.ets new file mode 100644 index 0000000000000000000000000000000000000000..f194541f2a523a438c3d724809e89c610d4a8b0a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0800.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 UIComponentButtonTimepickerNumeric0800 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "2-digit", + second: "" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0810.ets new file mode 100644 index 0000000000000000000000000000000000000000..8e5afafc33c77704e2daaf9f385a3f5090420760 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0810.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 UIComponentButtonTimepickerNumeric0810 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({}) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0820.ets new file mode 100644 index 0000000000000000000000000000000000000000..281edb1c4af478e56530541e61b92fee19aa3b9a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0820.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0820 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + minute: 'numeric', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0830.ets new file mode 100644 index 0000000000000000000000000000000000000000..affc104a660767167146bf483297a688471f5d65 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0830.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0830 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0840.ets new file mode 100644 index 0000000000000000000000000000000000000000..d6174ae8bea6a65ab4f1a5259403aac1c4c83fe0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0840.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 UIComponentButtonTimepickerNumeric0840 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0850.ets new file mode 100644 index 0000000000000000000000000000000000000000..433e262a729d9984b3cb96592860227a572a5842 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0850.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 UIComponentButtonTimepickerNumeric0850 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + minute: "2-digit", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0860.ets new file mode 100644 index 0000000000000000000000000000000000000000..235cf3ce5069388dc56115eb63929cb119ddfc74 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0860.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 UIComponentButtonTimepickerNumeric0860 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "2-digit", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0870.ets new file mode 100644 index 0000000000000000000000000000000000000000..6cd95981b57936d0ecc7e7df663b3985d074e866 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0870.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 UIComponentButtonTimepickerNumeric0870 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "2-digit", + minute: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0880.ets new file mode 100644 index 0000000000000000000000000000000000000000..6df87d6ccb6d27166c57f02d3e719491017a5e82 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0880.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 UIComponentButtonTimepickerNumeric0880 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "2-digit", + minute: "null", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0890.ets new file mode 100644 index 0000000000000000000000000000000000000000..be97b00616ba02e4aefbe67aa864331169b4d8f7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0890.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 UIComponentButtonTimepickerNumeric0890 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions(null) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0900.ets new file mode 100644 index 0000000000000000000000000000000000000000..febaf223e72ab67db30ec5033cf24f3bdeba41ff --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0900.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 UIComponentButtonTimepickerNumeric0900 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0910.ets new file mode 100644 index 0000000000000000000000000000000000000000..b29e7d043297f202fcc41d5a3a861b4f2fd88a30 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0910.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 UIComponentButtonTimepickerNumeric0910 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0920.ets new file mode 100644 index 0000000000000000000000000000000000000000..f0fbef0cee708aa4dce47fbe14089fe036e41b92 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0920.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0920 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .dateTimeOptions({ + hour: 'numeric', + minute: '2-digit', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0930.ets new file mode 100644 index 0000000000000000000000000000000000000000..ef7a3664d8bb2f85428823798f8e93b8e9d74934 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0930.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 UIComponentButtonTimepickerNumeric0930 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0940.ets new file mode 100644 index 0000000000000000000000000000000000000000..a2664275da621a7b64caafe514bc069d17590421 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0940.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0940 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .dateTimeOptions({ + hour: '2-digit', + minute: '2-digit', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0950.ets new file mode 100644 index 0000000000000000000000000000000000000000..60ff49f764345a7333153f22e55f8ebc792ed617 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0950.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 UIComponentButtonTimepickerNumeric0950 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + minute: "numeric", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0960.ets new file mode 100644 index 0000000000000000000000000000000000000000..77351c6986a77013f615148065c504e666bf6522 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0960.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 UIComponentButtonTimepickerNumeric0960 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0970.ets new file mode 100644 index 0000000000000000000000000000000000000000..34a65a31c866652fee51f4f789c82d5f999fedcf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0970.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 UIComponentButtonTimepickerNumeric0970 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: undefined, + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0980.ets new file mode 100644 index 0000000000000000000000000000000000000000..8ffd8d06194f0764a13c147aef2aa0c5de4f1f7d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0980.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 UIComponentButtonTimepickerNumeric0980 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: undefined, + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0990.ets new file mode 100644 index 0000000000000000000000000000000000000000..84a586104b1c6135eacfadaea8861c83c375c82b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0990.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric0990 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .dateTimeOptions({ + hour: 'undefined', + minute: 'numeric', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1000.ets new file mode 100644 index 0000000000000000000000000000000000000000..08be1219b729d49807eefe4cb20ba79575937342 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1000.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 UIComponentButtonTimepickerNumeric1000 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "null", + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1010.ets new file mode 100644 index 0000000000000000000000000000000000000000..20ecec4368ad58037370b2b0cd47c1a72552c087 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1010.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 UIComponentButtonTimepickerNumeric1010 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "null", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1020.ets new file mode 100644 index 0000000000000000000000000000000000000000..8bb0e5266ff8fd60c2e668655a538e1825c45ff1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1020.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 UIComponentButtonTimepickerNumeric1020 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "null", + minute: "numeric", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1030.ets new file mode 100644 index 0000000000000000000000000000000000000000..5b625d292376dd1f8c7b4c6da33bb15283224ebe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1030.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 UIComponentButtonTimepickerNumeric1030 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "", + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1040.ets new file mode 100644 index 0000000000000000000000000000000000000000..0ea5f6e8f6e76d024a963ae3c487db34251e08c7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1040.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 UIComponentButtonTimepickerNumeric1040 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1050.ets new file mode 100644 index 0000000000000000000000000000000000000000..30ab6faade646bab79ea92f9db6540529dd6d4b1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1050.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 UIComponentButtonTimepickerNumeric1050 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "", + minute: "numeric", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1060.ets new file mode 100644 index 0000000000000000000000000000000000000000..642b547298e92d05ec3411546d8b9ca3ea4950cf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1060.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 UIComponentButtonTimepickerNumeric1060 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1070.ets new file mode 100644 index 0000000000000000000000000000000000000000..b5e8a8ce97da9f23aa5a3a9aa987aa08f7b1500a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1070.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 UIComponentButtonTimepickerNumeric1070 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "2-digit", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1080.ets new file mode 100644 index 0000000000000000000000000000000000000000..db1d4996cb8052cd08de9f73da42aa135c66bdea --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1080.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 UIComponentButtonTimepickerNumeric1080 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "undefined", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1090.ets new file mode 100644 index 0000000000000000000000000000000000000000..c98230524a6a9e54c7242dd3811b16ca583c2697 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1090.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 UIComponentButtonTimepickerNumeric1090 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + minute: "undefined", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1100.ets new file mode 100644 index 0000000000000000000000000000000000000000..99845bfb871e78d04db466f20545c1873fcbd84c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1100.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 UIComponentButtonTimepickerNumeric1100 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "undefined", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1110.ets new file mode 100644 index 0000000000000000000000000000000000000000..1cd03ccef6f1d780751239279e9cdcb5e2a73666 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1110.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric1110 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .dateTimeOptions({ + hour: 'numeric', + minute: 'null', + second: 'minute' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1120.ets new file mode 100644 index 0000000000000000000000000000000000000000..7d292eb213f5b7b4faae7829f0bb13e80ae1e451 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1120.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 UIComponentButtonTimepickerNumeric1120 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + minute: "null", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1130.ets new file mode 100644 index 0000000000000000000000000000000000000000..b091bbc91d1a3d8effff93948420d774bb398c56 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1130.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 UIComponentButtonTimepickerNumeric1130 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "null", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1140.ets new file mode 100644 index 0000000000000000000000000000000000000000..9b9935f524769b8b2be2061dd23546e87f451624 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1140.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 UIComponentButtonTimepickerNumeric1140 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1150.ets new file mode 100644 index 0000000000000000000000000000000000000000..911c824423dcb12e713640d499eccefd5536b15f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1150.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 UIComponentButtonTimepickerNumeric1150 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + minute: "", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1160.ets new file mode 100644 index 0000000000000000000000000000000000000000..c8d5b7abff6aaa9840799d680b319b63c4d08bf6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1160.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 UIComponentButtonTimepickerNumeric1160 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1170.ets new file mode 100644 index 0000000000000000000000000000000000000000..ab9224383414ee8ee543624305125310e02bbaf0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1170.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 UIComponentButtonTimepickerNumeric1170 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: undefined + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1180.ets new file mode 100644 index 0000000000000000000000000000000000000000..2743e3b0fbe617fdd173293ae1eae548bf5964d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1180.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 UIComponentButtonTimepickerNumeric1180 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + minute: "numeric", + second: "undefined" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1190.ets new file mode 100644 index 0000000000000000000000000000000000000000..5e993f65921b11c27954419233c739772a30de13 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1190.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric1190 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .dateTimeOptions({ + hour: 'numeric', + minute: '2-digit', + second: 'undefined' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1200.ets new file mode 100644 index 0000000000000000000000000000000000000000..77c9601027da1501cdd38487551777c22687c159 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1200.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 UIComponentButtonTimepickerNumeric1200 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "null" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1210.ets new file mode 100644 index 0000000000000000000000000000000000000000..0d52544370a8069e67a4cc7ab56c0a54b5e13841 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1210.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric1210 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .dateTimeOptions({ + hour: '2-digit', + minute: 'numeric', + second: 'null' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1220.ets new file mode 100644 index 0000000000000000000000000000000000000000..cbfbdd0bffe9ce7581fb00836754b5db42496e84 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1220.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 UIComponentButtonTimepickerNumeric1220 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "2-digit", + second: "null" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1230.ets new file mode 100644 index 0000000000000000000000000000000000000000..84d23a31dd795ce7c307398e7d2ef1963883a0c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1230.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 UIComponentButtonTimepickerNumeric1230 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1240.ets new file mode 100644 index 0000000000000000000000000000000000000000..036772579cba62387e061480a8278b0cf272ef0a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1240.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric1240 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .dateTimeOptions({ + hour: '2-digit', + minute: 'numeric', + second: '' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1250.ets new file mode 100644 index 0000000000000000000000000000000000000000..b396ed145cc251d8f3cb3a52dd9b05ad58ec7ff5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1250.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 UIComponentButtonTimepickerNumeric1250 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "2-digit", + second: "" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1260.ets new file mode 100644 index 0000000000000000000000000000000000000000..8352c53f68fa558483c48729ac1bb165ba6fc30f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1260.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 UIComponentButtonTimepickerNumeric1260 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({}) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1270.ets new file mode 100644 index 0000000000000000000000000000000000000000..da1e0fb1baf8336cf518357803fde24224fd4dd9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1270.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 UIComponentButtonTimepickerNumeric1270 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1280.ets new file mode 100644 index 0000000000000000000000000000000000000000..c2fc462a979d8f08e9046108de2cc4cf25d98b98 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1280.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 UIComponentButtonTimepickerNumeric1280 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "", + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1290.ets new file mode 100644 index 0000000000000000000000000000000000000000..50b83076f13add65f91cb2aba21edcd463b4aa3f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1290.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 UIComponentButtonTimepickerNumeric1290 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1300.ets new file mode 100644 index 0000000000000000000000000000000000000000..416c30d6f104b8498ab976f5d440b762a3ffa1ad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1300.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 UIComponentButtonTimepickerNumeric1300 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + minute: "2-digit", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1310.ets new file mode 100644 index 0000000000000000000000000000000000000000..dab3a528f459703d7ab3bcca610722d76c9452dd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1310.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 UIComponentButtonTimepickerNumeric1310 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1320.ets new file mode 100644 index 0000000000000000000000000000000000000000..ed05b2e82e4fa0d6c60d9cfd59a0ab0ff4c1e88e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1320.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 UIComponentButtonTimepickerNumeric1320 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions({ + hour: "2-digit", + minute: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1330.ets new file mode 100644 index 0000000000000000000000000000000000000000..1cb4bd0dd990ce52bfcacc809ec0b2deeff25e54 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1330.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 UIComponentButtonTimepickerNumeric1330 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions(undefined) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1340.ets new file mode 100644 index 0000000000000000000000000000000000000000..c111816e9a833463207a88d521441041719b0c89 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1340.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 UIComponentButtonTimepickerNumeric1340 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + .dateTimeOptions(null) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1350.ets new file mode 100644 index 0000000000000000000000000000000000000000..52be1b3cee1cf574a1faa7ea5f24c9fedb4448dd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1350.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 UIComponentButtonTimepickerNumeric1350 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(false) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1360.ets new file mode 100644 index 0000000000000000000000000000000000000000..4a1b9010b66409fd73fd22a6737dec466863cbe6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1360.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 UIComponentButtonTimepickerNumeric1360 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1370.ets new file mode 100644 index 0000000000000000000000000000000000000000..ce70df7bef1445261567cecd74e8bffe3ae17ec3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1370.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 UIComponentButtonTimepickerNumeric1370 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1380.ets new file mode 100644 index 0000000000000000000000000000000000000000..802e79fe79a844205f55b4e55151fb573c79e98b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1380.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 UIComponentButtonTimepickerNumeric1380 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1390.ets new file mode 100644 index 0000000000000000000000000000000000000000..d8530c16a058cc6199008d293fea6853720108f5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1390.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 UIComponentButtonTimepickerNumeric1390 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "2-digit", + minute: "2-digit", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1400.ets new file mode 100644 index 0000000000000000000000000000000000000000..0e1f7429270821a057aa57d0320e6003f0ed5653 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1400.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 UIComponentButtonTimepickerNumeric1400 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '2-digit', + minute: 'numeric', + second: '2-digit', + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1410.ets new file mode 100644 index 0000000000000000000000000000000000000000..66ccc0504eeb03803480c2054ef2b3e9ccec6d2d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1410.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 UIComponentButtonTimepickerNumeric1410 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "2-digit", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1420.ets new file mode 100644 index 0000000000000000000000000000000000000000..e73c6419ebad4b39a127fe10c4299aeca729ce27 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1420.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 UIComponentButtonTimepickerNumeric1420 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "undefined", + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1430.ets new file mode 100644 index 0000000000000000000000000000000000000000..c45b7c00b060c63435adf40835f9b73e39aeea9a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1430.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 UIComponentButtonTimepickerNumeric1430 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "undefined", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1440.ets new file mode 100644 index 0000000000000000000000000000000000000000..2aa66577428ff4617429696639d648ecb519ad5a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1440.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 UIComponentButtonTimepickerNumeric1440 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'undefined', + minute: 'numeric', + second: '2-digit' + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1450.ets new file mode 100644 index 0000000000000000000000000000000000000000..560cc1b28293c2a0f77563ad6fe3d34ef1d1d194 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1450.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 UIComponentButtonTimepickerNumeric1450 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'null', + minute: 'numeric', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1460.ets new file mode 100644 index 0000000000000000000000000000000000000000..0c84ecb06003b3c12bfbec04d90823466db4b254 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1460.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 UIComponentButtonTimepickerNumeric1460 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "null", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1470.ets new file mode 100644 index 0000000000000000000000000000000000000000..a2561d2d0c5f5792a1322d0dc6049781868400df --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1470.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 UIComponentButtonTimepickerNumeric1470 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'null', + minute: 'numeric', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1480.ets new file mode 100644 index 0000000000000000000000000000000000000000..7518f1ca7907b18c22e146958269e52a94e0168d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1480.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 UIComponentButtonTimepickerNumeric1480 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "", + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1490.ets new file mode 100644 index 0000000000000000000000000000000000000000..6cb77ebe8db91a283c81bb8b5ee535272f05af19 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1490.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 UIComponentButtonTimepickerNumeric1490 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "", + minute: "2-digit", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1500.ets new file mode 100644 index 0000000000000000000000000000000000000000..d9c606d7fccbd6bd93b7c9603fd5988df5260522 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1500.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 UIComponentButtonTimepickerNumeric1500 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "", + minute: "numeric", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1510.ets new file mode 100644 index 0000000000000000000000000000000000000000..76b28f72e1356a9e43d0cbb0cd57b7e58bb8d5b2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1510.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 UIComponentButtonTimepickerNumeric1510 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "2-digit", + minute: "numeric", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1520.ets new file mode 100644 index 0000000000000000000000000000000000000000..8a01afcbd9e28005f2b358da61deaccb9d815bf3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1520.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 UIComponentButtonTimepickerNumeric1520 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "2-digit", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1530.ets new file mode 100644 index 0000000000000000000000000000000000000000..cf543f2239667cff0bb47cf496e7a6d11ef2a4d5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1530.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 UIComponentButtonTimepickerNumeric1530 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "undefined", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1540.ets new file mode 100644 index 0000000000000000000000000000000000000000..a12482c7da538c15969427ee7e2496a64d3bd159 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1540.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 UIComponentButtonTimepickerNumeric1540 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '2-digit', + minute: 'undefined', + second: 'numeric', + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1550.ets new file mode 100644 index 0000000000000000000000000000000000000000..44fadae74d6008711d824ec616e5abbc7ebc75c9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1550.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 UIComponentButtonTimepickerNumeric1550 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "undefined", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1560.ets new file mode 100644 index 0000000000000000000000000000000000000000..aaa7654a493048c3f8620aed6310921794073902 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1560.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 UIComponentButtonTimepickerNumeric1560 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: 'null', + second: 'numeric', + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1570.ets new file mode 100644 index 0000000000000000000000000000000000000000..2f947db32fb58602e7b446b13ce424b008fbcee6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1570.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 UIComponentButtonTimepickerNumeric1570 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "2-digit", + minute: "null", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1580.ets new file mode 100644 index 0000000000000000000000000000000000000000..b87a041f76c7cf9e55f18754273af68e3782c8ba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1580.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 UIComponentButtonTimepickerNumeric1580 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "null", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1590.ets new file mode 100644 index 0000000000000000000000000000000000000000..f897f1251befff58e5d18dc45afac6508caca679 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1590.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 UIComponentButtonTimepickerNumeric1590 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "", + second: "numeric" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1600.ets new file mode 100644 index 0000000000000000000000000000000000000000..1cbc39d508321eb13227a3e9e011e55591164d25 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1600.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 UIComponentButtonTimepickerNumeric1600 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '2-digit', + minute: '', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1610.ets new file mode 100644 index 0000000000000000000000000000000000000000..39f355984771eafd3bf46ead1b8d024e96910f78 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1610.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 UIComponentButtonTimepickerNumeric1610 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "", + second: "2-digit" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1620.ets new file mode 100644 index 0000000000000000000000000000000000000000..65ff09601d9898e7571b4f5c671cca1978c8c515 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1620.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 UIComponentButtonTimepickerNumeric1620 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: 'numeric', + second: 'undefined' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1630.ets new file mode 100644 index 0000000000000000000000000000000000000000..7e9e8c921e706cb4778646d6c4770513052521b1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1630.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 UIComponentButtonTimepickerNumeric1630 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "2-digit", + minute: "numeric", + second: "undefined" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1640.ets new file mode 100644 index 0000000000000000000000000000000000000000..97269a9541f464b33a07f01573508a12b63bfa42 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1640.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 UIComponentButtonTimepickerNumeric1640 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "2-digit", + second: "null" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1650.ets new file mode 100644 index 0000000000000000000000000000000000000000..18331d57e83d4dc9c68be010f1df974e2e5a137b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1650.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 UIComponentButtonTimepickerNumeric1650 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "null" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1660.ets new file mode 100644 index 0000000000000000000000000000000000000000..eae2935b0eb6621af0f7bfa3f0fc39e2e022cf10 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1660.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 UIComponentButtonTimepickerNumeric1660 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "2-digit", + minute: "numeric", + second: "null" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1670.ets new file mode 100644 index 0000000000000000000000000000000000000000..743828b48de8ae17457cd787986589eab8c745cb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1670.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 UIComponentButtonTimepickerNumeric1670 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "2-digit", + second: "null" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1680.ets new file mode 100644 index 0000000000000000000000000000000000000000..2ba709739dd603b3c7eff7c97bd59a834293e3e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1680.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 UIComponentButtonTimepickerNumeric1680 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "numeric", + minute: "numeric", + second: "" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1690.ets new file mode 100644 index 0000000000000000000000000000000000000000..80794b0074ff6229a0d0dc89e73ca501276a77ca --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1690.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 UIComponentButtonTimepickerNumeric1690 { + @State selectTime: Date = new Date('2024-10-22T08:07:06'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: "2-digit", + minute: "numeric", + second: "" + }) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1700.ets new file mode 100644 index 0000000000000000000000000000000000000000..2b5e212889e86018441136eb69dc7d993f83e930 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1700.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 UIComponentButtonTimepickerNumeric1700 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: '2-digit', + second: '' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1710.ets new file mode 100644 index 0000000000000000000000000000000000000000..055900ec6d6034aa9a05bec83aec6224519a6b4c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1710.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 UIComponentButtonTimepickerNumeric1710 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({}) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1720.ets new file mode 100644 index 0000000000000000000000000000000000000000..8bfd901ef9a70c9ac7186521990aa35b9894b9e2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1720.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric1720 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + minute: 'numeric', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1730.ets new file mode 100644 index 0000000000000000000000000000000000000000..7e1f361ab3741208f3777ce89e60b348eece7a8b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1730.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric1730 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + second: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1740.ets new file mode 100644 index 0000000000000000000000000000000000000000..373930225860ab91db82bcb7ce2a51af93543e42 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1740.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric1740 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: 'numeric', + minute: 'numeric' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1750.ets new file mode 100644 index 0000000000000000000000000000000000000000..34d681ffeaadd6acda69f822045c824dce04de95 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1750.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric1750 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '2-digit', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1760.ets new file mode 100644 index 0000000000000000000000000000000000000000..ef3a2ce433f8b74d04dc47035b5283d636f2cedf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1760.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric1760 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '2-digit', + second: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1770.ets new file mode 100644 index 0000000000000000000000000000000000000000..743c218b729d24da21809eec73254e36336d550f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1770.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonTimepickerNumeric1770 { + private selectedTime: Date = new Date('2022-07-22T08:00:00'); + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions({ + hour: '2-digit', + minute: '2-digit' + }) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1780.ets new file mode 100644 index 0000000000000000000000000000000000000000..180031dd9a0e98a32b15fa1a553fc91b47ea91d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1780.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 UIComponentButtonTimepickerNumeric1780 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE_SECOND + }) + .useMilitaryTime(true) + .dateTimeOptions(undefined) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1790.ets new file mode 100644 index 0000000000000000000000000000000000000000..4153985e526c7913714e96161c8e5b5164f2c6d1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1790.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 UIComponentButtonTimepickerNumeric1790 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + .dateTimeOptions(null) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1800.ets new file mode 100644 index 0000000000000000000000000000000000000000..562d5ed5c898869e999978cc59e8f81baba0a7fa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1800.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 UIComponentButtonTimepickerNumeric1800 { + @State selectTime: Date = new Date('2024-10-22T08:07:00'); + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TimePicker({ + selected: this.selectTime, + format: TimePickerFormat.HOUR_MINUTE + }) + .useMilitaryTime(true) + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..55820f579013b03787cdc33b0760b7a6c3d8acbc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0010.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class MyToggleStyle implements ContentModifier { + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle) + } +} + +@Builder +function buildToggle(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn) + Text('当前enabled:' + config.enabled) + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }).id('buildToggle') + .onClick(() => { + config.triggerChange(false); + }) + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0010 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch, isOn: true }) + .enabled(true) + .contentModifier(new MyToggleStyle()) + }.height('100%').width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..070eb56360a30f5e5f55f7c0352674aaf166f757 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0020.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +class MySwitchStyle4 implements ContentModifier { + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle4) + } +} + + +@Builder +function buildToggle4(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn) + Text('当前enabled:' + config.enabled) + Row() { + Toggle({ type: ToggleType.Switch, isOn: null }) + .onClick(() => { + config.triggerChange(false); + }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0020 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch }) + .enabled(true) + .contentModifier(new MySwitchStyle4()) + }.height('100%').width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..e4aea0694a4bb6227fa09b9f9e3455ab796b76e7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0030.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. + */ +class MySwitchStyle10 implements ContentModifier { + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle10) + } +} + +@Builder +function buildToggle10(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn) + Text('当前enabled:' + config.enabled) + Row() { + Toggle({ type: ToggleType.Switch, isOn: undefined }) + .onClick(() => { + config.triggerChange(false) + }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0030 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch }) + .enabled(true) + .contentModifier(new MySwitchStyle10()) + }.height('100%').width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..178fb3ffee9e597003bc0e3c4235d06a2d46e65d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0050.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. + */ +class MySwitchStyle11 implements ContentModifier { + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle11) + } +} + +@Builder +function buildToggle11(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn) + Text('当前enabled:' + config.enabled) + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0050 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch }) + .enabled(undefined) + .contentModifier(new MySwitchStyle11()) + }.height('100%').width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..2f42dbd2d315417140e15e0b4b4c150bcf7ebe0c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0060.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. + */ +class MySwitchStyle3 implements ContentModifier { + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle3) + } +} + +@Builder +function buildToggle3(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn) + Text('当前enabled:' + config.enabled) + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0060 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch }) + .enabled(null) + .contentModifier(new MySwitchStyle3()) + }.height('100%').width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..887009327b2330b006ee4bfdee3787ccfb165ef1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0070.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. + */ +class MySwitchStyle12 implements ContentModifier { + num: number = 123; + + constructor(num: number) { + this.num = num; + } + + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle12) + } +} + +@Builder +function buildToggle12(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn + ' contentModifier:' + + JSON.stringify((config.contentModifier as MySwitchStyle12).num)) + Text('当前enabled:' + config.enabled + ' contentModifier:' + + JSON.stringify((config.contentModifier as MySwitchStyle12).num)) + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0070 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch }) + .contentModifier(new MySwitchStyle12(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/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..afe66802ca8ad53544ef317ccf002ad9e5e685d1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0080.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. + */ +class MySwitchStyle13 implements ContentModifier { + num: number = 123; + + constructor(num: number) { + this.num = num; + } + + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle13) + } +} + +@Builder +function buildToggle13(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn + ' contentModifier:' + + JSON.stringify((config.contentModifier as MySwitchStyle13).num)) + Text('当前enabled:' + config.enabled + ' contentModifier:' + + JSON.stringify((config.contentModifier as MySwitchStyle13).num)) + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0080 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch }) + .contentModifier(new MySwitchStyle13(null)) + }.height('100%').width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..44fe79e57e20a921af4d66394f3464be68fa6b35 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0090.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. + */ +class MySwitchStyle5 implements ContentModifier { + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle5) + } +} + +@Builder +function buildToggle5(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn) + Text('当前enabled:' + config.enabled) + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0090 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch }) + .contentModifier(new MySwitchStyle5()) + }.height('100%').width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..da585c886d43e63288f7c6fa27f37b7b0d27c68e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0100.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. + */ +class MySwitchStyle16 implements ContentModifier { + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle16) + } +} + +@Builder +function buildToggle16(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn) + Text('当前enabled:' + config.enabled) + Row() { + Toggle({ type: ToggleType.Checkbox, isOn: true }) + .onClick(() => { + config.triggerChange(false) + }) + .onChange(() => { + console.log('onChange:232132132132'); + }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0100 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Checkbox }) + .contentModifier(new MySwitchStyle16()) + }.height('100%').width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..939eaf5d3e73808eb6cde5a3966add4a45aa073c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0110.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. + */ +class MySwitchStyle6 implements ContentModifier { + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle6) + } +} + +@Builder +function buildToggle6(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn) + Text('当前enabled:' + config.enabled) + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + .onClick(() => { + config.triggerChange(null) + }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0110 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch }) + .contentModifier(new MySwitchStyle6()) + }.height('100%').width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..28989e60394b8cf5f87170accf6beb1f153f47e8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0120.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. + */ +class MySwitchStyle7 implements ContentModifier { + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle7) + } +} + +@Builder +function buildToggle7(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn) + Text('当前enabled:' + config.enabled) + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + .onClick(() => { + config.triggerChange(undefined) + }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0120 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch }) + .contentModifier(new MySwitchStyle7()) + }.height('100%').width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..af1e7e22f57d32526ccf86dbc34781b55845133a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0130.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. + */ +class MySwitchStyle9 implements ContentModifier { + num: number = 123; + + constructor(num: number) { + this.num = num; + } + + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle9) + } +} + +@Builder +function buildToggle9(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn + ' contentModifier:' + + JSON.stringify((config.contentModifier as MySwitchStyle9).num)) + Text('当前enabled:' + config.enabled + ' contentModifier:' + + JSON.stringify((config.contentModifier as MySwitchStyle9).num)) + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0130 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch }) + .contentModifier(new MySwitchStyle9(123465)) + }.height('100%').width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..5f667064a538d04b2963e8a2f52668819868a30b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0140.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. + */ +class MySwitchStyle8 implements ContentModifier { + num: number = 123; + + constructor(num: number) { + this.num = num; + } + + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle8) + } +} + +@Builder +function buildToggle8(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn + ' contentModifier:' + + JSON.stringify((config.contentModifier as MySwitchStyle8).num)) + Text('当前enabled:' + config.enabled + ' contentModifier:' + + JSON.stringify((config.contentModifier as MySwitchStyle8).num)) + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0140 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch }) + .contentModifier(new MySwitchStyle8(-10.55555)) + }.height('100%').width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..dafeb418aee79d682d3554b7993b71c6870b9516 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0150.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. + */ +class MySwitchStyle2 implements ContentModifier { + text: string = 'string'; + + constructor(text: string) { + this.text = text; + } + + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle2) + } +} + +@Builder +function buildToggle2(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn + ' contentModifier:' + + JSON.stringify((config.contentModifier as MySwitchStyle2).text)) + Text('当前enabled:' + config.enabled + ' contentModifier:' + + JSON.stringify((config.contentModifier as MySwitchStyle2).text)) + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0150 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch }) + .contentModifier(new MySwitchStyle2('嘻嘻哈哈&-…%%')) + }.height('100%').width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..f6d34a5bcef8273410ce84b1801731d021ecf11b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0170.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. + */ +class MySwitchStyle14 implements ContentModifier { + applyContent(): WrappedBuilder<[ToggleConfiguration]> { + return wrapBuilder(buildToggle14) + } +} + +@Builder +function buildToggle14(config: ToggleConfiguration) { + Column({ space: 50 }) { + Text('当前isOn:' + config.isOn) + Text('当前enabled:' + config.enabled) + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + .id('buildToggle') + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleCustomizing0170 { + build() { + Column({ space: 50 }) { + Toggle({ type: ToggleType.Switch }) + .contentModifier(new MySwitchStyle14()) + .contentModifier(new MySwitchStyle14()) + }.height('100%').width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleEvent/UIComponentButtonToggleEvent0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleEvent/UIComponentButtonToggleEvent0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..a2c886d371840b410f24591a44cf981783e7aefe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleEvent/UIComponentButtonToggleEvent0010.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 UIComponentButtonToggleEvent010 { + @State Size: number = 40 + + build() { + Column() { + Button('切换fontSize数值').id('Button').onClick(() => { + if (this.Size === 40) { + this.Size = 30 + } else if (this.Size === 30) { + this.Size = 20 + } else if (this.Size === 20) { + this.Size = 60 + } + }) + Row() { + Toggle({ type: ToggleType.Button }) { + Text('Toggle Button') + .fontSize(this.Size) + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..ba7936385a3ebf3e02bdffb0aabffe2cab1c23bd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0010.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentButtonToggleInteraction0010 { + @State stateA: boolean = true; + @State stateB: boolean = true; + @State stateC: boolean = true; + + build() { + Column() { + Toggle({ type: ToggleType.Checkbox, isOn: this.stateA }).id("toggle_1") + .onChange((isOn) => { + this.stateA = isOn + }) + Toggle({ type: ToggleType.Switch, isOn: this.stateB }).id("toggle_2") + .onChange((isOn) => { + this.stateB = isOn + }) + Toggle({ type: ToggleType.Button, isOn: this.stateC }) { + Text('status button').fontColor(Color.Gray).fontSize(12).padding(10) + }.id("toggle_3") + .onChange((isOn) => { + this.stateC = isOn + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..190b1151ae92e594fe88bc45a93154765cf5fa76 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0020.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 UIComponentButtonToggleInteraction0020 { + @State stateA: boolean = true; + @State stateB: boolean = true; + @State stateC: boolean = true; + + build() { + Column() { + Toggle({ type: ToggleType.Checkbox, isOn: this.stateA }).id("toggle_1") + .onChange((isOn) => { + this.stateA = isOn + }) + Toggle({ type: ToggleType.Switch, isOn: this.stateB }).id("toggle_2") + .onChange((isOn) => { + this.stateB = isOn + }) + Toggle({ type: ToggleType.Button, isOn: this.stateC }) { + Text('status button').fontColor(Color.Gray).fontSize(12).padding(10) + }.id("toggle_3") + .onChange((isOn) => { + this.stateC = isOn + }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..588ae2956a90f6d38967bc62221264585e9db8f5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0030.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 UIComponentButtonToggleInteraction0030 { + @State stateA: boolean = true; + @State stateB: boolean = true; + @State stateC: boolean = true; + + build() { + Column() { + Toggle({ type: ToggleType.Checkbox, isOn: this.stateA }).id("toggle_1") + .onChange((isOn) => { + this.stateA = isOn + }) + Toggle({ type: ToggleType.Switch, isOn: this.stateB }).id("toggle_2") + .onChange((isOn) => { + this.stateB = isOn + }) + Toggle({ type: ToggleType.Button, isOn: this.stateC }) { + Text('status button').fontColor(Color.Gray).fontSize(12).padding(10) + }.id("toggle_3") + .onChange((isOn) => { + this.stateC = isOn + }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..6c4a1e4929efe52210ce2a38b03395f505159065 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0010.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonToggleInterface0010 { + @State testIsOn: boolean = false + + onPageShow() { + let intervalID = setInterval(() => { + this.testIsOn = true + clearInterval(intervalID) + }, 600) + } + + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Button, isOn: this.testIsOn }) { + Text('Toggle Button') + } + .switchPointColor(Color.Pink) + + Toggle({ type: ToggleType.Checkbox, isOn: this.testIsOn }) + .switchPointColor(Color.Pink) + + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..cebc9ae08d107020fcf7974f2545f5bc3836c686 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0040.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 UIComponentButtonToggleInterface0040 { + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Button }) { + Text('Toggle Button') + } + .margin({ + top: "12px", + right: "12px", + bottom: "12px", + left: "12px" + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..37c2f36073d5ba8831280b2b60965b1ceb5ae511 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0070.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 UIComponentButtonToggleInterface0070 { + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch }) + .margin({ + top: "6px", + right: "14px", + bottom: "6px", + left: "14px" + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..ec432a6a865963cde230d1c53f92952bca41eee5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0170.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 UIComponentButtonToggleInterface0170 { + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + .selectedColor(undefined) + Toggle({ type: ToggleType.Button, isOn: true }) { + Text('Toggle Button') + } + .selectedColor(undefined) + + Toggle({ type: ToggleType.Checkbox, isOn: true }) + .selectedColor(undefined) + } + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..8b71e71cac9db260448ac8adcb916ae21a7d12bd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0220.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 UIComponentButtonToggleInterface0220 { + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch, isOn: null }) + Toggle({ type: ToggleType.Button, isOn: null }) { + Text('Toggle Button') + } + + Toggle({ type: ToggleType.Checkbox, isOn: null }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..f4da750ceb5de4b76426bb2f59621469526dfd8f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0230.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 UIComponentButtonToggleInterface0230 { + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch, isOn: undefined }) + Toggle({ type: ToggleType.Button, isOn: undefined }) { + Text('Toggle Button') + } + + Toggle({ type: ToggleType.Checkbox, isOn: undefined }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..55c5452a561c5512ecdffb564ebe1614b521d959 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0250.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 UIComponentButtonToggleInterface0250 { + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + .margin(null) + Toggle({ type: ToggleType.Button, isOn: true }) { + Text('Toggle Button') + } + .margin(null) + + Toggle({ type: ToggleType.Checkbox, isOn: true }) + .margin(null) + } + } + .width('100%') + .height('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..319b90643bfa0bbb13b43093e1bc558843602533 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0330.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonToggleInterface0330 { + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch }) + .switchPointColor(undefined) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..13a0b4644e0548396ff383f384df77abbd63f8a0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0010.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 i18n from '@ohos.i18n'; + +@Entry +@Component +struct UIComponentButtonToggleMirror0010 { + @State testIsOn: boolean = false + + onPageShow() { + i18n.System.setAppPreferredLanguage("ug"); + this.testIsOn = true + } + + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch, isOn: this.testIsOn }) + Toggle({ type: ToggleType.Button }) { + Text('Toggle Button') + } + + Toggle({ type: ToggleType.Checkbox }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..15c8c067efde554675c17209bca8d724ecc1966e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0030.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 i18n from '@ohos.i18n'; + +@Entry +@Component +struct UIComponentButtonToggleMirror0030 { + @State testIsOn: boolean = false + + build() { + Column() { + Button('维吾尔语').id('Button').onClick(() => { + i18n.System.setAppPreferredLanguage("ug"); + this.testIsOn = true + }) + + + Row() { + Toggle({ type: ToggleType.Switch, isOn: this.testIsOn }) + Toggle({ type: ToggleType.Button }) { + Text('Toggle Button') + } + + Toggle({ type: ToggleType.Checkbox }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..46dae84f65c481fc47672a110d4dc3b88f7d58ba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0070.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 i18n from '@ohos.i18n'; +import screenLock from '@ohos.screenLock'; + +@Entry +@Component +struct UIComponentButtonToggleMirror0070 { + @State testIsOn: boolean = false + + onPageShow() { + i18n.System.setAppPreferredLanguage("ug"); + + this.testIsOn = true + setTimeout(() => { + screenLock.lock().then(() => { + }) + }, 450) + setTimeout(() => { + screenLock.unlock().then(() => { + }) + }, 455) + } + + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch, isOn: this.testIsOn }) + Toggle({ type: ToggleType.Button }) { + Text('Toggle Button') + } + + Toggle({ type: ToggleType.Checkbox }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..c4795854eab44f2ca9aa3932c0482daa8adac3fa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0090.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import i18n from '@ohos.i18n'; + +class MyToggleModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: ToggleAttribute): void { + if (this.isDark) { + instance.backgroundColor(Color.Red) + } else { + instance.backgroundColor(Color.Black) + } + } +} + +@Entry +@Component +struct UIComponentButtonToggleMirror0090 { + @State testIsOn: boolean = false + @State modifier: MyToggleModifier = new MyToggleModifier() + + aboutToAppear() { + i18n.System.setAppPreferredLanguage("ug"); + } + + onPageShow() { + this.modifier.isDark = !this.modifier.isDark + this.testIsOn = true + } + + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch, isOn: this.testIsOn }) + .attributeModifier(this.modifier) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..4701d8c1f7259a558ef2bd2a7911026cca375ec1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0100.ets @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import i18n from '@ohos.i18n'; + +@Entry +@Component +struct UIComponentButtonToggleMirror0100 { + @State DirectionType: Direction = Direction.Ltr + + aboutToAppear(): void { + i18n.System.setAppPreferredLanguage("ug"); + } + + build() { + Column() { + Button('设置direction属性') + .onClick(() => { + this.toggleDirection(); + }) + .id('Button') + + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + Toggle({ type: ToggleType.Button, isOn: true }) { + Text('Toggle Button') + } + + Toggle({ type: ToggleType.Checkbox, isOn: true }) + } + .direction(this.DirectionType) + .width('100%') + .height('100%') + } + } + + toggleDirection() { + if (this.DirectionType == Direction.Rtl) { + this.DirectionType = Direction.Auto + } else if (this.DirectionType == Direction.Auto) { + this.DirectionType = Direction.Ltr + } else { + this.DirectionType = Direction.Rtl + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..5091337892e699f05b44c96cadbb615b74e81672 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0110.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 i18n from '@ohos.i18n'; + +@Entry +@Component +struct UIComponentButtonToggleMirror0110 { + @State DirectionType: Direction = Direction.Ltr + + aboutToAppear() { + i18n.System.setAppPreferredLanguage("ug"); + } + + build() { + Column() { + Button('设置direction属性').id('Button').onClick(() => { + if (this.DirectionType == Direction.Rtl) { + this.DirectionType = Direction.Auto + } else if (this.DirectionType == Direction.Auto) { + this.DirectionType = Direction.Ltr + } else { + this.DirectionType = Direction.Rtl + } + }) + + + Row() { + Toggle({ type: ToggleType.Button, isOn: true }) { + Text('Toggle Button') + .direction(this.DirectionType) + .width('30%') + .height('10%') + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..55cece243f1652f094679b931e0c4665d99af0af --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0120.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 i18n from '@ohos.i18n'; + +@Entry +@Component +struct UIComponentButtonToggleMirror0120 { + @State testIsOn: boolean = false + + aboutToAppear() { + i18n.System.setAppPreferredLanguage("ug"); + } + + onPageShow() { + this.testIsOn = true + } + + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch, isOn: this.testIsOn }) + .margin({ left: 10 }) + } + .margin(10) + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..c17ae0649a481d692af577ee4e2e3030030c4d42 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0130.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 i18n from '@ohos.i18n'; + +@Entry +@Component +struct UIComponentButtonToggleMirror0130 { + @State testIsOn: boolean = false + + aboutToAppear() { + i18n.System.setAppPreferredLanguage("ug"); + } + + onPageShow() { + this.testIsOn = true + } + + build() { + Column() { + Row() { + Toggle({ type: ToggleType.Switch, isOn: this.testIsOn }) + .padding({ left: 10 }) + } + .padding(10) + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..196eb858cf0341556fa8f1d9746ff58c7d925347 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0140.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 i18n from '@ohos.i18n'; + +@Entry +@Component +struct UIComponentButtonToggleMirror0140 { + languages: string[] = ['ug', 'zh', 'en', 'bo', 'zh-Hant']; + i = 0 + + build() { + Column() { + Button('切换语言').id('Button').onClick(() => { + i18n.System.setAppPreferredLanguage(this.languages[this.i]); + this.i += 1 + }) + Row() { + Toggle({ type: ToggleType.Switch, isOn: true }) + Toggle({ type: ToggleType.Button }) { + Text('Toggle Button') + } + + Toggle({ type: ToggleType.Checkbox }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentContainerSpanInterface/UIComponentContainerSpanInterface002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentContainerSpanInterface/UIComponentContainerSpanInterface002.ets new file mode 100644 index 0000000000000000000000000000000000000000..a2a13be106cd97bde66051b10e94c562caa1712d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentContainerSpanInterface/UIComponentContainerSpanInterface002.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 UIComponentContainerSpanInterface002 { + build() { + Column() { + Text('ContainerSpan无width和height,和onClick属性,代码报错') + .fontColor(Color.Red) + Image('testability/resources/containerspan_width_error.png') + .width('100%') + Image('testability/resources/containerspan_height_error.png') + .width('100%') + Image('testability/resources/containerspan_click_error.png') + .width('100%') + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..010c73a779d93064673d6c27761628083f623421 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0020.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0020 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + useMilitaryTime: false, + format: TimePickerFormat.HOUR_MINUTE_SECOND, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)) + } + }) + } + + aboutToAppear(): void { + try { + //简体中文 + i18n.System.setAppPreferredLanguage('zh-Hans') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..af7d3281b3b88b229c121d643809025501853220 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0030.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 i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0030 { + aboutToAppear(): void { + try { + //维吾尔文 + i18n.System.setAppPreferredLanguage('ug') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column({ space: 20 }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00'), + format: TimePickerFormat.HOUR_MINUTE_SECOND, + }) + .id('TimePicker') + .useMilitaryTime(false) + .disappearTextStyle({ color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }) + .textStyle({ color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }) + .selectedTextStyle({ color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }) + .onChange((value: TimePickerResult) => { + console.info("TimePicker:onChange()" + JSON.stringify(value)) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..9202d18763be503c362dcfd79de643fa22db757d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0040.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. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0040 { + aboutToAppear(): void { + try { + //简体中文 + i18n.System.setAppPreferredLanguage('zh-Hans') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column({ space: 20 }) { + + Button('切换语言为英文') + .id('ChangeAppLanguage') + .onClick(() => { + try { + //英文 + i18n.System.setAppPreferredLanguage('en-Latn-US') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + }) + + TimePicker({ + selected: new Date('2020-12-25T08:30:00'), + format: TimePickerFormat.HOUR_MINUTE_SECOND, + }) + .id('TimePicker') + .useMilitaryTime(false) + .disappearTextStyle({ color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }) + .textStyle({ color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }) + .selectedTextStyle({ color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }) + .onChange((value: TimePickerResult) => { + console.info("TimePicker:onChange()" + JSON.stringify(value)) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..629d4a082ca55c95c3c0d173a7b12dae52f0fcbc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0050.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 i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0050 { + aboutToAppear(): void { + try { + //藏文 + i18n.System.setAppPreferredLanguage('bo') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column({ space: 20 }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00'), + format: TimePickerFormat.HOUR_MINUTE, + }) + .id('TimePicker') + .useMilitaryTime(true) + .disappearTextStyle({ color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }) + .textStyle({ color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }) + .selectedTextStyle({ color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }) + .onChange((value: TimePickerResult) => { + console.info("TimePicker:onChange()" + JSON.stringify(value)) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..32ac7b3b5464fa57ad5040be27f8688dda8bfcf1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0060.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0060 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + useMilitaryTime: false, + format: TimePickerFormat.HOUR_MINUTE_SECOND, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)) + } + }) + } + + aboutToAppear(): void { + try { + //藏文 + i18n.System.setAppPreferredLanguage('bo') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..f4391ffbd9a96f0ead430f79c75cf35c484ce6f6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0070.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0070 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + useMilitaryTime: false, + format: TimePickerFormat.HOUR_MINUTE_SECOND, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)) + } + }) + } + + aboutToAppear(): void { + try { + //维吾尔文 + i18n.System.setAppPreferredLanguage('ug') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..870bfe7a5c70627a0059aa847e828a4e061a96cc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0080.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 i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0080 { + aboutToAppear(): void { + try { + //藏文 + i18n.System.setAppPreferredLanguage('bo') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column({ space: 20 }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00'), + format: TimePickerFormat.HOUR_MINUTE_SECOND, + }) + .id('TimePicker') + .useMilitaryTime(false) + .disappearTextStyle({ color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }) + .textStyle({ color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }) + .selectedTextStyle({ color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }) + .onChange((value: TimePickerResult) => { + console.info("TimePicker:onChange()" + JSON.stringify(value)) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..644d6649231977ab1d374bd7a227ebc4a0885ff1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0090.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. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0090 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + useMilitaryTime: true, + format: TimePickerFormat.HOUR_MINUTE, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)) + } + }) + } + + aboutToAppear(): void { + try { + //简体中文 + i18n.System.setAppPreferredLanguage('zh-Hans') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column({ space: 20 }) { + + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + + Button('切换语言为英文') + .id('ChangeAppLanguage') + .onClick(() => { + try { + //英文 + i18n.System.setAppPreferredLanguage('en-Latn-US') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..d45739b80e8ee1f0477af74803dbc114d07c0ed5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0100.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0100 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + useMilitaryTime: false, + format: TimePickerFormat.HOUR_MINUTE_SECOND, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)) + } + }) + } + + aboutToAppear(): void { + try { + //繁体中文 + i18n.System.setAppPreferredLanguage('zh-Hant') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..32e0956ed6cac5d69bdf8a5a5ba1427e3d15bdb5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0110.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. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0110 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + useMilitaryTime: false, + format: TimePickerFormat.HOUR_MINUTE_SECOND, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)) + } + }) + } + + aboutToAppear(): void { + try { + //简体中文 + i18n.System.setAppPreferredLanguage('zh-Hans') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column({ space: 20 }) { + + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + + Button('切换语言为英文') + .id('ChangeAppLanguage') + .onClick(() => { + try { + //英文 + i18n.System.setAppPreferredLanguage('en-Latn-US') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..1abe9a88439f2c4a82fc9b92666ecd411d1ad469 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0120.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0120 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + useMilitaryTime: true, + format: TimePickerFormat.HOUR_MINUTE, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)) + } + }) + } + + aboutToAppear(): void { + try { + //繁体中文 + i18n.System.setAppPreferredLanguage('zh-Hant') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..edc1dd617746b54f89c03a4ea20fc132bd526f28 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0130.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 i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0130 { + aboutToAppear(): void { + try { + //简体中文 + i18n.System.setAppPreferredLanguage('zh-Hans') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column({ space: 20 }) { + TimePicker({ + selected: new Date('2022-07-22T08:30:00'), + format: TimePickerFormat.HOUR_MINUTE_SECOND, + }) + .id('TimePicker') + .useMilitaryTime(false) + .disappearTextStyle({ color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }) + .textStyle({ color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }) + .selectedTextStyle({ color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }) + .onChange((value: TimePickerResult) => { + console.info("TimePicker:onChange()" + JSON.stringify(value)) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..2cec680c3ebbc5dac428da6d4c7243177c03bddf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0140.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 i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0140 { + aboutToAppear(): void { + try { + //英文 + i18n.System.setAppPreferredLanguage('en-Latn-US') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column({ space: 20 }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00'), + format: TimePickerFormat.HOUR_MINUTE_SECOND, + }) + .id('TimePicker') + .useMilitaryTime(false) + .disappearTextStyle({ color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }) + .textStyle({ color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }) + .selectedTextStyle({ color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }) + .onChange((value: TimePickerResult) => { + console.info("TimePicker:onChange()" + JSON.stringify(value)) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..544ba6d97a08aa732000e200b2d7443709291c16 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0150.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 i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; +import resourceManager from '@ohos.resourceManager'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0150 { + aboutToAppear(): void { + try { + //简体中文 + i18n.System.setAppPreferredLanguage('zh-Hans') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column({ space: 20 }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00'), + format: TimePickerFormat.HOUR_MINUTE, + }) + .id('TimePicker') + .useMilitaryTime(true) + .disappearTextStyle({ color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }) + .textStyle({ color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }) + .selectedTextStyle({ color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }) + .onChange((value: TimePickerResult) => { + console.info("TimePicker:onChange()" + JSON.stringify(value)) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..f43d4e0b811040707db3681280f4ca7bcec0d2cf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0160.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0160 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + useMilitaryTime: true, + format: TimePickerFormat.HOUR_MINUTE, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)) + } + }) + } + + aboutToAppear(): void { + try { + //维吾尔文 + i18n.System.setAppPreferredLanguage('ug') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..08f49780dcf96e1eca66811859494b56661507bb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0170.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 i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0170 { + aboutToAppear(): void { + try { + //繁体中文 + i18n.System.setAppPreferredLanguage('zh-Hant') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column({ space: 20 }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00'), + format: TimePickerFormat.HOUR_MINUTE_SECOND, + }) + .id('TimePicker') + .useMilitaryTime(false) + .disappearTextStyle({ color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }) + .textStyle({ color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }) + .selectedTextStyle({ color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }) + .onChange((value: TimePickerResult) => { + console.info("TimePicker:onChange()" + JSON.stringify(value)) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..942373d4783ddb1075b5b43f2c05ac4696324806 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0180.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0180 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + useMilitaryTime: true, + format: TimePickerFormat.HOUR_MINUTE, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)) + } + }) + } + + aboutToAppear(): void { + try { + //简体中文 + i18n.System.setAppPreferredLanguage('zh-Hans') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..0bfdd25fc90ac74e2a7bab67e1e77ff7691a908f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0190.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0190 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2022-07-22T08:30:00'), + useMilitaryTime: false, + format: TimePickerFormat.HOUR_MINUTE_SECOND, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)) + } + }) + } + + aboutToAppear(): void { + try { + //英文 + i18n.System.setAppPreferredLanguage('en-Latn-US') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..b8707e2f042904cf73888d0a1b85ebc0df809026 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0200.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 i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0200 { + aboutToAppear(): void { + try { + //维吾尔文 + i18n.System.setAppPreferredLanguage('ug') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column({ space: 20 }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00'), + format: TimePickerFormat.HOUR_MINUTE, + }) + .id('TimePicker') + .useMilitaryTime(true) + .disappearTextStyle({ color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }) + .textStyle({ color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }) + .selectedTextStyle({ color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }) + .onChange((value: TimePickerResult) => { + console.info("TimePicker:onChange()" + JSON.stringify(value)) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0210.ets new file mode 100644 index 0000000000000000000000000000000000000000..d6fa3fa3ef4d1d711fd3c26845d805140a28aab5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0210.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. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0040 { + aboutToAppear(): void { + try { + //简体中文 + i18n.System.setAppPreferredLanguage('zh-Hans') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column({ space: 20 }) { + + Button('切换语言为英文') + .id('ChangeAppLanguage') + .onClick(() => { + try { + //英文 + i18n.System.setAppPreferredLanguage('en-Latn-US') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + }) + + TimePicker({ + selected: new Date('2020-12-25T08:30:00'), + format: TimePickerFormat.HOUR_MINUTE, + }) + .id('TimePicker') + .useMilitaryTime(true) + .disappearTextStyle({ color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }) + .textStyle({ color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }) + .selectedTextStyle({ color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }) + .onChange((value: TimePickerResult) => { + console.info("TimePicker:onChange()" + JSON.stringify(value)) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..897ec207ca61e3535cb81cf50a116aff53741299 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0220.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0220 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + useMilitaryTime: true, + format: TimePickerFormat.HOUR_MINUTE, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)) + } + }) + } + + aboutToAppear(): void { + try { + //英文 + i18n.System.setAppPreferredLanguage('en-Latn-US') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..61805fe16f3270e67eabb88f9422a2c3add3c0b6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0230.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 i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0230 { + aboutToAppear(): void { + try { + //繁体中文 + i18n.System.setAppPreferredLanguage('zh-Hant') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column({ space: 20 }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00'), + format: TimePickerFormat.HOUR_MINUTE, + }) + .id('TimePicker') + .useMilitaryTime(true) + .disappearTextStyle({ color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }) + .textStyle({ color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }) + .selectedTextStyle({ color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }) + .onChange((value: TimePickerResult) => { + console.info("TimePicker:onChange()" + JSON.stringify(value)) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..dbdcd45c7a71cdfae32e7542a7957b7363aedaf7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0240.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import i18n from '@ohos.i18n'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentFunctionFormSelectionTimePickerLanguageOrder0240 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + useMilitaryTime: true, + format: TimePickerFormat.HOUR_MINUTE, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)) + } + }) + } + + aboutToAppear(): void { + try { + //藏文 + i18n.System.setAppPreferredLanguage('bo') + } catch (error) { + let err: BusinessError = error as BusinessError; + console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); + } + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..731df36335f401dfcc811cf66ea28f0e5465240c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0030.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0030 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..139d8efc10c4fed5449a618550d492631850c4e5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0040.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0040 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: true + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..f3e97754bc2f55eddfcc416c694e49fcb367aa4a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0080.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0080 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..670cd3281ec9716a683f94995bc3ec6cf4d0133c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0090.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0090 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..1ccab04ef50e22a247946cb878bd1b951849d4b1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0100.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0100 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..d98b0fe36697abee96762cb686f4f4eb72dc5aad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0150.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0150 { + @State range: TextPickerRangeContent[] = [ + { icon: '/testability/pages/images/img.png', text: $r('app.string.abc') }, + { icon: '/testability/pages/images/img.png', text: $r('app.string.span') }, + ]; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..dda39ae911682d2ca18b0f55d88943619e376f9c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0160.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0160 { + @State range: TextPickerRangeContent[] = [ + { icon: '/testability/pages/images/img.png', text: 'abc' }, + { icon: '/testability/pages/images/img.png', text: 'def' }, + ]; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..ffb65491a7226177946320bc58b9778e8ccf6e8a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0170.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0170 { + @State range: TextCascadePickerRangeContent[] = [{ text: 'abc' }, { text: 'def' }]; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..3a57cd9c5b06ab4d1b73b9aa243c95f833dc8d12 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0190.ets @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTextPickerDialogInteraction0010 { + @State range: TextCascadePickerRangeContent[] = [ + { + text: 'a1', + children: [ + { + text: 'a2_1', + children: [ + { text: 'a3_1' }, + { text: 'a3_2' } + ] + }, + { + text: 'a2_2', + children: [ + { text: 'a3_3' }, + { text: 'a3_4' } + ] + } + ] + }, + { + text: 'b1', + children: [ + { + text: 'b2_1', + children: [ + { text: 'b3_1' }, + { text: 'b3_2' } + ] + }, + { + text: 'b2_2', + children: [ + { text: 'b3_3' }, + { text: 'b3_4' } + ] + } + ] + }, + { + text: 'c1', + children: [ + { + text: 'c2_1', + children: [ + { text: 'c3_1' }, + { text: 'c3_2' } + ] + }, + { + text: 'c2_2', + children: [ + { text: 'c3_3' }, + { text: 'c3_4' } + ] + } + ] + } + ]; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..90155241a55cde75dbfcd1cf3a28c366b3799033 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0200.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0200 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1 + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..7d27d3252fd945ecdc4537039bb5946a3dedb6ce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0300.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0300 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + disappearTextStyle: { + font: { + weight: getContext().resourceManager.getStringSync($r('app.string.24_percent')) + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0310.ets new file mode 100644 index 0000000000000000000000000000000000000000..e00a168a978c4a213f63a79725e8e94ec49d965c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0310.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0310 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + disappearTextStyle: { + font: { + weight: '50%' + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..23e68c56737c6482c8bd8553125506b502ea20a7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0320.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0320 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + disappearTextStyle: { + font: { + weight: 1000 + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..26a15ecb0cced21b7b9076fdc78ec8322b538545 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0340.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0360 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + disappearTextStyle: { + font: { + family: 'Arial' + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0350.ets new file mode 100644 index 0000000000000000000000000000000000000000..f3fdefb1ae3a91e887e935de2ff44535299c2bf7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0350.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0350 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + disappearTextStyle: { + font: { + family: 'Arial, HarmonyOS Sans' + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0360.ets new file mode 100644 index 0000000000000000000000000000000000000000..fa7b3a975e967673220835d1449d8d0b304e50e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0360.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 font from '@ohos.font'; + +@Entry +@Component +struct UIComponentFunctionSpecialComponentsDialogTextPickerDialog0360 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + aboutToAppear() { + font.registerFont({ + familyName: 'ownfontone', + familySrc: $rawfile('font/own1.ttf') + }); + } + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + disappearTextStyle: { + font: { + family: 'ownfontone' + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0370.ets new file mode 100644 index 0000000000000000000000000000000000000000..c2e545ae32652f07bd373129f8c68bc85f3fd44e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0370.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0370 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0380.ets new file mode 100644 index 0000000000000000000000000000000000000000..7df80d4b7ef9b87278f471aa8f156425dbacd28d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0380.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0380 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + textStyle: { + color: Color.Red + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0390.ets new file mode 100644 index 0000000000000000000000000000000000000000..36c40fd003b921d65e82ac376011f6c272e95e65 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0390.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0390 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + textStyle: { + color: 0xFF0000 + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0400.ets new file mode 100644 index 0000000000000000000000000000000000000000..2c380d3a0f7d400708729cd24a807086a9b46256 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0400.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0400 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + textStyle: { + color: 'rgb(0,128,0)' + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0410.ets new file mode 100644 index 0000000000000000000000000000000000000000..b717d6dea83b4594f3946fdd5199fbbce5eb609e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0410.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0410 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + textStyle: { + color: getContext().resourceManager.getColorSync($r('app.color.purple')) + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0420.ets new file mode 100644 index 0000000000000000000000000000000000000000..56d7c94aa85fa68a19e61d88d53d1bc865f25820 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0420.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0420 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + textStyle: { + font: { + size: '24%' + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0430.ets new file mode 100644 index 0000000000000000000000000000000000000000..5fdb43ec7acaffb9c4ae57d4f5900ce006342560 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0430.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0430 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + textStyle: { + font: { + size: getContext().resourceManager.getStringSync($r('app.string.24_percent')) + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0440.ets new file mode 100644 index 0000000000000000000000000000000000000000..208d472588ab67628ece8ac33798e360994202ba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0440.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0440 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + textStyle: { + font: { + weight: '50%' + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0450.ets new file mode 100644 index 0000000000000000000000000000000000000000..9d1169383df9f25527f931b2d76c8e757cb90ed7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0450.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0450 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + textStyle: { + font: { + weight: 1000 + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0460.ets new file mode 100644 index 0000000000000000000000000000000000000000..b21ef64c9250a5c71ed97201fe06e118fadd7b1c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0460.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0460 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + textStyle: { + font: { + weight: 0 + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0470.ets new file mode 100644 index 0000000000000000000000000000000000000000..3916800d9afae07ecb2209fa5a4c1f4cf9cbabc5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0470.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0470 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + textStyle: { + font: { + family: 'Arial' + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0480.ets new file mode 100644 index 0000000000000000000000000000000000000000..baa2251cec84cd4d0630047b700f227a6d0b02d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0480.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0480 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + textStyle: { + font: { + family: 'Arial, HarmonyOS Sans' + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0490.ets new file mode 100644 index 0000000000000000000000000000000000000000..ad85d1b891ca4a9b1dbc90ee6ff7ba081fbff6e1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0490.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 font from '@ohos.font'; + +@Entry +@Component +struct UIComponentFunctionSpecialComponentsDialogTextPickerDialog0490 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + aboutToAppear() { + font.registerFont({ + familyName: 'ownfontone', + familySrc: $rawfile('font/own1.ttf') + }); + } + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + textStyle: { + font: { + family: 'ownfontone' + } + } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0500.ets new file mode 100644 index 0000000000000000000000000000000000000000..c05c4bca1383385eccc07ca157531fbd6208dd0b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0500.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0500 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0510.ets new file mode 100644 index 0000000000000000000000000000000000000000..448e38f7640bcb09cffc1d213550bfe0fc85cd6d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0510.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0510 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + selectedTextStyle: { color: Color.Red } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0790.ets new file mode 100644 index 0000000000000000000000000000000000000000..4ef9ece50920b2d66c879cfea073d936a0f60bb4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0790.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 image from '@ohos.multimedia.image'; + +@Entry +@Component +struct UIComponentFunctionSpecialComponentsDialogTextPickerDialog0790 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + @State imagePixelMap: image.PixelMap | undefined = undefined; + + aboutToAppear(): void { + let data: Uint8Array = getContext().resourceManager.getMediaContentSync($r('app.media.icon')); + let imageSource = image.createImageSource(data.buffer.slice(0, data.buffer.byteLength)); + this.imagePixelMap = imageSource.createPixelMapSync(); + imageSource.release(); + } + + build() { + Column() { + Row() { + Stack() { + Image(this.imagePixelMap) + .width('100%') + .height('100%') + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + backgroundBlurStyle: BlurStyle.COMPONENT_THIN + }) + }) + } + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0820.ets new file mode 100644 index 0000000000000000000000000000000000000000..2a0047fb07c57b02921acd188674de98fd782348 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0820.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 image from '@ohos.multimedia.image'; + +@Entry +@Component +struct UIComponentFunctionSpecialComponentsDialogTextPickerDialog0820 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + @State imagePixelMap: image.PixelMap | undefined = undefined; + + aboutToAppear(): void { + let data: Uint8Array = getContext().resourceManager.getMediaContentSync($r('app.media.icon')); + let imageSource = image.createImageSource(data.buffer.slice(0, data.buffer.byteLength)); + this.imagePixelMap = imageSource.createPixelMapSync(); + imageSource.release(); + } + + build() { + Column() { + Row() { + Stack() { + Image(this.imagePixelMap) + .width('100%') + .height('100%') + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + backgroundBlurStyle: BlurStyle.COMPONENT_ULTRA_THICK + }) + }) + } + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0830.ets new file mode 100644 index 0000000000000000000000000000000000000000..c752370822b6a9ae27ceb7576da5ec48b3d70b22 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0830.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0830 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1, + alignment: DialogAlignment.Top + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0840.ets new file mode 100644 index 0000000000000000000000000000000000000000..d537ccb3b806d1099f92e5d8259b68c9b07cc965 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0840.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0840 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1, + alignment: DialogAlignment.Center + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0850.ets new file mode 100644 index 0000000000000000000000000000000000000000..5d2dd37c945623cb17584bf3bec29b22517955f0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0850.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0850 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1, + alignment: DialogAlignment.Bottom + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0860.ets new file mode 100644 index 0000000000000000000000000000000000000000..08a2959f26bb1820ecb87c8cc0cec7a00008dc9a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0860.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0860 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1, + alignment: DialogAlignment.Default + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0870.ets new file mode 100644 index 0000000000000000000000000000000000000000..59d5c79887f215ad93398952cf6fd828fcf4e361 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0870.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0870 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1, + alignment: DialogAlignment.TopStart + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0880.ets new file mode 100644 index 0000000000000000000000000000000000000000..ef85a785612ebad033dbc21bb2f8c381e6be313d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0880.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0880 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1, + alignment: DialogAlignment.TopEnd + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0890.ets new file mode 100644 index 0000000000000000000000000000000000000000..f48c62577ed182718da9a72de0f4658f73d72f54 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0890.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0890 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1, + alignment: DialogAlignment.CenterStart + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0900.ets new file mode 100644 index 0000000000000000000000000000000000000000..96cd6ac5a02ff0d8cd1304f4482081c40b65a45c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0900.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0900 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1, + alignment: DialogAlignment.CenterEnd + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0910.ets new file mode 100644 index 0000000000000000000000000000000000000000..a4bef46a0b82b896ec3bf3ccfc616a61dc5fd3f5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0910.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0910 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1, + alignment: DialogAlignment.BottomStart + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0920.ets new file mode 100644 index 0000000000000000000000000000000000000000..875cc7febe9d1898aadd10ead007a81442ccc6e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0920.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0920 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1, + alignment: DialogAlignment.BottomEnd + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0930.ets new file mode 100644 index 0000000000000000000000000000000000000000..95ad24eceb1b5e60a4e56ffd1755407c398cb2e6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0930.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0930 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1, + offset: { dx: getContext().resourceManager.getNumber($r('app.integer.50')), dy: getContext().resourceManager.getNumber($r('app.integer.50')) } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0940.ets new file mode 100644 index 0000000000000000000000000000000000000000..4a6f1b0adfad7aea96fe25fb3e00708844ba8ab7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0940.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0940 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1, + offset: { dx: '30%', dy: '30%' } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0950.ets new file mode 100644 index 0000000000000000000000000000000000000000..fbd87559386f086fbcf1669fcf8df008ed05cae3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0950.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0950 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + canLoop: false, + selected: 1, + offset: { dx: 50.5, dy: -50.5 } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0960.ets new file mode 100644 index 0000000000000000000000000000000000000000..4519e2d1bfa80426d61e1ac3f7a5a9cdad19db01 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0960.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0960 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0970.ets new file mode 100644 index 0000000000000000000000000000000000000000..8d578d692f01d5b28759a31e275fe70233e5510b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0970.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0970 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + maskRect: { x: '50px' } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0980.ets new file mode 100644 index 0000000000000000000000000000000000000000..80444a3957a0b65d717405556a885ca3af3b0275 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0980.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0980 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + maskRect: { x: '' } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0990.ets new file mode 100644 index 0000000000000000000000000000000000000000..9d0b0ada5cdd9a9c7b2ed3f8fbb30386ab1a6f83 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0990.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog0990 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + maskRect: { x: 100 } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog1000.ets new file mode 100644 index 0000000000000000000000000000000000000000..fbba188be91f47b1598e159de7feec54eb54f2d0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog1000.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 UIComponentFunctionSpecialComponentsDialogTextPickerDialog1000 { + @State range: string[] = ['abc', 'def', 'ghi', 'jkl']; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + maskRect: { x: getContext().resourceManager.getStringSync($r('app.string.50_percent')) } + }) + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInfomationMarqueeDirection/UIComponentInfomationMarqueeDirection0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInfomationMarqueeDirection/UIComponentInfomationMarqueeDirection0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..e8601b65e182d0f4212d5ef765d7db459dc65b0a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInfomationMarqueeDirection/UIComponentInfomationMarqueeDirection0120.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. + */ +import i18n from '@ohos.i18n' +import window from '@ohos.window' +import { WindowMode } from '@ohos.UiTest' + +@Entry +@Component +struct UIComponentInfomationMarqueeDirection0120 { + @State fromStart: boolean = true + + aboutToAppear() { + i18n.System.setAppPreferredLanguage("ug") + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Marquee({ + start: true, + step: 6, + loop: 5, + fromStart: this.fromStart, + src: 'مېنىڭ ھاۋا-نېگىز كېمەمدە يىلان بېلىق تۇشۇپ كەتتى' + }) + .marqueeUpdateStrategy(MarqueeUpdateStrategy.PRESERVE_POSITION) + .width(400) + .fontColor('#FFFFFF') + .fontSize(40) + .backgroundColor('#182431') + .direction(Direction.Auto) + .onStart(() => { + console.info('Marquee animation complete onStart') + }) + .onBounce(() => { + console.info('Marquee animation complete onBounce') + }) + .onFinish(() => { + console.info('Marquee animation complete onFinish') + }) + Button('true') + .onClick(() => { + this.fromStart = true + }) + .width(120) + .height(40) + .fontSize(16) + .fontWeight(500) + .backgroundColor('#007DFF') + .margin(20) + .fontSize(30) + .id('button1') + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPicker/UIComponentPopupBoxPicker0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPicker/UIComponentPopupBoxPicker0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..1947d9efaaa6fc45dc142cd6dc9491fa9ff131ec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPicker/UIComponentPopupBoxPicker0200.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 UIComponentPopupBoxPicker0200 { + private selectedDate: Date = new Date('2024-04-23'); + private newSelectedDate1: Date = new Date('2024-05-23'); + private newSelectedDate2: Date = new Date('2024-06-23'); + private count:number = 1; + build() { + Column({ space: 20 }) { + Button('弹出').onClick(()=>{ + CalendarPickerDialog.show({ + selected:this.selectedDate, + acceptButtonStyle: { primary:true }, + cancelButtonStyle: { primary:false }, + onAccept:()=>{ + if(this.count == 1){ + this.selectedDate = this.newSelectedDate1; + this.count ++; + }else{ + this.selectedDate = this.newSelectedDate2; + } + }, + onDidAppear: () => { + + }, + }) + }).id('btn') + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..b9be0dc4acd29d5e2d46cf1e081f92c923115065 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0050.ets @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +@Entry +@Component +struct UIComponentPopupBoxPopup0050 { + @State isShow: boolean = false; + @State bindSheetHeight: Length = 777; + + @Builder + myBuilder() { + Row() { + Button("666") + .onClick(() => { + this.bindSheetHeight = 666; + }) + .id('height666') + Button("333") + .onClick(() => { + this.bindSheetHeight = $r('app.integer.integer333'); + }) + .id('height333') + Button("111") + .onClick(() => { + this.bindSheetHeight = 111; + }) + .id('height111') + } + .width('50%') + .height(333) + .id('content') + .backgroundColor(Color.Gray) + .alignItems(VerticalAlign.Top) + } + + build() { + Row() { + Column() { + Button("Click") + .onClick(() => { + this.isShow = true; + }) + .margin({ top: 100 }) + .id('showButton') + } + .width("100%") + .height("100%") + .bindSheet( + this.isShow, + this.myBuilder(), + { + backgroundColor: Color.White, + dragBar: true, + height: this.bindSheetHeight + } + ) + } + .width("100%") + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..64e03b2f809a96c478e02b2aedc48e63422edde4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0060.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. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +@Entry +@Component +struct UIComponentPopupBoxPopup0060 { + @State isShow: boolean = false; + @State bindSheetHeight: number = 666; + + @Builder + myBuilder() { + Row() { + Button("666") + .onClick(() => { + this.bindSheetHeight = 666; + }) + .id('height666') + Button("333") + .onClick(() => { + this.bindSheetHeight = 333; + }) + .id('height333') + Button("111") + .onClick(() => { + this.bindSheetHeight = 111; + }) + .id('height111') + Button("000") + .onClick(() => { + this.bindSheetHeight = -1; + }) + .id('height000') + } + .width('50%') + .height(333) + .id('content') + .backgroundColor(Color.Gray) + .alignItems(VerticalAlign.Top) + } + + build() { + Row() { + Column() { + Button("Click") + .onClick(() => { + this.isShow = true; + }) + .margin({ top: 100 }) + .id('showButton') + } + .width("100%") + .height("100%") + .bindSheet( + this.isShow, + this.myBuilder(), + { + backgroundColor: Color.White, + dragBar: true, + height: this.bindSheetHeight + } + ) + } + .width("100%") + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..7d73de5d135d32d8af70a40537eaa8161b0e632a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0070.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +@Entry +@Component +struct UIComponentPopupBoxPopup0070 { + @State isShow: boolean = false; + @State bindSheetHeight: number = 666; + + @Builder + myBuilder() { + Column() { + Button("666") + .onClick(() => { + this.bindSheetHeight = 666; + }) + .margin({ top: 10 }) + .id('height666') + Button("333") + .onClick(() => { + this.bindSheetHeight = 333; + }) + .margin({ top: 10 }) + .id('height333') + Button("111") + .onClick(() => { + this.bindSheetHeight = 111; + }) + .margin({ top: 10 }) + .id('height111') + } + .width('50%') + .height(this.bindSheetHeight) + .id('content') + .backgroundColor(Color.Gray) + } + + build() { + Row() { + Column() { + Button("Click") + .onClick(() => { + this.isShow = true; + }) + .margin({ top: 100 }) + .id('showButton') + } + .width("100%") + .height("100%") + .bindSheet( + this.isShow, + this.myBuilder(), + { + backgroundColor: Color.White, + dragBar: true, + height: 333 + } + ) + } + .width("100%") + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..b33d641ea69afb3cf775d2ecccf57000491cabd3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0080.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +@Entry +@Component +struct UIComponentPopupBoxPopup0080 { + @State isShow: boolean = false; + @State bindSheetHeight: number = 666; + + @Builder + myBuilder() { + Column() { + Button("666") + .onClick(() => { + this.bindSheetHeight = 666; + }) + .margin({ top: 10 }) + .id('height666') + Button("333") + .onClick(() => { + this.bindSheetHeight = 333; + }) + .margin({ top: 10 }) + .id('height333') + Button("111") + .onClick(() => { + this.bindSheetHeight = 111; + }) + .margin({ top: 10 }) + .id('height111') + } + .width('50%') + .height(this.bindSheetHeight) + .id('content') + .backgroundColor(Color.Gray) + } + + build() { + Row() { + Column() { + Button("Click") + .onClick(() => { + this.isShow = true; + }) + .margin({ top: 100 }) + .id('showButton') + } + .width("100%") + .height("100%") + .bindSheet( + this.isShow, + this.myBuilder(), + { + backgroundColor: Color.White, + dragBar: true, + height: SheetSize.FIT_CONTENT + } + ) + } + .width("100%") + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..ec3dd9fc35fc4bcc8c2ffefa222ec55b07f17840 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0030.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupBoxPromptToastSystem0030 { + build() { + Column({ space: 20 }) { + Button('ShowToast') + .onClick(() => { + try { + promptAction.showToast({ + message: "Hello World", + duration: 10000, + showMode: promptAction.ToastShowMode.DEFAULT + }) + } catch (error) { + let message = (error as BusinessError).message + let code = (error as BusinessError).code + console.error(`showToast args error code is ${code}, message is ${message}`); + } + + setTimeout(() => { + this.getUIContext().getFocusController().requestFocus('TextInput') + }, 3000) + + }) + + TextInput() + .width('100%') + .height(50) + .focusable(true) + .enableKeyboardOnFocus(true) + .id('TextInput') + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..aef4a350112043c66009dca9940997292b8e9839 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0040.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 { promptAction, window } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupBoxPromptToastSystem0040 { + rotationScreen(orientation: window.Orientation): Promise { + return new Promise((resolve, reject) => { + window.getLastWindow(getContext(this)).then((win) => { + win.setPreferredOrientation(orientation).then((data) => { + resolve(); + }).catch((err: string) => { + reject(); + console.log('setWindowOrientation: Failed. Cause: ' + JSON.stringify(err)); + }); + }).catch((err: string) => { + reject(); + console.log('setWindowOrientation: Failed to obtain the top window. Cause: ' + JSON.stringify(err)); + }) + }) + } + + build() { + Column({ space: 20 }) { + Button('ShowToast') + .onClick(() => { + try { + promptAction.showToast({ + message: "Hello World", + duration: 10000, + showMode: promptAction.ToastShowMode.DEFAULT + }) + } catch (error) { + let message = (error as BusinessError).message + let code = (error as BusinessError).code + console.error(`showToast args error code is ${code}, message is ${message}`); + } + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..e89d5e2d60b356c6926e8c38220b9882d8eaafd7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0240.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupBoxPromptToastSystem0240 { + build() { + Column({ space: 20 }) { + Button('ShowToast') + .onClick(() => { + try { + promptAction.showToast({ + message: "Hello World", + duration: 10000, + showMode: promptAction.ToastShowMode.SYSTEM_TOP_MOST + }) + } catch (error) { + let message = (error as BusinessError).message + let code = (error as BusinessError).code + console.error(`showToast args error code is ${code}, message is ${message}`); + } + + setTimeout(() => { + this.getUIContext().getFocusController().requestFocus('TextInput') + }, 3000) + + }) + + TextInput() + .width('100%') + .height(50) + .focusable(true) + .enableKeyboardOnFocus(true) + .id('TextInput') + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..58da4112b922577bb176488184b527a54f0daa9e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0250.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 { promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' +import window from '@ohos.window'; + + +@Entry +@Component +struct UIComponentPopupBoxPromptToastSystem0250 { + rotationScreen(orientation: window.Orientation) { + window.getLastWindow(getContext()).then((win) => { + win.setPreferredOrientation(orientation).then((data) => { + }).catch((err: string) => { + console.log('setWindowOrientation: Failed. Cause: ' + JSON.stringify(err)); + }); + }).catch((err: string) => { + console.log('setWindowOrientation: Failed to obtain the top window. Cause: ' + JSON.stringify(err)); + }) + } + + build() { + Column({ space: 20 }) { + Button('ShowToast') + .onClick(() => { + try { + promptAction.showToast({ + message: "Hello World", + duration: 10000, + showMode: promptAction.ToastShowMode.SYSTEM_TOP_MOST + }) + } catch (error) { + let message = (error as BusinessError).message + let code = (error as BusinessError).code + console.error(`showToast args error code is ${code}, message is ${message}`); + } + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..c9610dc2963eb6dcb2ff543c8bff6cb2b36f4b4d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0260.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 '@kit.ArkUI'; +import { BusinessError } from '@kit.BasicServicesKit'; + +@Entry +@Component +struct UIComponentPopupboxPromptToastsystem0260 { + + build() { + Column() { + Button('ShowToast') + .id("button1") + .onClick(() => { + DatePickerDialog.show(); + DatePickerDialog.show({ + offset: {dx:0, dy: 60} + }); + DatePickerDialog.show({ + offset: {dx:0, dy: 90} + }); + try { + setTimeout(() => { + promptAction.showToast({ + message: "Hello World", + duration: 5000, + showMode: promptAction.ToastShowMode.SYSTEM_TOP_MOST + }) + }, 500) + } catch (error) { + let message = (error as BusinessError).message + let code = (error as BusinessError).code + console.error(`showToast args error code is ${code}, message is ${message}`); + } + }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..b1f1d9f533dd4046bcea9a8e56a6cb9288c1a296 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0270.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 { promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxPromptToastSystem0270 { + + build() { + Column() { + Button('ShowToast') + .id("button1") + .onClick(() => { + try { + promptAction.showToast({ + message: "Hello World", + showMode: promptAction.ToastShowMode.TOP_MOST + }) + } catch (error) { + let message = (error as BusinessError).message + let code = (error as BusinessError).code + console.error(`showToast args error code is ${code}, message is ${message}`); + } + }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..fdda52f5f7178187b70ab52874263d716e9dfc5f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0280.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupBoxPromptToastSystem0280 { + build() { + Column({ space: 20 }) { + Button('ShowToast') + .onClick(() => { + try { + promptAction.showToast({ + message: "Hello World", + duration: 10000, + showMode: promptAction.ToastShowMode.TOP_MOST + }) + } catch (error) { + let message = (error as BusinessError).message + let code = (error as BusinessError).code + console.error(`showToast args error code is ${code}, message is ${message}`); + } + + setTimeout(() => { + this.getUIContext().getFocusController().requestFocus('TextInput') + }, 3000) + + }) + + TextInput() + .width('100%') + .height(50) + .focusable(true) + .enableKeyboardOnFocus(true) + .id('TextInput') + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..2a6c96c2ef67fcbc9562d9a77e47993714bfcbbf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0290.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 { promptAction, window } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupBoxPromptToastSystem0290 { + rotationScreen(orientation: window.Orientation): Promise { + return new Promise((resolve, reject) => { + window.getLastWindow(getContext(this)).then((win) => { + win.setPreferredOrientation(orientation).then((data) => { + resolve(); + }).catch((err: string) => { + reject(); + console.log('setWindowOrientation: Failed. Cause: ' + JSON.stringify(err)); + }); + }).catch((err: string) => { + reject(); + console.log('setWindowOrientation: Failed to obtain the top window. Cause: ' + JSON.stringify(err)); + }) + }) + } + + build() { + Column({ space: 20 }) { + Button('ShowToast') + .onClick(() => { + try { + promptAction.showToast({ + message: "Hello World", + duration: 10000, + showMode: promptAction.ToastShowMode.TOP_MOST + }) + } catch (error) { + let message = (error as BusinessError).message + let code = (error as BusinessError).code + console.error(`showToast args error code is ${code}, message is ${message}`); + } + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow023.ets new file mode 100644 index 0000000000000000000000000000000000000000..fd03c37e9ba74e62689d2d451a2384fb76180eeb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow023.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 { TipsDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupBoxSpecificationsShadow023 { + dialogControllerImage: CustomDialogController = new CustomDialogController({ + builder: TipsDialog({ + imageRes: $r('sys.media.ohos_ic_public_voice'), + content: '想要卸载这个APP嘛?', + primaryButton: { + value: '取消', + action: () => { + console.info('Callback when the first button is clicked') + }, + }, + secondaryButton: { + value: '删除', + role: ButtonRole.ERROR, + action: () => { + console.info('Callback when the second button is clicked') + } + }, + onCheckedChange: () => { + console.info('Callback when the checkbox is clicked') + } + }), + shadow: ShadowStyle.OUTER_DEFAULT_LG + }) + + build() { + Column() { + Button('TipsDialog') + .onClick(() => { + this.dialogControllerImage.open() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow025.ets new file mode 100644 index 0000000000000000000000000000000000000000..764a19239279c18f2bf85bf1480f7af2a6d94b88 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow025.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 { TipsDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupBoxSpecificationsShadow025 { + dialogControllerImage: CustomDialogController = new CustomDialogController({ + builder: TipsDialog({ + imageRes: $r('sys.media.ohos_ic_public_voice'), + content: '想要卸载这个APP嘛?', + primaryButton: { + value: '取消', + action: () => { + console.info('Callback when the first button is clicked') + }, + }, + secondaryButton: { + value: '删除', + role: ButtonRole.ERROR, + action: () => { + console.info('Callback when the second button is clicked') + } + }, + onCheckedChange: () => { + console.info('Callback when the checkbox is clicked') + } + }), + shadow: ShadowStyle.OUTER_DEFAULT_XS + }) + + build() { + Column() { + Button('TipsDialog') + .onClick(() => { + this.dialogControllerImage.open() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow026.ets new file mode 100644 index 0000000000000000000000000000000000000000..89fa9ac19ac842f7ee0f3afcfaf79b11f57583a2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow026.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 { TipsDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupBoxSpecificationsShadow026 { + dialogControllerImage: CustomDialogController = new CustomDialogController({ + builder: TipsDialog({ + imageRes: $r('sys.media.ohos_ic_public_voice'), + content: '想要卸载这个APP嘛?', + primaryButton: { + value: '取消', + action: () => { + console.info('Callback when the first button is clicked') + }, + }, + secondaryButton: { + value: '删除', + role: ButtonRole.ERROR, + action: () => { + console.info('Callback when the second button is clicked') + } + }, + onCheckedChange: () => { + console.info('Callback when the checkbox is clicked') + } + }), + shadow: ShadowStyle.OUTER_FLOATING_MD + }) + + build() { + Column() { + Button('TipsDialog') + .onClick(() => { + this.dialogControllerImage.open() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow027.ets new file mode 100644 index 0000000000000000000000000000000000000000..b2e733cc16a1aba8fe4708d8f8988d4d13a3db92 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow027.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 { TipsDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupBoxSpecificationsShadow027 { + dialogControllerImage: CustomDialogController = new CustomDialogController({ + builder: TipsDialog({ + imageRes: $r('sys.media.ohos_ic_public_voice'), + content: '想要卸载这个APP嘛?', + primaryButton: { + value: '取消', + action: () => { + console.info('Callback when the first button is clicked') + }, + }, + secondaryButton: { + value: '删除', + role: ButtonRole.ERROR, + action: () => { + console.info('Callback when the second button is clicked') + } + }, + onCheckedChange: () => { + console.info('Callback when the checkbox is clicked') + } + }), + shadow: ShadowStyle.OUTER_FLOATING_SM + }) + + build() { + Column() { + Button('TipsDialog') + .onClick(() => { + this.dialogControllerImage.open() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow029.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow029.ets new file mode 100644 index 0000000000000000000000000000000000000000..6e8f54857d57eb0f25529e3f4f97d47f74e888be --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow029.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 { TipsDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupBoxSpecificationsShadow029 { + dialogColorController: CustomDialogController = new CustomDialogController({ + builder: TipsDialog({ + imageRes: $r('sys.media.ohos_ic_public_voice'), + content: '想要卸载这个APP嘛?', + primaryButton: { + value: '取消', + action: () => { + console.info('Callback when the first button is clicked') + }, + }, + secondaryButton: { + value: '删除', + role: ButtonRole.ERROR, + action: () => { + console.info('Callback when the second button is clicked') + } + }, + onCheckedChange: () => { + console.info('Callback when the checkbox is clicked') + } + }), + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer100')), + type: ShadowType.COLOR, + color: ColoringStrategy.AVERAGE, + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer30')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer30')), + fill: false + } + }) + + build() { + Column() { + Button('TipsColorDialog') + .onClick(() => { + this.dialogColorController.open() + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow030.ets new file mode 100644 index 0000000000000000000000000000000000000000..86bc8f94869de1cd176170d9a91e2fabbcb19b3b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow030.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 { TipsDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupBoxSpecificationsShadow030 { + dialogColorController: CustomDialogController = new CustomDialogController({ + builder: TipsDialog({ + imageRes: $r('sys.media.ohos_ic_public_voice'), + content: '想要卸载这个APP嘛?', + primaryButton: { + value: '取消', + action: () => { + console.info('Callback when the first button is clicked') + }, + }, + secondaryButton: { + value: '删除', + role: ButtonRole.ERROR, + action: () => { + console.info('Callback when the second button is clicked') + } + }, + onCheckedChange: () => { + console.info('Callback when the checkbox is clicked') + } + }), + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer100')), + type: ShadowType.COLOR, + color: ColoringStrategy.INVERT, + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer30')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer30')), + fill: false + } + }) + + build() { + Column() { + Button('TipsColorDialog') + .onClick(() => { + this.dialogColorController.open() + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow031.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow031.ets new file mode 100644 index 0000000000000000000000000000000000000000..7caaba047739930f5a8889d8532b36ef3d0e1011 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow031.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 { TipsDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupBoxSpecificationsShadow031 { + dialogColorController: CustomDialogController = new CustomDialogController({ + builder: TipsDialog({ + imageRes: $r('sys.media.ohos_ic_public_voice'), + content: '想要卸载这个APP嘛?', + primaryButton: { + value: '取消', + action: () => { + console.info('Callback when the first button is clicked') + }, + }, + secondaryButton: { + value: '删除', + role: ButtonRole.ERROR, + action: () => { + console.info('Callback when the second button is clicked') + } + }, + onCheckedChange: () => { + console.info('Callback when the checkbox is clicked') + } + }), + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer100')), + type: ShadowType.COLOR, + color: ColoringStrategy.PRIMARY, + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer30')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer30')), + fill: false + } + }) + + build() { + Column() { + Button('TipsColorDialog') + .onClick(() => { + this.dialogColorController.open() + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow032.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow032.ets new file mode 100644 index 0000000000000000000000000000000000000000..e540a45050d857d197d3058dae1864e8dd47b4bc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow032.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 { TipsDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupBoxSpecificationsShadow032 { + dialogColorController: CustomDialogController = new CustomDialogController({ + builder: TipsDialog({ + imageRes: $r('sys.media.ohos_ic_public_voice'), + content: '想要卸载这个APP嘛?', + primaryButton: { + value: '取消', + action: () => { + console.info('Callback when the first button is clicked') + }, + }, + secondaryButton: { + value: '删除', + role: ButtonRole.ERROR, + action: () => { + console.info('Callback when the second button is clicked') + } + }, + onCheckedChange: () => { + console.info('Callback when the checkbox is clicked') + } + }), + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer30')), + type: ShadowType.COLOR, + color: getContext().resourceManager.getColorSync($r('app.color.color3')), + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer100')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer100')), + fill: false + } + }) + + build() { + Column() { + Button('TipsColorDialog') + .onClick(() => { + this.dialogColorController.open() + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow033.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow033.ets new file mode 100644 index 0000000000000000000000000000000000000000..4f8e76fdc831403950750cdd8678bcfff3485632 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow033.ets @@ -0,0 +1,104 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { TipsDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupBoxSpecificationsShadow033 { + dialogBlurController: CustomDialogController = new CustomDialogController({ + builder: TipsDialog({ + imageRes: $r('sys.media.ohos_ic_public_voice'), + content: '想要卸载这个APP嘛?', + primaryButton: { + value: '取消', + action: () => { + console.info('Callback when the first button is clicked') + }, + }, + secondaryButton: { + value: '删除', + role: ButtonRole.ERROR, + action: () => { + console.info('Callback when the second button is clicked') + } + }, + onCheckedChange: () => { + console.info('Callback when the checkbox is clicked') + } + }), + shadow: { + radius: $r('app.string.string1'), + type: ShadowType.BLUR, + color: "#FF00FF", + offsetX: $r('app.string.string1'), + offsetY: $r('app.string.string1'), + fill: false + } + }) + dialogColorController: CustomDialogController = new CustomDialogController({ + builder: TipsDialog({ + imageRes: $r('sys.media.ohos_ic_public_voice'), + content: '想要卸载这个APP嘛?', + primaryButton: { + value: '取消', + action: () => { + console.info('Callback when the first button is clicked') + }, + }, + secondaryButton: { + value: '删除', + role: ButtonRole.ERROR, + action: () => { + console.info('Callback when the second button is clicked') + } + }, + onCheckedChange: () => { + console.info('Callback when the checkbox is clicked') + } + }), + shadow: { + radius: $r('app.string.string1'), + type: ShadowType.COLOR, + color: "#FF00FF", + offsetX: $r('app.string.string1'), + offsetY: $r('app.string.string1'), + fill: false + } + }) + + build() { + Column() { + Button('TipsBlurDialog') + .id('UIComponentPopupBoxSpecificationsShadow033_001') + .onClick(() => { + this.dialogBlurController.open() + }) + + Button('TipsColorDialog') + .id('UIComponentPopupBoxSpecificationsShadow033_002') + .onClick(() => { + this.dialogColorController.open() + }) + + Button('CloseDialog') + .id('UIComponentPopupBoxSpecificationsShadow033_003') + .onClick(() => { + this.dialogBlurController.close() + this.dialogColorController.close() + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow058.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow058.ets new file mode 100644 index 0000000000000000000000000000000000000000..27516d053cb1862fb39bb9528047916f77512d25 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow058.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 UIComponentPopupBoxSpecificationsShadow058 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + shadow: null + }) + } + + build() { + Column() { + Button('TextPickerDialog') + .onClick(() => { + this.showTextPickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow059.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow059.ets new file mode 100644 index 0000000000000000000000000000000000000000..8abb0c16426d397fec779fc935b364756c1f3cd8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow059.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 UIComponentPopupBoxSpecificationsShadow059 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: null + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow061.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow061.ets new file mode 100644 index 0000000000000000000000000000000000000000..9bdd767efe5078ebe61f5ee493daf51fff136df7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow061.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 UIComponentPopupBoxSpecificationsShadow061 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + shadow: ShadowStyle.OUTER_DEFAULT_SM + }) + } + + build() { + Column() { + Button('TextPickerDialog') + .onClick(() => { + this.showTextPickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow062.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow062.ets new file mode 100644 index 0000000000000000000000000000000000000000..4f8c57f75f3f81695b71ea14c7603a5ea514e569 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow062.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 UIComponentPopupBoxSpecificationsShadow062 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + shadow: ShadowStyle.OUTER_DEFAULT_XS + }) + } + + build() { + Column() { + Button('TextPickerDialog') + .onClick(() => { + this.showTextPickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow063.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow063.ets new file mode 100644 index 0000000000000000000000000000000000000000..9ca37459dcfedd72ac18bdb234fdf2004d04a02e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow063.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 UIComponentPopupBoxSpecificationsShadow063 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + shadow: ShadowStyle.OUTER_FLOATING_MD + }) + } + + build() { + Column() { + Button('TextPickerDialog') + .onClick(() => { + this.showTextPickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow064.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow064.ets new file mode 100644 index 0000000000000000000000000000000000000000..296328cd8f3babde39775c6336cca635d9bd8660 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow064.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 UIComponentPopupBoxSpecificationsShadow064 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + shadow: ShadowStyle.OUTER_FLOATING_SM + }) + } + + build() { + Column() { + Button('TextPickerDialog') + .onClick(() => { + this.showTextPickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow065.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow065.ets new file mode 100644 index 0000000000000000000000000000000000000000..5c962a3c5e03602a965e26255859f3594f7efbf6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow065.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 UIComponentPopupBoxSpecificationsShadow065 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + shadow: { + radius: 30, + type: ShadowType.COLOR, + color: Color.Black, + offsetX: 30, + offsetY: 30, + fill: true + } + }) + } + + build() { + Column() { + Button('TextPickerDialog') + .onClick(() => { + this.showTextPickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow066.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow066.ets new file mode 100644 index 0000000000000000000000000000000000000000..83001738b7744fbbf330043380598e6739073114 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow066.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 UIComponentPopupBoxSpecificationsShadow066 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer100')), + type: ShadowType.COLOR, + color: ColoringStrategy.AVERAGE, + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer30')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer30')), + fill: false + } + }) + } + + build() { + Column() { + Button('TextPickerDialog') + .onClick(() => { + this.showTextPickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow067.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow067.ets new file mode 100644 index 0000000000000000000000000000000000000000..b4f8c8128e9ed7e385e78b771d1242f307812684 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow067.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 UIComponentPopupBoxSpecificationsShadow067 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer100')), + type: ShadowType.COLOR, + color: ColoringStrategy.INVERT, + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer100')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer100')), + fill: false + } + }) + } + + build() { + Column() { + Button('TextPickerDialog') + .onClick(() => { + this.showTextPickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow068.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow068.ets new file mode 100644 index 0000000000000000000000000000000000000000..92541699f6e2a8f8d6c2d6bbc88d3b1b647cc63f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow068.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 UIComponentPopupBoxSpecificationsShadow068 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer100')), + type: ShadowType.COLOR, + color: ColoringStrategy.PRIMARY, + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer30')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer30')), + fill: false + } + }) + } + + build() { + Column() { + Button('TextPickerDialog') + .onClick(() => { + this.showTextPickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow069.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow069.ets new file mode 100644 index 0000000000000000000000000000000000000000..ac3793cfdda591168c9394772274c861a79a17c3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow069.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 UIComponentPopupBoxSpecificationsShadow069 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(shadowType: ShadowType): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer30')), + type: shadowType, + color: "#FF00FF", + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer30')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer30')), + fill: false + } + }) + } + + build() { + Column({ space: 20 }) { + Button('TextPickerBlurDialog') + .onClick(() => { + this.showTextPickerDialog(ShadowType.BLUR) + }) + + Button('TextPickerColorDialog') + .onClick(() => { + this.showTextPickerDialog(ShadowType.COLOR) + }) + + Button('ClosePickerDialog') + .onClick(() => { + // this.showTextPickerDialog() + + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow070.ets new file mode 100644 index 0000000000000000000000000000000000000000..5c9bee8c6162cc23bae2e73ba4b9e468a07f1c97 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow070.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 UIComponentPopupBoxSpecificationsShadow070 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer30')), + type: ShadowType.COLOR, + color: getContext().resourceManager.getColorSync($r('app.color.color3')), + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer100')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer100')), + fill: false + } + }) + } + + build() { + Column() { + Button('TextPickerDialog') + .onClick(() => { + this.showTextPickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow071.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow071.ets new file mode 100644 index 0000000000000000000000000000000000000000..50480a2a20ba1b09c0cedd5dc0f3dd6735ef3d8b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow071.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 UIComponentPopupBoxSpecificationsShadow071 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: ShadowStyle.OUTER_DEFAULT_LG + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow072.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow072.ets new file mode 100644 index 0000000000000000000000000000000000000000..2b6de018515a131ddb6e735781018a02b1461e01 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow072.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 UIComponentPopupBoxSpecificationsShadow072 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: ShadowStyle.OUTER_DEFAULT_SM + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow073.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow073.ets new file mode 100644 index 0000000000000000000000000000000000000000..714fc51ae7f34b8060c803c6c262327b9e64d80f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow073.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 UIComponentPopupBoxSpecificationsShadow073 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: ShadowStyle.OUTER_DEFAULT_XS + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow074.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow074.ets new file mode 100644 index 0000000000000000000000000000000000000000..cadc1b5dee5e9315baf1ec6d387e8ee21bb7a618 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow074.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 UIComponentPopupBoxSpecificationsShadow074 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: ShadowStyle.OUTER_FLOATING_MD + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow075.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow075.ets new file mode 100644 index 0000000000000000000000000000000000000000..86c77938ca850539fcaef4b285d6004ffe4cae39 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow075.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 UIComponentPopupBoxSpecificationsShadow075 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: ShadowStyle.OUTER_FLOATING_SM + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow076.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow076.ets new file mode 100644 index 0000000000000000000000000000000000000000..d5192d4a52de3d800afce7e820c52f1a69285afc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow076.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 UIComponentPopupBoxSpecificationsShadow076 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: { + radius: 30, + type: ShadowType.COLOR, + color: Color.Black, + offsetX: 30, + offsetY: 30, + fill: true + } + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow077.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow077.ets new file mode 100644 index 0000000000000000000000000000000000000000..0bd8990356f250f513fe2eaa59a0eca7312fb9b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow077.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 UIComponentPopupBoxSpecificationsShadow077 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer100')), + type: ShadowType.COLOR, + color: ColoringStrategy.AVERAGE, + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer30')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer30')), + fill: false + } + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow078.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow078.ets new file mode 100644 index 0000000000000000000000000000000000000000..1c1a1e5f031f258beb2c99d347509985ec86f9d1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow078.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 UIComponentPopupBoxSpecificationsShadow078 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer100')), + type: ShadowType.COLOR, + color: ColoringStrategy.INVERT, + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer100')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer100')), + fill: false + } + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow079.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow079.ets new file mode 100644 index 0000000000000000000000000000000000000000..f9d8de684dce9b1dc62da8f91ad5cf116fa1c2be --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow079.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 UIComponentPopupBoxSpecificationsShadow079 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer100')), + type: ShadowType.COLOR, + color: ColoringStrategy.PRIMARY, + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer30')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer30')), + fill: false + } + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow080.ets new file mode 100644 index 0000000000000000000000000000000000000000..c4901d6ef7ae92a27549a2375788af6c46dc8ab0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow080.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 UIComponentPopupBoxSpecificationsShadow080 { + showTimePickerDialog(shadowType: ShadowType): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer30')), + type: shadowType, + color: "#FF00FF", + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer30')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer30')), + fill: false + } + }) + } + + build() { + Column({ space: 20 }) { + Button('TimePickerBlurDialog') + .onClick(() => { + this.showTimePickerDialog(ShadowType.BLUR) + }) + + Button('TimePickerColorDialog') + .onClick(() => { + this.showTimePickerDialog(ShadowType.COLOR) + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow081.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow081.ets new file mode 100644 index 0000000000000000000000000000000000000000..463e0d85dceb40c8565ab48bb84c9400fedfc791 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow081.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 UIComponentPopupBoxSpecificationsShadow081 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: { + radius: getContext().resourceManager.getNumber($r('app.integer.integer30')), + type: ShadowType.COLOR, + color: getContext().resourceManager.getColorSync($r('app.color.color3')), + offsetX: getContext().resourceManager.getNumber($r('app.integer.integer100')), + offsetY: getContext().resourceManager.getNumber($r('app.integer.integer100')), + fill: false + } + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow084.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow084.ets new file mode 100644 index 0000000000000000000000000000000000000000..5b0e3f0f5e3602e3bd563ef4561dd807d77b7a10 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow084.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 { TipsDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupBoxSpecificationsShadow084 { + dialogControllerImage: CustomDialogController = new CustomDialogController({ + builder: TipsDialog({ + imageRes: $r('sys.media.ohos_ic_public_voice'), + content: '想要卸载这个APP嘛?', + primaryButton: { + value: '取消', + action: () => { + console.info('Callback when the first button is clicked') + }, + }, + secondaryButton: { + value: '删除', + role: ButtonRole.ERROR, + action: () => { + console.info('Callback when the second button is clicked') + } + }, + onCheckedChange: () => { + console.info('Callback when the checkbox is clicked') + } + }), + shadow: undefined + }) + + build() { + Column() { + Button('TipsDialog') + .onClick(() => { + this.dialogControllerImage.open() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow087.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow087.ets new file mode 100644 index 0000000000000000000000000000000000000000..ab9aaa831f48d604c1a49a8ab9fdea1d1351fa4b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow087.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 UIComponentPopupBoxSpecificationsShadow087 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + shadow: undefined + }) + } + + build() { + Column() { + Button('TextPickerDialog') + .onClick(() => { + this.showTextPickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow088.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow088.ets new file mode 100644 index 0000000000000000000000000000000000000000..025850fcb72a5d2167383409edcc44f6f72311bf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow088.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 UIComponentPopupBoxSpecificationsShadow088 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: undefined + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow091.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow091.ets new file mode 100644 index 0000000000000000000000000000000000000000..9de509e4b0e5f440a9c1e01609fae8cbcc8275ac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow091.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 { TipsDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupBoxSpecificationsShadow091 { + dialogControllerImage: CustomDialogController = new CustomDialogController({ + builder: TipsDialog({ + imageRes: $r('sys.media.ohos_ic_public_voice'), + content: '想要卸载这个APP嘛?', + primaryButton: { + value: '取消', + action: () => { + console.info('Callback when the first button is clicked') + }, + }, + secondaryButton: { + value: '删除', + role: ButtonRole.ERROR, + action: () => { + console.info('Callback when the second button is clicked') + } + }, + onCheckedChange: () => { + console.info('Callback when the checkbox is clicked') + } + }), + }) + + build() { + Column() { + Button('010_tipsDialog') + .id('UIComponentPopupBoxSpecificationsShadow091_001') + .onClick(() => { + this.dialogControllerImage.open() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow094.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow094.ets new file mode 100644 index 0000000000000000000000000000000000000000..7ef2fe61a236f5f88ca3e9a7641b8163e2a8afbe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow094.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 UIComponentPopupBoxSpecificationsShadow094 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + }) + } + + build() { + Column() { + Button('TextPickerDialog') + .onClick(() => { + this.showTextPickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow095.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow095.ets new file mode 100644 index 0000000000000000000000000000000000000000..28892ad5d3384891b19450c7adef221ae2a92179 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow095.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 UIComponentPopupBoxSpecificationsShadow095 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow098.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow098.ets new file mode 100644 index 0000000000000000000000000000000000000000..193a6a044f87dcab1427b82e48d55b3e369fbfa0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow098.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 { TipsDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupBoxSpecificationsShadow098 { + dialogControllerImage: CustomDialogController = new CustomDialogController({ + builder: TipsDialog({ + imageRes: $r('sys.media.ohos_ic_public_voice'), + content: '想要卸载这个APP嘛?', + primaryButton: { + value: '取消', + action: () => { + console.info('Callback when the first button is clicked') + }, + }, + secondaryButton: { + value: '删除', + role: ButtonRole.ERROR, + action: () => { + console.info('Callback when the second button is clicked') + } + }, + onCheckedChange: () => { + console.info('Callback when the checkbox is clicked') + } + }), + shadow: ShadowStyle.OUTER_DEFAULT_MD + }) + + build() { + Column() { + Button('020_tipsDialog') + .id('UIComponentPopupBoxSpecificationsShadow098_001') + .onClick(() => { + this.dialogControllerImage.open() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow101.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow101.ets new file mode 100644 index 0000000000000000000000000000000000000000..106a78c795ba90857bbf5d780a8ea35a3bdb919e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow101.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 UIComponentPopupBoxSpecificationsShadow101 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showTextPickerDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + shadow: ShadowStyle.OUTER_DEFAULT_MD + }) + } + + build() { + Column() { + Button('TextPickerDialog') + .onClick(() => { + this.showTextPickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow102.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow102.ets new file mode 100644 index 0000000000000000000000000000000000000000..ddb22576a971d40702737c8b5bd01ccaf46c082d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow102.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 UIComponentPopupBoxSpecificationsShadow102 { + showTimePickerDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + shadow: ShadowStyle.OUTER_DEFAULT_MD + }) + } + + build() { + Column() { + Button('TimePickerDialog') + .onClick(() => { + this.showTimePickerDialog() + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..a513c16c721b33056ef3d7d98a6cd8d5dd67029e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0290.ets @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupBoxStyleStrong0290 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showDefaultBlurDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + }) + } + + showUltraThickDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + backgroundBlurStyle: BlurStyle.COMPONENT_ULTRA_THICK + }) + } + + build() { + Column({ space: 20 }) { + Button('TextPickerDialogUltraThick') + .onClick(() => { + this.showUltraThickDialog() + }) + + Button('TextPickerDialogDefaultBlur') + .onClick(() => { + this.showDefaultBlurDialog() + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..e5300441e98ea53535d463a827e545376d7e211d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0300.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 UIComponentPopupBoxStyleStrong0300 { + private select: number | number[] = 0 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4', 'banana5'] + @State pickerValue: string = ''; + + showDefaultBlurDialog(): void { + TextPickerDialog.show({ + range: this.fruits, + selected: this.select, + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TextPickerResult) => { + // 设置select为按下确定按钮时候的选中项index,这样当弹窗再次弹出时显示选中的是上一次确定的选项 + this.select = value.index + console.log(this.select + '') + // 点击确定后,被选到的文本数据展示到页面 + this.pickerValue = value.value as string + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)) + }, + }) + } + + build() { + Column({ space: 20 }) { + + Button('TextPickerDialogDefaultBlur') + .onClick(() => { + this.showDefaultBlurDialog() + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..bda7c300066078df4a3a9cb485f8f3c7cf8bcab0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0320.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupBoxStyleStrong0320 { + showDefaultBlurDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + }) + } + + showUltraThickDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + backgroundBlurStyle: BlurStyle.COMPONENT_ULTRA_THICK + }) + } + + build() { + Column({ space: 20 }) { + Button('TimePickerDialogUltraThick') + .onClick(() => { + this.showUltraThickDialog() + }) + + Button('TimePickerDialogDefaultBlur') + .onClick(() => { + this.showDefaultBlurDialog() + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..a7f1dbc3d9643c9b7e38359270aeb742092f108c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0330.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 UIComponentPopupBoxStyleStrong0330 { + showDefaultBlurDialog(): void { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + disappearTextStyle: { color: Color.Red, font: { size: 15, weight: FontWeight.Lighter } }, + textStyle: { color: Color.Black, font: { size: 20, weight: FontWeight.Normal } }, + selectedTextStyle: { color: Color.Blue, font: { size: 30, weight: FontWeight.Bolder } }, + onAccept: (value: TimePickerResult) => { + // 设置selectTime为按下确定按钮时的时间,这样当弹窗再次弹出时显示选中的为上一次确定的时间 + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + }) + } + + build() { + Column({ space: 20 }) { + Button('TimePickerDialogDefaultBlur') + .onClick(() => { + this.showDefaultBlurDialog() + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..17113aba899be75ff3f637a020626a82b12ccc31 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0020.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 UIComponentPopupboxButtonstyle0020 { + build() { + Column() { + Button("TextPickerDialog") + .id("show_dialog_bt") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test 4'], + acceptButtonStyle: { + type: ButtonType.Normal, + fontSize: '16px', + fontWeight: FontWeight.Bold, + fontStyle: FontStyle.Italic, + fontFamily: 'sans-serif', + backgroundColor: Color.White, + borderRadius: 10 + }, + cancelButtonStyle: { + type: ButtonType.Circle, + style: ButtonStyleMode.NORMAL, + role: ButtonRole.ERROR, + fontSize: '16fp', + fontColor: Color.Blue, + fontWeight: 500, + fontFamily: 'sans-serif', + backgroundColor: Color.Black, + borderRadius: { + topLeft: '10px', + topRight: 10, + bottomLeft: 10, + bottomRight: 10 + } + } + }) + }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..21b2acf6d72d27fe78d7d15bcf38a15e1bb6dc04 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0030.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxButtonstyle0030 { + build() { + Column() { + Button("TextPickerDialog") + .id("show_dialog_bt") + .onClick(() => { + TextPickerDialog.show({ + range: ['test 1', 'test 2', 'test 3', 'test 4'], + acceptButtonStyle: { + type: ButtonType.Capsule, + style: ButtonStyleMode.EMPHASIZED, + fontSize: '16fp', + fontColor: '#ffffff', + fontWeight: 400 + }, + cancelButtonStyle: { + type: ButtonType.Capsule, + style: ButtonStyleMode.EMPHASIZED, + fontSize: '16fp', + fontColor: '#ffffff', + fontWeight: 400 + } + }) + }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..0724d51e46747ff0d5a6d2baf6da6433d76b2c5a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0050.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 UIComponentPopupboxButtonstyle0050 { + build() { + Column() { + Button("TimePickerDialog") + .id("show_dialog_bt") + .onClick(() => { + TimePickerDialog.show({ + acceptButtonStyle: { + type: ButtonType.Normal, + fontSize: '16px', + fontWeight: FontWeight.Bold, + fontStyle: FontStyle.Italic, + fontFamily: 'sans-serif', + backgroundColor: Color.White, + borderRadius: 10 + }, + cancelButtonStyle: { + type: ButtonType.Circle, + style: ButtonStyleMode.NORMAL, + role: ButtonRole.ERROR, + fontSize: '16fp', + fontColor: Color.Blue, + fontWeight: 500, + fontFamily: 'sans-serif', + backgroundColor: Color.Black, + borderRadius: { + topLeft: '10px', + topRight: 10, + bottomLeft: 10, + bottomRight: 10 + } + } + }) + }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..ba8ce0336c54451211099ad89aa5f2c9f10347f3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0060.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 UIComponentPopupboxButtonstyle0060 { + build() { + Column() { + Button("TimePickerDialog") + .id("show_dialog_bt") + .onClick(() => { + TimePickerDialog.show({ + acceptButtonStyle: { + type: ButtonType.Capsule, + style: ButtonStyleMode.EMPHASIZED, + fontSize: '16fp', + fontColor: '#ffffff', + fontWeight: 400 + }, + cancelButtonStyle: { + type: ButtonType.Capsule, + style: ButtonStyleMode.EMPHASIZED, + fontSize: '16fp', + fontColor: '#ffffff', + fontWeight: 400 + } + }) + }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxConsistencyScene/UIComponentPopupboxConsistencyScene0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxConsistencyScene/UIComponentPopupboxConsistencyScene0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..3c76e8cde302b4732185ad8634a850bb3be32614 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxConsistencyScene/UIComponentPopupboxConsistencyScene0040.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxConsistencyScene0040 { + private selectedTime: Date = new Date('2022-07-22T08:00:00') + + build() { + Row() { + Column() { + Button("TimePickerDialog DatePickerDialog") + .id('UIComponentPopupboxConsistencyScene0040_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show( + { + selected: this.selectedTime, + } + ) + DatePickerDialog.show( + { + selected: this.selectedTime, + } + ) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0510.ets new file mode 100644 index 0000000000000000000000000000000000000000..53ca4a51072bddf137ad44de060c9d18bbd23cac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0510.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 UIComponentPopupboxEnter0510 { + @State text: string = ''; + + build() { + Column() { + Button('TextPickerDialog') + .id("show_dialog_bt") + .onClick(() => { + TextPickerDialog.show({ + range: ['1', '2', '3'], + offset: { + dx: '-30px', + dy: 0 + }, + acceptButtonStyle: { + primary: true + }, + onAccept: () => { + this.text = "enter to accept"; + } + }) + }) + Text(this.text).margin({ top: 30 }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0520.ets new file mode 100644 index 0000000000000000000000000000000000000000..feb67ac03ed2164d9c295e493f0b912eb4bdfe67 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0520.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 UIComponentPopupboxEnter0520 { + build() { + Column() { + Button('TextPickerDialog') + .id("show_dialog_bt") + .onClick(() => { + TextPickerDialog.show({ + range: ['1', '2', '3'], + acceptButtonStyle: { + primary: true + }, + onAccept: () => { + + } + }) + setTimeout(() => { + TextPickerDialog.show({ + range: ['4', '5', '6'], + offset: { + dx: 0, dy: 30 + }, + cancelButtonStyle: { + primary: true + }, + onCancel: () => { + console.log( 'cancel') + }, + onAccept: () => { + console.log('accept') + } + }) + }, 1000) + + }) + + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0530.ets new file mode 100644 index 0000000000000000000000000000000000000000..82ed66461e6546505caa58ec863678217544df58 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0530.ets @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxEnter0530 { + build() { + Column() { + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0540.ets new file mode 100644 index 0000000000000000000000000000000000000000..ecd7cf0168b5da074f444030d7dbecedc1a446a8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0540.ets @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxEnter0540 { + build() { + Column() { + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0550.ets new file mode 100644 index 0000000000000000000000000000000000000000..1d5baf0efe216a397757b13d3543e0205e2a0f62 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0550.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 UIComponentPopupboxEnter0550 { + @State text: string = ''; + + build() { + Column() { + Button('TextPickerDialog') + .id("show_dialog_bt") + .onClick(() => { + TextPickerDialog.show({ + range: ['1', '2', '3'], + acceptButtonStyle: { + primary: true + }, + onAccept: () => { + this.text = "enter to accept"; + } + }) + }) + Text(this.text).margin({ top: 30 }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0570.ets new file mode 100644 index 0000000000000000000000000000000000000000..cafdbea76b8ad82e803b4f6f98313664f59f1903 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0570.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 UIComponentPopupboxEnter0570 { + @State text: string = ''; + + build() { + Column() { + Button('TextPickerDialog') + .id("show_dialog_bt") + .onClick(() => { + TimePickerDialog.show({ + alignment: DialogAlignment.TopEnd, + acceptButtonStyle: { + primary: true + }, + onAccept: () => { + this.text = "enter to accept"; + } + }) + }) + Text(this.text).margin({ top: 30 }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0580.ets new file mode 100644 index 0000000000000000000000000000000000000000..7b59113120d743dc70b6ab14c16710c2227ca1bf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0580.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 UIComponentPopupboxEnter0580 { + @State text: string = ''; + + build() { + Column() { + Button('TimePickerDialog') + .id("show_dialog_bt") + .onClick(() => { + TimePickerDialog.show({ + alignment: DialogAlignment.Top, + acceptButtonStyle: { + primary: true + }, + onAccept: () => { + this.text = "enter to accept"; + } + }) + }) + Text(this.text).margin({ top: 30 }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0590.ets new file mode 100644 index 0000000000000000000000000000000000000000..f856095c6e89f4d3fbc643117938d6d5d8cdf9e4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0590.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 UIComponentPopupboxEnter0590 { + @State text: string = ''; + + build() { + Column() { + Button('TimePickerDialog') + .id("show_dialog_bt") + .onClick(() => { + TimePickerDialog.show({ + offset: { + dx: '30px', + dy: 0 + }, + acceptButtonStyle: { + primary: true + }, + onAccept: () => { + this.text = "enter to accept"; + } + }) + }) + Text(this.text).margin({top: 30}) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0600.ets new file mode 100644 index 0000000000000000000000000000000000000000..c68809a3271e90c0d726083f6fdbe97d544b5506 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0600.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 UIComponentPopupboxEnter0600 { + @State text: string = ''; + + build() { + Column() { + Button('TimePickerDialog') + .id("show_dialog_bt") + .onClick(() => { + TimePickerDialog.show({ + offset: { + dx: '-30px', + dy: 0 + }, + acceptButtonStyle: { + primary: true + }, + onAccept: () => { + this.text = "enter to accept"; + } + }) + }) + Text(this.text).margin({ top: 30 }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0610.ets new file mode 100644 index 0000000000000000000000000000000000000000..5a185a039befb2ab79f6873a3ba52be538711365 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0610.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 UIComponentPopupboxEnter0610 { + build() { + Column() { + Button('TimePickerDialog') + .id("show_dialog_bt") + .onClick(() => { + TimePickerDialog.show({ + selected: new Date('2020-12-25T08:30:00'), + acceptButtonStyle: { + primary: true + }, + onAccept: () => { + + } + }) + setTimeout(() => { + TimePickerDialog.show({ + selected: new Date('2023-11-22T008:10:30'), + offset: { dx: 0, dy: 30 }, + cancelButtonStyle: { + primary: true + }, + onCancel: () => { + console.log( 'cancel') + }, + onAccept: () => { + console.log('accept') + } + }) + }, 1000) + + }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0620.ets new file mode 100644 index 0000000000000000000000000000000000000000..9c437df937746bdbe17e632b2d2146fbcf54f403 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0620.ets @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxEnter0620 { + build() { + Column() { + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0630.ets new file mode 100644 index 0000000000000000000000000000000000000000..2c5e1333b9bd39ed21bab83e939f5c1545c0369f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0630.ets @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxEnter0630 { + build() { + Column() { + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0640.ets new file mode 100644 index 0000000000000000000000000000000000000000..b9d4de2b55480ece096f0351253984375969857f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0640.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 UIComponentPopupboxEnter0640 { + @State text: string = ''; + + build() { + Column() { + Button('TimePickerDialog') + .id("show_dialog_bt") + .onClick(() => { + TimePickerDialog.show({ + acceptButtonStyle: { + primary: true + }, + onAccept: () => { + this.text = "enter to accept"; + } + }) + }) + Text(this.text).margin({ top: 30 }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..dc3ef5dfa8ef4be674aa8cf07c9a263499a883c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0040.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest0160 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单菜单菜单" ,endIcon:this.iconStr}) + .contentFont({size:30}) + MenuItem({ startIcon: this.iconStr, content: "菜单菜单菜单" ,endIcon:this.iconStr}) + .contentFont({size:30}) + MenuItem({ startIcon: this.iconStr, content: "菜单菜单菜单" ,endIcon:this.iconStr}) + .contentFont({size:30}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..b16f0e674da6d327cfa00b17e27673272d7f6b79 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0080.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest0080 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单" }) + .contentFont({size:10}) + MenuItem({ startIcon: this.iconStr, content: "菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单" }) + .contentFont({size:10}) + MenuItem({ startIcon: this.iconStr, content: "菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单菜单" }) + .contentFont({size:10}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..ee3543b507ef960b58011cc78644b37ef46cb1e7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0100.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest0100 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单菜单菜单菜单菜单菜单菜单" ,endIcon:this.iconStr}) + .contentFont({size:20}).height(50).width(200).border({width:1}) + MenuItem({ startIcon: this.iconStr, content: "菜单菜单菜单菜单菜单菜单菜单" ,endIcon:this.iconStr}) + .contentFont({size:20}).height(50).width(200).border({width:1}) + MenuItem({ startIcon: this.iconStr, content: "菜单菜单菜单菜单菜单菜单菜单" ,endIcon:this.iconStr}) + .contentFont({size:20}).height(50).width(200).border({width:1}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..afe9098af79268292b5c314a67c796c55094427b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0110.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest0110 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单" ,endIcon:this.iconStr}) + .contentFont({size:15}).height(50).width(200).border({width:1}) + MenuItem({ startIcon: this.iconStr, content: "菜单" ,endIcon:this.iconStr}) + .contentFont({size:15}).height(50).width(200).border({width:1}) + MenuItem({ startIcon: this.iconStr, content: "菜单" ,endIcon:this.iconStr}) + .contentFont({size:15}).height(50).width(200).border({width:1}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..91bc3a21ee3fc2adacdf79dfda4307b42cd20e79 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0160.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest0160 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单" ,endIcon:this.iconStr}) + .contentFont({size:15}).height('23%').width('23%') + MenuItem({ startIcon: this.iconStr, content: "菜单" ,endIcon:this.iconStr}) + .contentFont({size:15}).height('23%').width('23%') + MenuItem({ startIcon: this.iconStr, content: "菜单" ,endIcon:this.iconStr}) + .contentFont({size:15}).height('23%').width('23%') + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..7f6c8083a67416c191a135f3cdbf4ae3d8150dff --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0190.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest0190 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单" ,endIcon:this.iconStr}) + .contentFont({size:20}).width('20%') + MenuItem({ startIcon: this.iconStr, content: "菜单" ,endIcon:this.iconStr}) + .contentFont({size:20}).width('20%') + MenuItem({ startIcon: this.iconStr, content: "菜单" ,endIcon:this.iconStr}) + .contentFont({size:20}).width('20%') + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..3807598756cacce5623b66104f05cfd8bcf9102a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0320.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest0320 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItemGroup(){ + MenuItem({ startIcon: this.iconStr, content: "菜单菜单菜单菜单菜单菜单" ,endIcon:this.iconStr}) + .contentFont({size:20}).height(30).width(150) + MenuItem({ startIcon: this.iconStr, content: "菜单菜单菜单菜单菜单菜单" ,endIcon:this.iconStr}) + .contentFont({size:20}).height(30).width(150) + MenuItem({ startIcon: this.iconStr, content: "菜单菜单菜单菜单菜单菜单" ,endIcon:this.iconStr}) + .contentFont({size:20}).height(30).width(150) + } + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0470.ets new file mode 100644 index 0000000000000000000000000000000000000000..14e217fed886255d7282be74fb05ea5660c7fd02 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0470.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest0470 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单项1" ,endIcon:`$r('app.media.icon)`}) + MenuItem({ startIcon: this.iconStr, content: "菜单项2" ,endIcon:`$r('app.media.icon)`}) + MenuItem({ startIcon: this.iconStr, content: "菜单项3" ,endIcon:`$r('app.media.icon)`}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0540.ets new file mode 100644 index 0000000000000000000000000000000000000000..f0fa3d894b676356a063cfdb836a7e9054636d40 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0540.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest0540 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单项1" ,labelInfo:null}) + MenuItem({ startIcon: this.iconStr, content: "菜单项2" ,labelInfo:null}) + MenuItem({ startIcon: this.iconStr, content: "菜单项3" ,labelInfo:null}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0670.ets new file mode 100644 index 0000000000000000000000000000000000000000..5e67c8b129968a40d4b250e47aab14a9004b8540 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0670.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest0670 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单1" ,endIcon:this.iconStr}) + .selectIcon('').selected(true) + MenuItem({ startIcon: this.iconStr, content: "菜单2" ,endIcon:this.iconStr}) + MenuItem({ startIcon: this.iconStr, content: "菜单3" ,endIcon:this.iconStr}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0830.ets new file mode 100644 index 0000000000000000000000000000000000000000..7c2095b67b9904b545a248f61f0116be2e56a17c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0830.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest0830 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项1" }) + .contentFont({weight:FontWeight.Medium}) + MenuItem({ startIcon: this.iconStr, content: "菜单选项2" }) + .contentFont({weight:FontWeight.Medium}) + MenuItem({ startIcon: this.iconStr, content: "菜单选项3" }) + .contentFont({weight:FontWeight.Medium}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1060.ets new file mode 100644 index 0000000000000000000000000000000000000000..aceba313435d997d5d57313a0b38ed73994dcdd1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1060.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1060 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单项1" }) + .labelFont({weight:100}) + MenuItem({ startIcon: this.iconStr, content: "菜单项2" }) + .labelFont({weight:100}) + MenuItem({ startIcon: this.iconStr, content: "菜单项3" }) + .labelFont({weight:100}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1090.ets new file mode 100644 index 0000000000000000000000000000000000000000..6e57ba8c406270571a71e1a23093cd381d39b5f1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1090.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1090 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单项1" }) + .labelFont({weight:800}) + MenuItem({ startIcon: this.iconStr, content: "菜单项2" }) + .labelFont({weight:800}) + MenuItem({ startIcon: this.iconStr, content: "菜单项3" }) + .labelFont({weight:800}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1100.ets new file mode 100644 index 0000000000000000000000000000000000000000..6967cc55f6182fb33de0a9ec3e859ca6ce81a617 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1100.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1100 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单项1" }) + .labelFont({weight:''}) + MenuItem({ startIcon: this.iconStr, content: "菜单项2" }) + .labelFont({weight:''}) + MenuItem({ startIcon: this.iconStr, content: "菜单项3" }) + .labelFont({weight:''}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1190.ets new file mode 100644 index 0000000000000000000000000000000000000000..0126ca7281b71905239634678fc0a166077ac33b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1190.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1190 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单项1" }) + .labelFont({weight:'sans-serif'}) + MenuItem({ startIcon: this.iconStr, content: "菜单项2" }) + .labelFont({weight:'sans-serif'}) + MenuItem({ startIcon: this.iconStr, content: "菜单项3" }) + .labelFont({weight:'sans-serif'}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1200.ets new file mode 100644 index 0000000000000000000000000000000000000000..ac483c761d9991b21dc9693f4b50aac3b1a876c4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1200.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1190 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单项1" }) + .labelFont({weight:`$r('app.float.integer_1)`}) + MenuItem({ startIcon: this.iconStr, content: "菜单项2" }) + .labelFont({weight:`$r('app.float.integer_1)`}) + MenuItem({ startIcon: this.iconStr, content: "菜单项3" }) + .labelFont({weight:`$r('app.float.integer_1)`}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1310.ets new file mode 100644 index 0000000000000000000000000000000000000000..93ddc6aa1f719f149ac30a3e0737b649242f6291 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1310.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1310 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem(); + MenuItem(); + MenuItem(); + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1380.ets new file mode 100644 index 0000000000000000000000000000000000000000..00ca177ecb5740c63d7c64ba0c1fc540e6d3f08a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1380.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1380 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItemGroup({footer:'footer'}){ + MenuItem({content:'item1'}); + MenuItem({content:'item2'}); + MenuItem({content:'item3'}); + } + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1390.ets new file mode 100644 index 0000000000000000000000000000000000000000..bbee291b2c857c9e7741bf118dd8c4081ae83b34 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1390.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1390 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItemGroup({footer:`$r('app.string.apple')`}){ + MenuItem({ startIcon: this.iconStr, content: "菜单项1" }) + MenuItem({ startIcon: this.iconStr, content: "菜单项2" }) + MenuItem({ startIcon: this.iconStr, content: "菜单项3" }) + } + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1480.ets new file mode 100644 index 0000000000000000000000000000000000000000..5399f94f982a60b7c63c020d76a8df10254d4532 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1480.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1480 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单项1" }) + .labelFont({size:''}) + MenuItem({ startIcon: this.iconStr, content: "菜单项2" }) + .labelFont({size:''}) + MenuItem({ startIcon: this.iconStr, content: "菜单项3" }) + .labelFont({size:''}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1490.ets new file mode 100644 index 0000000000000000000000000000000000000000..0b74e20737ba94c51da8be4fc1d05f37d61b0a81 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1490.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1510 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单项1" }) + .labelFont({weight:100}) + MenuItem({ startIcon: this.iconStr, content: "菜单项2" }) + .labelFont({weight:100}) + MenuItem({ startIcon: this.iconStr, content: "菜单项3" }) + .labelFont({weight:100}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1510.ets new file mode 100644 index 0000000000000000000000000000000000000000..518d3f5fa20405765cae4cf8314adc82f5fa7550 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1510.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1510 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单项1" }) + .labelFont({weight:101}) + MenuItem({ startIcon: this.iconStr, content: "菜单项2" }) + .labelFont({weight:101}) + MenuItem({ startIcon: this.iconStr, content: "菜单项3" }) + .labelFont({weight:101}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1630.ets new file mode 100644 index 0000000000000000000000000000000000000000..d28fea28206f090128dc0ec753b0940c78abc97f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1630.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 { Font, promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1630 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单项1" }) + .labelFont({family:''}) + MenuItem({ startIcon: this.iconStr, content: "菜单项2" }) + .labelFont({family:''}) + MenuItem({ startIcon: this.iconStr, content: "菜单项3" }) + .labelFont({family:''}) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1970.ets new file mode 100644 index 0000000000000000000000000000000000000000..62b0abd86cab671c503def638252a37b33b3e939 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1970.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 { promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1970 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项1" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项2" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项3" }) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .bindContextMenu(this.isShown,this.MyMenu(),{ + offset:({x:0,y:0}) + }) + }.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/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1980.ets new file mode 100644 index 0000000000000000000000000000000000000000..a6fd2bfa6952cb1ac45406168a6ba3f198083e8e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1980.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 { promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxMenuMenuTest1980 { + private iconStr: string = 'icon.png'; + @State isShown: boolean = false; + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项1" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项2" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项3" }) + } + } + build() { + Column() { + Text('click for Menu').id('text').onClick(()=>{ + this.isShown = true; + }) + .bindContextMenu(this.isShown,this.MyMenu(),{ + offset:({x:10,y:10}) + }) + }.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/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1250.ets new file mode 100644 index 0000000000000000000000000000000000000000..22153121833dc0012679ed1e86bf035efa4677cb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1250.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 UIComponentPopupboxPickerold1250 { + private selectedTime: Date = new Date('2022-07-22T08:00:00') + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .height('180vp') + .width('250vp') + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1260.ets new file mode 100644 index 0000000000000000000000000000000000000000..aa0ffb2961765f66fa39bc17a95b96027cfb2136 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1260.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 UIComponentPopupboxPickerold1260 { + private selectedTime: Date = new Date('2022-07-22T08:00:00') + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .height('400vp') + .width('400vp') + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1270.ets new file mode 100644 index 0000000000000000000000000000000000000000..d3903b6163c382a803305a88246fb15d859bbe61 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1270.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 UIComponentPopupboxPickerold1270 { + private selectedTime: Date = new Date('2022-07-22T08:00:00') + + build() { + Row() { + Column() { + TimePicker({ + selected: this.selectedTime, + }) + .height(undefined) + .width(undefined) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0450.ets new file mode 100644 index 0000000000000000000000000000000000000000..4e1935551ceebd2d3c42684292410f784d3aadcc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0450.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 { promptAction } from '@kit.ArkUI' +import { BusinessError } from '@kit.BasicServicesKit' + +@Entry +@Component +struct UIComponentPopupboxPopupFollowtransformoftarget0450 { + @State customPopup: boolean = false; + @State rotat:number = 0; + @Builder popupBuilder() { + Row({ space: 2 }) { + Image($r("app.media.icon")).width(24).height(24).margin({ left: 5 }) + Text('This is Custom Popup').fontSize(15) + }.width(200).height(50).padding(5) + } + build() { + Column() { + Column({space:150}){ + Button('rotate') + .id('btn') + .rotate({angle:this.rotat}) + .onClick(()=>{ + this.customPopup = !this.customPopup; + }) + .margin({top:200}) + .bindPopup(this.customPopup, { + builder: this.popupBuilder, // 气泡的内容 + placement:Placement.Bottom, // 气泡的弹出位置 + popupColor:Color.Pink, // 气泡的背景色 + autoCancel:true + }) + Button('旋转').onClick(()=>{ + animateTo({ + duration: 1000, + curve: Curve.Linear, + delay: 500, + iterations: 1, + playMode: PlayMode.Alternate + }, () => { + this.rotat = 90; + }) + }).id('rotate') + }.width('60%').height('60%').backgroundColor(Color.Pink).rotate({angle:this.rotat}) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..a213286ea3bb8319e87a602ed503d88243c22c09 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0010.ets @@ -0,0 +1,91 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentFunctionSpecialComponentsDialogTextPickerDialog0190 { + @State range: TextCascadePickerRangeContent[] = [ + { + text: 'a1', + children: [ + { + text: 'a2_1', + children: [ + { text: 'a3_1' }, + { text: 'a3_2' } + ] + }, + { + text: 'a2_2', + children: [ + { text: 'a3_3' }, + { text: 'a3_4' } + ] + } + ] + }, + { + text: 'b1', + children: [ + { + text: 'b2_1', + children: [ + { text: 'b3_1' }, + { text: 'b3_2' } + ] + }, + { + text: 'b2_2', + children: [ + { text: 'b3_3' }, + { text: 'b3_4' } + ] + } + ] + }, + { + text: 'c1', + children: [ + { + text: 'c2_1', + children: [ + { text: 'c3_1' }, + { text: 'c3_2' } + ] + }, + { + text: 'c2_2', + children: [ + { text: 'c3_3' }, + { text: 'c3_4' } + ] + } + ] + } + ]; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..8d494e2d72b060c6e10ef4cac00024ebda642b82 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0020.ets @@ -0,0 +1,91 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTextPickerDialogInteraction0020 { + @State range: TextCascadePickerRangeContent[] = [ + { + text: 'a1', + children: [ + { + text: 'a2_1', + children: [ + { text: 'a3_1' }, + { text: 'a3_2' } + ] + }, + { + text: 'a2_2', + children: [ + { text: 'a3_3' }, + { text: 'a3_4' } + ] + } + ] + }, + { + text: 'b1', + children: [ + { + text: 'b2_1', + children: [ + { text: 'b3_1' }, + { text: 'b3_2' } + ] + }, + { + text: 'b2_2', + children: [ + { text: 'b3_3' }, + { text: 'b3_4' } + ] + } + ] + }, + { + text: 'c1', + children: [ + { + text: 'c2_1', + children: [ + { text: 'c3_1' }, + { text: 'c3_2' } + ] + }, + { + text: 'c2_2', + children: [ + { text: 'c3_3' }, + { text: 'c3_4' } + ] + } + ] + } + ]; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..5f1d0717c98b4c823a8e4b7f91e44f79263dedb7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0030.ets @@ -0,0 +1,91 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTextPickerDialogInteraction0030 { + @State range: TextCascadePickerRangeContent[] = [ + { + text: 'a1', + children: [ + { + text: 'a2_1', + children: [ + { text: 'a3_1' }, + { text: 'a3_2' } + ] + }, + { + text: 'a2_2', + children: [ + { text: 'a3_3' }, + { text: 'a3_4' } + ] + } + ] + }, + { + text: 'b1', + children: [ + { + text: 'b2_1', + children: [ + { text: 'b3_1' }, + { text: 'b3_2' } + ] + }, + { + text: 'b2_2', + children: [ + { text: 'b3_3' }, + { text: 'b3_4' } + ] + } + ] + }, + { + text: 'c1', + children: [ + { + text: 'c2_1', + children: [ + { text: 'c3_1' }, + { text: 'c3_2' } + ] + }, + { + text: 'c2_2', + children: [ + { text: 'c3_3' }, + { text: 'c3_4' } + ] + } + ] + } + ]; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + TextPickerDialog.show({ + range: this.range, + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1000.ets new file mode 100644 index 0000000000000000000000000000000000000000..9e168d302be218f60241fad355cbebc24a7f45fd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1000.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 UIComponentPopupboxTextPickerDialogInterface1000 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1010.ets new file mode 100644 index 0000000000000000000000000000000000000000..ba43149489f2f7e652d2e03f4e764df3b4aaf595 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1010.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 UIComponentPopupboxTextPickerDialogInterface1010 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + canLoop: false, + range: this.range, + selected: 0 + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1020.ets new file mode 100644 index 0000000000000000000000000000000000000000..802f8d0d3dc712d76cd9a79d3fa32caa2215a181 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1020.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 UIComponentPopupboxTextPickerDialogInterface1020 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + canLoop: false, + range: this.range, + selected: 10 + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1030.ets new file mode 100644 index 0000000000000000000000000000000000000000..8152019cfe43e755b6868543feb5610fa35a6e05 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1030.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 UIComponentPopupboxTextPickerDialogInterface1030 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + canLoop: false, + range: this.range, + selected: 1, + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1040.ets new file mode 100644 index 0000000000000000000000000000000000000000..b62436a666ee18749f02b9b2447ab5e5cfe073c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1040.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 UIComponentPopupboxTextPickerDialogInterface1040 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + canLoop: false, + range: this.range, + value: '' + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1050.ets new file mode 100644 index 0000000000000000000000000000000000000000..6aedc94ecc72fe6e41448e19dfacfd34a578424c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1050.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 UIComponentPopupboxTextPickerDialogInterface1050 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + canLoop: false, + range: this.range, + value: null + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1060.ets new file mode 100644 index 0000000000000000000000000000000000000000..4917c53a40110f60261b4779de3e3872323e5d69 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1060.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 UIComponentPopupboxTextPickerDialogInterface1060 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + canLoop: false, + range: this.range, + value: undefined + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1070.ets new file mode 100644 index 0000000000000000000000000000000000000000..02cd0dfaeb35e38e04672e2a1ac936a68fb8ad78 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1070.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 UIComponentPopupboxTextPickerDialogInterface1070 { + @State range: TextPickerRangeContent[] = []; + @State log: string = ''; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + value: '2', + onAccept: (value: TextPickerResult) => { + console.info("TextPickerDialog:onAccept()" + JSON.stringify(value)); + this.log = "TextPickerDialog:onAccept()" + JSON.stringify(value); + } + }) + }) + } + + Text(this.log) + .margin({ top: 20 }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1080.ets new file mode 100644 index 0000000000000000000000000000000000000000..6e12ab5e3d04e92617bc7ee41d0184329abdf435 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1080.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 UIComponentPopupboxTextPickerDialogInterface1080 { + @State range: TextPickerRangeContent[] = []; + @State log: string = ''; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + value: '2', + onCancel: () => { + console.info("TextPickerDialog:onCancel()"); + this.log = "TextPickerDialog:onCancel()"; + } + }) + }) + } + + Text(this.log) + .margin({ top: 20 }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1090.ets new file mode 100644 index 0000000000000000000000000000000000000000..8231551ec12b5e438982d4caef0a0640057792ca --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1090.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 UIComponentPopupboxTextPickerDialogInterface1090 { + @State range: TextPickerRangeContent[] = []; + @State log: string = ''; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + { icon: '/testability/pages/images/img.png', text: 'a' }, + { icon: '/testability/pages/images/img.png', text: 'b' }, + ]; + TextPickerDialog.show({ + range: this.range, + value: '2', + onChange: (value: TextPickerResult) => { + console.info("TextPickerDialog:onChange()" + JSON.stringify(value)); + this.log = "TextPickerDialog:onChange()" + JSON.stringify(value); + } + }) + }) + } + + Text(this.log) + .margin({ top: 20 }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1100.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c0dfaa163a0a71c0e2a936358a5891b70446966 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1100.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 UIComponentPopupboxTextPickerDialogInterface1100 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + disappearTextStyle: { color: Color.Blue, font: { style: FontStyle.Italic } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1110.ets new file mode 100644 index 0000000000000000000000000000000000000000..1f4e51d8e5a0f856a7298c0a9757e380f9fb6753 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1110.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 UIComponentPopupboxTextPickerDialogInterface1110 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + disappearTextStyle: { color: Color.Blue, font: { style: FontStyle.Normal } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1120.ets new file mode 100644 index 0000000000000000000000000000000000000000..a1b187a1c325cd7912b414b8b543cb568016ecc2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1120.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 UIComponentPopupboxTextPickerDialogInterface1120 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + disappearTextStyle: { color: Color.Blue, font: { weight: 100 } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1130.ets new file mode 100644 index 0000000000000000000000000000000000000000..8692d1ee9b00c157500b449ca06ecba820852fd3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1130.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 UIComponentPopupboxTextPickerDialogInterface1130 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + disappearTextStyle: { color: Color.Blue, font: { weight: 400 } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1140.ets new file mode 100644 index 0000000000000000000000000000000000000000..d3ae957741ea2de5d93e854c8598e6e3b0aa989d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1140.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 UIComponentPopupboxTextPickerDialogInterface1140 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + disappearTextStyle: { color: Color.Blue, font: { weight: 900 } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1150.ets new file mode 100644 index 0000000000000000000000000000000000000000..11021d2c263796e327a26cad6fb56e4df4af220b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1150.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 UIComponentPopupboxTextPickerDialogInterface1150 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + disappearTextStyle: { color: Color.Blue, font: { weight: FontWeight.Bolder } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1160.ets new file mode 100644 index 0000000000000000000000000000000000000000..4b6f4b5b24925452795a5791570f8044dc4967c2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1160.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 UIComponentPopupboxTextPickerDialogInterface1160 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + disappearTextStyle: { color: Color.Blue, font: { weight: FontWeight.Bold } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1170.ets new file mode 100644 index 0000000000000000000000000000000000000000..5f143aefc2d06be23d1de7f571676a90b86ec01c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1170.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 UIComponentPopupboxTextPickerDialogInterface1170 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + disappearTextStyle: { color: Color.Blue, font: { weight: FontWeight.Lighter } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1180.ets new file mode 100644 index 0000000000000000000000000000000000000000..c63c30cb092892e9e03394486d270be908f384b1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1180.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 UIComponentPopupboxTextPickerDialogInterface1180 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + disappearTextStyle: { color: Color.Blue, font: { weight: FontWeight.Medium } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1190.ets new file mode 100644 index 0000000000000000000000000000000000000000..a027699a2d9fbc5e4d3f8996f61c77254c78a63a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1190.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 UIComponentPopupboxTextPickerDialogInterface1190 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + disappearTextStyle: { color: Color.Blue, font: { weight: FontWeight.Normal } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1200.ets new file mode 100644 index 0000000000000000000000000000000000000000..3cb895c3a9f0610da273976ebf7b456193eda355 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1200.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 UIComponentPopupboxTextPickerDialogInterface1200 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + disappearTextStyle: { color: Color.Blue, font: { weight: FontWeight.Regular } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1210.ets new file mode 100644 index 0000000000000000000000000000000000000000..7861f66d1ec31b097bc09e8f55168f1ccb61f86f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1210.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 UIComponentPopupboxTextPickerDialogInterface1210 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + textStyle: { color: Color.Blue, font: { style: FontStyle.Italic } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1220.ets new file mode 100644 index 0000000000000000000000000000000000000000..c9a3efa5197e6b34fd93fbc23596089868c0fd3d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1220.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 UIComponentPopupboxTextPickerDialogInterface1220 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + textStyle: { color: Color.Blue, font: { weight: FontWeight.Normal } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1230.ets new file mode 100644 index 0000000000000000000000000000000000000000..363df04541c4025b6f0ee8e4beb3b2dc021eb857 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1230.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 UIComponentPopupboxTextPickerDialogInterface1230 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + textStyle: { color: Color.Blue, font: { weight: 100 } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1240.ets new file mode 100644 index 0000000000000000000000000000000000000000..138e25b978a438d5f1146def98675b8d6da1a445 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1240.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 UIComponentPopupboxTextPickerDialogInterface1240 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + textStyle: { color: Color.Blue, font: { weight: 400 } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1250.ets new file mode 100644 index 0000000000000000000000000000000000000000..8da45d6e5d4d489dc9c9839df0df5a78b676cbd4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1250.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 UIComponentPopupboxTextPickerDialogInterface1250 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + textStyle: { color: Color.Blue, font: { weight: 900 } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1260.ets new file mode 100644 index 0000000000000000000000000000000000000000..da5a98bb34ee2df89c662f05bcf38c86142e749a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1260.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 UIComponentPopupboxTextPickerDialogInterface1260 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + textStyle: { color: Color.Blue, font: { weight: FontWeight.Bold } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1270.ets new file mode 100644 index 0000000000000000000000000000000000000000..086ebc83d385070d1494288ec43e2ddda211920f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1270.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 UIComponentPopupboxTextPickerDialogInterface1270 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + textStyle: { color: Color.Blue, font: { weight: FontWeight.Regular } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1280.ets new file mode 100644 index 0000000000000000000000000000000000000000..e56e6cf4fa3d1fedb4e18af184a28cb21e300bba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1280.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 UIComponentPopupboxTextPickerDialogInterface1280 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + textStyle: { color: Color.Blue, font: { weight: FontWeight.Lighter } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1290.ets new file mode 100644 index 0000000000000000000000000000000000000000..7e1bfef3d03d2f9c85d2c33b0d9b08e5b317329f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1290.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 UIComponentPopupboxTextPickerDialogInterface1290 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + textStyle: { color: Color.Blue, font: { weight: FontWeight.Medium } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1300.ets new file mode 100644 index 0000000000000000000000000000000000000000..d9d66e609667b7bc141a1e21e00f115c9b55bcfb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1300.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 UIComponentPopupboxTextPickerDialogInterface1300 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + textStyle: { color: Color.Blue, font: { weight: FontWeight.Normal } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1310.ets new file mode 100644 index 0000000000000000000000000000000000000000..1d0697cf54bb81dc69b7ca86582b0428c28ffedf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1310.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 UIComponentPopupboxTextPickerDialogInterface1310 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + textStyle: { color: Color.Blue, font: { weight: FontWeight.Bold } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1320.ets new file mode 100644 index 0000000000000000000000000000000000000000..95c01d63675130f401241e090d8be37c897a420a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1320.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 UIComponentPopupboxTextPickerDialogInterface1320 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + selectedTextStyle: { color: Color.Blue, font: { style: FontStyle.Italic } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1330.ets new file mode 100644 index 0000000000000000000000000000000000000000..76b5fd5a44f7cedf48bba0b1198e9ecfac508567 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1330.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 UIComponentPopupboxTextPickerDialogInterface1330 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + selectedTextStyle: { color: Color.Blue, font: { style: FontStyle.Normal } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1340.ets new file mode 100644 index 0000000000000000000000000000000000000000..3d400cd7f17c62bf23e91337f449e522e7d88259 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1340.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 UIComponentPopupboxTextPickerDialogInterface1340 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + selectedTextStyle: { color: Color.Blue, font: { weight: 100 } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1350.ets new file mode 100644 index 0000000000000000000000000000000000000000..8fd8e2d8c8774daa07370ffb8c9defcbfee8b0b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1350.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 UIComponentPopupboxTextPickerDialogInterface1350 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + selectedTextStyle: { color: Color.Blue, font: { weight: 400 } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1360.ets new file mode 100644 index 0000000000000000000000000000000000000000..31ddf6a112f3c53ddfad89ebf4e89d84dc95f9a3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1360.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 UIComponentPopupboxTextPickerDialogInterface1360 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + selectedTextStyle: { color: Color.Blue, font: { weight: 900 } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1370.ets new file mode 100644 index 0000000000000000000000000000000000000000..4fc7b3c59968b481612ba9022e6f015d62532e49 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1370.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 UIComponentPopupboxTextPickerDialogInterface1370 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + selectedTextStyle: { color: Color.Blue, font: { weight: FontWeight.Bolder } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1380.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c7c415c5501d5faec96f5464211f35d1017d0c7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1380.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 UIComponentPopupboxTextPickerDialogInterface1380 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + selectedTextStyle: { color: Color.Blue, font: { weight: FontWeight.Bold } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1390.ets new file mode 100644 index 0000000000000000000000000000000000000000..e680251e97247e98dc202ef9471b87446e4ed789 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1390.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 UIComponentPopupboxTextPickerDialogInterface1390 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + selectedTextStyle: { color: Color.Blue, font: { weight: FontWeight.Lighter } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1400.ets new file mode 100644 index 0000000000000000000000000000000000000000..a27e66013919f24ee5e912f7715a068ec47e066f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1400.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 UIComponentPopupboxTextPickerDialogInterface1400 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + selectedTextStyle: { color: Color.Blue, font: { weight: FontWeight.Medium } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1410.ets new file mode 100644 index 0000000000000000000000000000000000000000..b777f74594e7466030619b9a646033cac70c0683 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1410.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 UIComponentPopupboxTextPickerDialogInterface1410 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + selectedTextStyle: { color: Color.Blue, font: { weight: FontWeight.Normal } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1420.ets new file mode 100644 index 0000000000000000000000000000000000000000..cbb0e2c116ffe1eecb5946528b88e784595f197c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1420.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 UIComponentPopupboxTextPickerDialogInterface1420 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + selectedTextStyle: { color: Color.Blue, font: { weight: FontWeight.Regular } } + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1430.ets new file mode 100644 index 0000000000000000000000000000000000000000..a589ad98fc0e249841cae4cdc08ac315d2e6fd93 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1430.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 UIComponentPopupboxTextPickerDialogInterface1430 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + defaultPickerItemHeight: 10 + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1440.ets new file mode 100644 index 0000000000000000000000000000000000000000..8b7ea87d086b0f55c8b5a9e2a9e0712b359da0fb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1440.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 UIComponentPopupboxTextPickerDialogInterface1440 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + selected: 2, + defaultPickerItemHeight: '10px' + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1450.ets new file mode 100644 index 0000000000000000000000000000000000000000..e365862e6e436d317640e7b404d12dd4c887fee6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1450.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 UIComponentPopupboxTextPickerDialogInterface1450 { + @State range: string[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = ['apple', 'orange', 'banana']; + TextPickerDialog.show({ + range: this.range + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1460.ets new file mode 100644 index 0000000000000000000000000000000000000000..f6de320e986f95cd75759cc5011a3784e06c66aa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1460.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 UIComponentPopupboxTextPickerDialogInterface1460 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = []; + TextPickerDialog.show({ + range: this.range, + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1470.ets new file mode 100644 index 0000000000000000000000000000000000000000..0f27c8fe4cdabcb1ae8cfc4818f9ba10cff7e673 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1470.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 UIComponentPopupboxTextPickerDialogInterface1470 { + @State range: TextPickerRangeContent[] = []; + + build() { + Column() { + Row() { + Button("Click").id('ShowTextPicker').margin({ top: 20 }).onClick(() => { + this.range = [ + { icon: '/testability/pages/images/img.png', text: 'apple' }, + { icon: '/testability/pages/images/img.png', text: 'orange' }, + ]; + TextPickerDialog.show({ + range: this.range, + }) + }) + } + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0700.ets new file mode 100644 index 0000000000000000000000000000000000000000..27ca156b7cbcc1b44991986b321b86b30fea4102 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0700.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 UIComponentPopupboxTimepickerdialogInterface0700 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog") + .id('UIComponentPopupboxTimepickerdialogInterface0700_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + color: 'rgb(255, 0, 0)', + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0710.ets new file mode 100644 index 0000000000000000000000000000000000000000..51e9907cd4ee18e3045c0cda3fa977b5794e575a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0710.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 UIComponentPopupboxTimepickerdialogInterface0710 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0710_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + color: $r('app.color.blue') + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0720.ets new file mode 100644 index 0000000000000000000000000000000000000000..da1b8a0db67e456c4e3686052d3a9c165a2c7366 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0720.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 UIComponentPopupboxTimepickerdialogInterface0720 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0720_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + color: 0x0000ff + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0730.ets new file mode 100644 index 0000000000000000000000000000000000000000..ffab88b8d53a42cd01a069b23e5e6ae048735788 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0730.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 UIComponentPopupboxTimepickerdialogInterface0730 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0730_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + color: Color.Blue + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0740.ets new file mode 100644 index 0000000000000000000000000000000000000000..19e88d9b0e39056f93fc5deff423de72af636855 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0740.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0740 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0740_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + family: 'Arial,HarmonyOS Sans' + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0750.ets new file mode 100644 index 0000000000000000000000000000000000000000..67ec32b5a2255429c83eb25aa4d4128012898394 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0750.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0750 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0750_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + family: 'Arial,HarmonyOS Sans' + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0760.ets new file mode 100644 index 0000000000000000000000000000000000000000..8ed37a33a319353c8417fbeba38d03662f71fbcb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0760.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0760 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog") + .id('UIComponentPopupboxTimepickerdialogInterface0760_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + size: '10px' + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0770.ets new file mode 100644 index 0000000000000000000000000000000000000000..7c308f910d362748a73d288d2f7714636d301f92 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0770.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0770 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0770_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + size: 10 + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0780.ets new file mode 100644 index 0000000000000000000000000000000000000000..0617306d7c77c1399d8e6c43377e42f79104cb43 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0780.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0780 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0780_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + size: $r('app.string.time_picker_10fp') + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0790.ets new file mode 100644 index 0000000000000000000000000000000000000000..b8d3408f62a96d91cc082b640835a81a332798ee --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0790.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0790 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0790_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + style: FontStyle.Italic + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0800.ets new file mode 100644 index 0000000000000000000000000000000000000000..3bdff12eae7893c11ed0d5c2c7836e760c5d894e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0800.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0800 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0800_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + style: FontStyle.Normal + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0810.ets new file mode 100644 index 0000000000000000000000000000000000000000..90e9c373afa22ee717b99a0e03e5023b5af74642 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0810.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0810 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0810_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + weight: FontWeight.Bold + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0820.ets new file mode 100644 index 0000000000000000000000000000000000000000..689c77b62b58f123e8538f619e15ee3bf2bb02d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0820.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0820 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0820_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + weight: FontWeight.Bolder + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0830.ets new file mode 100644 index 0000000000000000000000000000000000000000..845f3b6659668a704087477910227b5c310f786e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0830.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0830 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0830_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + weight: FontWeight.Medium + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0840.ets new file mode 100644 index 0000000000000000000000000000000000000000..236908de9d1755b2409e15affa88fec31286efb8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0840.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0840 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0840_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + weight: FontWeight.Normal + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0850.ets new file mode 100644 index 0000000000000000000000000000000000000000..bc915dd5807d537432a0a3b49a6163c0b99c9624 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0850.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0850 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0850_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + weight: FontWeight.Regular + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0860.ets new file mode 100644 index 0000000000000000000000000000000000000000..29609e92f3afd2eb02c8ddb65f185df458884c99 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0860.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0860 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog") + .id('UIComponentPopupboxTimepickerdialogInterface0860_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + weight: 400 + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0870.ets new file mode 100644 index 0000000000000000000000000000000000000000..92d0caa2a7930fb9ec71dfbdd859d453b0d41bb3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0870.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0870 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog") + .id('UIComponentPopupboxTimepickerdialogInterface0870_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + weight: 500 + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0880.ets new file mode 100644 index 0000000000000000000000000000000000000000..993f5c23615bd48c91ceed752cdd2025c64d72a9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0880.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0880 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0880_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + disappearTextStyle: { + font: { + weight: '500' + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0890.ets new file mode 100644 index 0000000000000000000000000000000000000000..4b87f1a1a8a5fc8c072539614c74f0d2d630e641 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0890.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 UIComponentPopupboxTimepickerdialogInterface0890 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + @State timeText: string = ''; + + build() { + Row() { + Column() { + Text('时间:' + this.timeText) + .fontSize(50) + Button("TimePickerDialog") + .id('UIComponentPopupboxTimepickerdialogInterface0890_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.timeText = value.hour + '小时' + value.minute + '分钟'; + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0900.ets new file mode 100644 index 0000000000000000000000000000000000000000..8321b6ff495a867cfe51824758f1d32811a41f22 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0900.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. + */ +import promptAction from '@ohos.promptAction' + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0900 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0900_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + promptAction.showToast({ + message: '取消弹窗', + duration: 4000, + }); + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0910.ets new file mode 100644 index 0000000000000000000000000000000000000000..5fec0e8353ed6102b590260e8fb341abd84e7d99 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0910.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 UIComponentPopupboxTimepickerdialogInterface0910 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + @State timeText: string = '8小时30分钟'; + + build() { + Row() { + Column() { + Text(this.timeText) + .fontSize(50) + Button("TimePickerDialog") + .id('UIComponentPopupboxTimepickerdialogInterface0910_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + this.timeText = value.hour + '小时' + value.minute + '分钟'; + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0920.ets new file mode 100644 index 0000000000000000000000000000000000000000..1f00b2b1585f41db2b4f440d579efca13a2939e5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0920.ets @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0920 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0920_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0930.ets new file mode 100644 index 0000000000000000000000000000000000000000..84284b367dcb89fd71832330a16fa8d520094bfe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0930.ets @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0930 { + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0930_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0940.ets new file mode 100644 index 0000000000000000000000000000000000000000..e750f0629b8e979f75dfa8ca6683aab88d0d3744 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0940.ets @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0940 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0940_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + color: 'rgb(255, 0, 0)' + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0950.ets new file mode 100644 index 0000000000000000000000000000000000000000..1448989f355491cf72334054f0facfe2a6d6f12e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0950.ets @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0950 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0950_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + color: $r('app.color.blue') + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0960.ets new file mode 100644 index 0000000000000000000000000000000000000000..c734343f2315cb4705a94a4b76ada2edb479cf75 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0960.ets @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0960 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0960_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + color: 0x0000ff + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0970.ets new file mode 100644 index 0000000000000000000000000000000000000000..a538f8baefa3c220ee2b8c8bf13a4d86dcc058f8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0970.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 UIComponentPopupboxTimepickerdialogInterface0970 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0970_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + color: Color.Blue + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0980.ets new file mode 100644 index 0000000000000000000000000000000000000000..21821ed0916da34a5f708db8d7fcacb9924ea601 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0980.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0980 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface0980_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + family: $r('app.string.popup_font_time_picker') + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0990.ets new file mode 100644 index 0000000000000000000000000000000000000000..f112e689bfa496581c0ab114ecabd34a5817fed6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0990.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface0990 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog") + .id('UIComponentPopupboxTimepickerdialogInterface0990_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + family: 'Arial,HarmonyOS Sans' + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1000.ets new file mode 100644 index 0000000000000000000000000000000000000000..cb9b7b6c35c48e7d154384d62bfccc8dd3f60472 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1000.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1000 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1000_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + size: '10px' + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1010.ets new file mode 100644 index 0000000000000000000000000000000000000000..ab37c0363b27fc37d1a5a0d0d17de1d5becbf3d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1010.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 UIComponentPopupboxTimepickerdialogInterface1010 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1010_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + size: 10 + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1020.ets new file mode 100644 index 0000000000000000000000000000000000000000..56b29712e7ca0a0c9eee33e645ab9180caad84d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1020.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1020 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1020_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + size: $r('app.string.time_picker_10vp') + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1030.ets new file mode 100644 index 0000000000000000000000000000000000000000..a767f84e259e27ca6ed3157f69f6d48ff369d9f7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1030.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 UIComponentPopupboxTimepickerdialogInterface1030 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1030_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + style: FontStyle.Italic + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1040.ets new file mode 100644 index 0000000000000000000000000000000000000000..3d80fa01780b696354ef23953e97d5aee482037c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1040.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 UIComponentPopupboxTimepickerdialogInterface1040 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1040_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + style: FontStyle.Normal + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1050.ets new file mode 100644 index 0000000000000000000000000000000000000000..7280928fd156ecceed22bb2053abe529ba8213a5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1050.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 UIComponentPopupboxTimepickerdialogInterface1050 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1050_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + weight: FontWeight.Bold + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1060.ets new file mode 100644 index 0000000000000000000000000000000000000000..f6faa87485cb357698bf527aca36901190ac98d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1060.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 UIComponentPopupboxTimepickerdialogInterface1060 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1060_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + weight: FontWeight.Bolder + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1070.ets new file mode 100644 index 0000000000000000000000000000000000000000..e3f0bc065a529248cc10439877c718eac77f0d4a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1070.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 UIComponentPopupboxTimepickerdialogInterface1070 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1070_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + weight: FontWeight.Lighter + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1080.ets new file mode 100644 index 0000000000000000000000000000000000000000..835d11e41d278b4fbf19dabb62b7b427987d0e0b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1080.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 UIComponentPopupboxTimepickerdialogInterface1080 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1080_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + weight: FontWeight.Medium + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1090.ets new file mode 100644 index 0000000000000000000000000000000000000000..7062713e7834448b55e295ae924e65892e4e1812 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1090.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 UIComponentPopupboxTimepickerdialogInterface1090 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1090_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + weight: FontWeight.Normal + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1100.ets new file mode 100644 index 0000000000000000000000000000000000000000..d2f652778bc32ede26abe2143e8f6dc289328711 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1100.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1100 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1100_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + weight: FontWeight.Regular + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1110.ets new file mode 100644 index 0000000000000000000000000000000000000000..1bf4deead175e785b78fe3ee1c815927f0db2af3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1110.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1110 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1110_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + weight: 400 + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1120.ets new file mode 100644 index 0000000000000000000000000000000000000000..47b57484025d8a1ea2a0416f314d4c676e11b870 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1120.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1120 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1120_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + weight: 500 + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1130.ets new file mode 100644 index 0000000000000000000000000000000000000000..7eb3b077407c0ca0ddfad99a77334c5d4f69bece --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1130.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1130 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1130_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + selectedTextStyle: { + font: { + weight: '500' + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1140.ets new file mode 100644 index 0000000000000000000000000000000000000000..8c9384d687809dd61f817e1fc605abf776ba0d16 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1140.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 UIComponentPopupboxTimepickerdialogInterface1140 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1140_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + color: 'rgb(255, 0, 0)', + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1150.ets new file mode 100644 index 0000000000000000000000000000000000000000..3c87db8adf5ae09450459759ec3f88519aca62e8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1150.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 UIComponentPopupboxTimepickerdialogInterface1150 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1150_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + color: $r('app.color.blue') + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1160.ets new file mode 100644 index 0000000000000000000000000000000000000000..8054bf6d2a3bcbeaf16ae25ff568fa487a58fd00 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1160.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 UIComponentPopupboxTimepickerdialogInterface1160 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1160_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + color: 0x0000ff + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1170.ets new file mode 100644 index 0000000000000000000000000000000000000000..4817c9debdffd542e6530fe97241ea853bdc04db --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1170.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 UIComponentPopupboxTimepickerdialogInterface1170 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1170_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + color: Color.Black + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1180.ets new file mode 100644 index 0000000000000000000000000000000000000000..aac4e67118f0624068efbb7404a69355f7eb7bd7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1180.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 UIComponentPopupboxTimepickerdialogInterface1180 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1180_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + family: $r('app.string.popup_font_time_picker') + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1190.ets new file mode 100644 index 0000000000000000000000000000000000000000..33039cbd6e960b6c341eaa6ac571dd80dc2dfaf9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1190.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 UIComponentPopupboxTimepickerdialogInterface1190 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1190_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + family: 'Arial,HarmonyOS Sans' + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1200.ets new file mode 100644 index 0000000000000000000000000000000000000000..d56bc694bf53e135d70e330ed43d22cd2fede2c3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1200.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1200 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1200_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + size: '10px' + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1210.ets new file mode 100644 index 0000000000000000000000000000000000000000..0fa6245c4da88599253855eb48e231f3b71b9604 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1210.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1210 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1210_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + size: 10 + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1220.ets new file mode 100644 index 0000000000000000000000000000000000000000..8ac51f27fb2088155888c13a13835c0f9db19950 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1220.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1220 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1220_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + size: $r('app.string.time_picker_10fp') + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1230.ets new file mode 100644 index 0000000000000000000000000000000000000000..17d06c20b3837ba3ab601e79c5d65fea6798fb30 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1230.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 UIComponentPopupboxTimepickerdialogInterface1230 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1230_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + style: FontStyle.Italic + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1240.ets new file mode 100644 index 0000000000000000000000000000000000000000..9ca3d1d5609beedee9ab2dd174141cf0de77ea6c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1240.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 UIComponentPopupboxTimepickerdialogInterface1240 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1240_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + style: FontStyle.Normal + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1250.ets new file mode 100644 index 0000000000000000000000000000000000000000..83f363cb5dd6a1883f8c35024d636eb32f8d82c2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1250.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 UIComponentPopupboxTimepickerdialogInterface1250 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1250_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + weight: FontWeight.Bold + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1260.ets new file mode 100644 index 0000000000000000000000000000000000000000..a3bcf1d8e2b65e256cc473919758e5f0e78faabc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1260.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 UIComponentPopupboxTimepickerdialogInterface1260 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1260_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + weight: FontWeight.Bolder + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1270.ets new file mode 100644 index 0000000000000000000000000000000000000000..be574604084ca02ef1f7a2b8eb5461c63febd4c2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1270.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1270 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1270_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + weight: FontWeight.Lighter + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1280.ets new file mode 100644 index 0000000000000000000000000000000000000000..067ee770d290e60d06ed218dbb11867e7b9caf22 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1280.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1280 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1280_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + weight: FontWeight.Medium + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1290.ets new file mode 100644 index 0000000000000000000000000000000000000000..d7df0a4baa09f339d3c8d2b4832533a5ba678224 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1290.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 UIComponentPopupboxTimepickerdialogInterface1290 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1290_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + weight: FontWeight.Normal + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1300.ets new file mode 100644 index 0000000000000000000000000000000000000000..9aa6f977637f56ee75a733f72e3dee1a7a7c8294 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1300.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1300 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1300_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + weight: FontWeight.Regular + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1310.ets new file mode 100644 index 0000000000000000000000000000000000000000..2fb52e9a982746acd6c9522df87223950fc8f5a3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1310.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 UIComponentPopupboxTimepickerdialogInterface1310 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1310_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + weight: 400 + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1320.ets new file mode 100644 index 0000000000000000000000000000000000000000..35b5a6acd88c9f1a418d6fb83d6fe03a93ad149f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1320.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 UIComponentPopupboxTimepickerdialogInterface1320 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1320_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + weight: 500 + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1330.ets new file mode 100644 index 0000000000000000000000000000000000000000..f06a8671fe77ade655630b7182a2d3525a92bad8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1330.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 UIComponentPopupboxTimepickerdialogInterface1330 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1330_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + textStyle: { + font: { + weight: '500' + } + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1340.ets new file mode 100644 index 0000000000000000000000000000000000000000..7e12ac399ffbb71833ab40070fb4e058f6e3211e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1340.ets @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1340 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog") + .id('UIComponentPopupboxTimepickerdialogInterface1340_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: false, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1350.ets new file mode 100644 index 0000000000000000000000000000000000000000..bf7b4e1f531745826d0d6af8762514439f107521 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1350.ets @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface1350 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1350_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1360.ets new file mode 100644 index 0000000000000000000000000000000000000000..1444d98d659c70850f65f65457485767d73d47fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1360.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 UIComponentPopupboxTimepickerdialogInterface1360 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface1360_001') + .margin(20) + .onClick(() => { + this.getUIContext().showTimePickerDialog({ + selected: this.selectTime, + useMilitaryTime: true, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + + this.getUIContext().showTimePickerDialog({ + offset: { + dx: 50, + dy: 50, + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20010.ets new file mode 100644 index 0000000000000000000000000000000000000000..6d3a8fb02458a90aea133dff086ad1c28105c436 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20010.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 UIComponentPopupboxTimepickerdialogInterface20010 { + build() { + Row() { + Column() { + Button("TimePickerDialog") + .id('button1') + .margin(20) + .onClick(() => { + TimePickerDialog.show(); + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20020.ets new file mode 100644 index 0000000000000000000000000000000000000000..79e0e68eab2c226e7279420e39a64584dafb9f30 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20020.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 UIComponentPopupboxTimepickerdialogInterface20020 { + build() { + Row() { + Column() { + Button("TimePickerDialog") + .id('UIComponentPopupboxTimepickerdialogInterface20020_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({}); + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20030.ets new file mode 100644 index 0000000000000000000000000000000000000000..3787e66c483344259d675b92ca9bb92529d30bfc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20030.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20030 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20030_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + alignment: DialogAlignment.Top, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20040.ets new file mode 100644 index 0000000000000000000000000000000000000000..912c14e590c7809633056e4644169db140a251be --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20040.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20040 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20040_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + alignment: DialogAlignment.Center, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20050.ets new file mode 100644 index 0000000000000000000000000000000000000000..f15357500af74f6270170d6d9314246ea59fb51c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20050.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20050 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20050_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + alignment: DialogAlignment.Bottom, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20060.ets new file mode 100644 index 0000000000000000000000000000000000000000..e68d67add7e37b9bdeb93e7d998fa4b2ad98f7b2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20060.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20060 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20060_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + alignment: DialogAlignment.Default, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20070.ets new file mode 100644 index 0000000000000000000000000000000000000000..c5fd16a86671ef5d66fb09eaa56093e4ea8c5b1e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20070.ets @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20070 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20070_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + alignment: DialogAlignment.TopStart, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20080.ets new file mode 100644 index 0000000000000000000000000000000000000000..e1bb1340bdd07936f19dbdb8e748e306aee66163 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20080.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20080 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20080_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + alignment: DialogAlignment.TopEnd, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20090.ets new file mode 100644 index 0000000000000000000000000000000000000000..2fbbd9e1890f650036bb06efb44a03e104405f3d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20090.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20090 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20090_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + alignment: DialogAlignment.CenterStart, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20100.ets new file mode 100644 index 0000000000000000000000000000000000000000..a09f971467b64c2c9c14f85dfbdf54952207a1e4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20100.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20100 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20100_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + alignment: DialogAlignment.CenterEnd, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20110.ets new file mode 100644 index 0000000000000000000000000000000000000000..5a877689eaf7d042549eefc87917e3b7243fd916 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20110.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20110 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20110_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + alignment: DialogAlignment.BottomStart, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20120.ets new file mode 100644 index 0000000000000000000000000000000000000000..df9ae77ce9ae218ab6005346b04f36eacaddf395 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20120.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20120 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20120_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + alignment: DialogAlignment.BottomEnd, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20130.ets new file mode 100644 index 0000000000000000000000000000000000000000..d080784ded5e422bf6ebc4a552ffae584d867c03 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20130.ets @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20130 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20130_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20140.ets new file mode 100644 index 0000000000000000000000000000000000000000..8c0597a3aae775dcf5c7a5ca0c1732d78fd699b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20140.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20140 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20140_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + offset: { + dx: 0, + dy: 0, + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20150.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c79cb9ec90407c87e969910b4c1abfda8621810 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20150.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 UIComponentPopupboxTimepickerdialogInterface20150 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20150_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + offset: { + dx: -20, + dy: 20, + }, + // alignment: DialogAlignment.BottomEnd, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20160.ets new file mode 100644 index 0000000000000000000000000000000000000000..47483c53b6e2a6fae5fc75d56eaf424f64622d9f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20160.ets @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20160 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20160_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20170.ets new file mode 100644 index 0000000000000000000000000000000000000000..62526a378ca41ad31b5e98e797edd47ac8b96481 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20170.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 UIComponentPopupboxTimepickerdialogInterface20170 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20170_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + maskRect: { + x: 50, + y: 50, + width: '50%', + height: '50%', + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20180.ets new file mode 100644 index 0000000000000000000000000000000000000000..4e59abb580662f716d24a518bf096c813fbf8f9f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20180.ets @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20180 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20180_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20190.ets new file mode 100644 index 0000000000000000000000000000000000000000..b3e76f4cf4a87e1570b6ec12be5a3ff974db021e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20190.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 UIComponentPopupboxTimepickerdialogInterface20190 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20190_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.NONE, + backgroundColor: Color.Pink, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20200.ets new file mode 100644 index 0000000000000000000000000000000000000000..8238c09a40e416876bc5ecfcd14383f14cddbac7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20200.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 UIComponentPopupboxTimepickerdialogInterface20200 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20200_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.NONE, + backgroundColor: 0x008000, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20210.ets new file mode 100644 index 0000000000000000000000000000000000000000..eea8cde811296bf0aadc14067678f2b9258368ff --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20210.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 UIComponentPopupboxTimepickerdialogInterface20210 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20210_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundColor: '#9effffff', + backgroundBlurStyle: BlurStyle.NONE, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20220.ets new file mode 100644 index 0000000000000000000000000000000000000000..ffc13ddc6799802a9a97e45dfcbe055ae9c0b780 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20220.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 UIComponentPopupboxTimepickerdialogInterface20220 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20220_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundColor: $r('app.color.Pink'), + backgroundBlurStyle: BlurStyle.NONE, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20230.ets new file mode 100644 index 0000000000000000000000000000000000000000..d60ea7db9b865198d3ba2985b366f39c6d5123b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20230.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20230 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20230_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundColor: $r('app.color.color_gray'), + backgroundBlurStyle: BlurStyle.NONE, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20240.ets new file mode 100644 index 0000000000000000000000000000000000000000..aee87918495c84d8a465120b751375947086f5f6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20240.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20240 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20240_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.NONE, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20250.ets new file mode 100644 index 0000000000000000000000000000000000000000..541d21c0d3bee009d773f56e743191c1f559d424 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20250.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 UIComponentPopupboxTimepickerdialogInterface20250 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + @State m: number = 0 + @State bgColors: Color[] = [Color.Red, Color.Pink, Color.Orange, Color.Green, Color.Gray, Color.Blue] + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20250_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundColor: this.bgColors[this.m], + backgroundBlurStyle: BlurStyle.NONE, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + this.m += 1; + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20260.ets new file mode 100644 index 0000000000000000000000000000000000000000..f2d6159ff86997e01d4bff5a08c115f0997ca6b9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20260.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 UIComponentPopupboxTimepickerdialogInterface20260 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20260_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.Thin, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20270.ets new file mode 100644 index 0000000000000000000000000000000000000000..d6404c56171958ad698dea61241512910578581a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20270.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 UIComponentPopupboxTimepickerdialogInterface20270 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20270_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.Regular, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20280.ets new file mode 100644 index 0000000000000000000000000000000000000000..4a77c5b831ff87cb5c379594114113c81ff6cb5e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20280.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 UIComponentPopupboxTimepickerdialogInterface20280 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20280_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.Thick, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20290.ets new file mode 100644 index 0000000000000000000000000000000000000000..69d6515da75eefb5fea7b2afbaa814ad90598f23 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20290.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 UIComponentPopupboxTimepickerdialogInterface20290 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20290_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.BACKGROUND_THIN, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20300.ets new file mode 100644 index 0000000000000000000000000000000000000000..0b7efa47f11529cdebd624e5b3bb4b774809ea78 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20300.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 UIComponentPopupboxTimepickerdialogInterface20300 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20300_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.BACKGROUND_REGULAR, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20310.ets new file mode 100644 index 0000000000000000000000000000000000000000..ab23f4151e8634e4281dc02936ed0add0d65438e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20310.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 UIComponentPopupboxTimepickerdialogInterface20310 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20310_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.BACKGROUND_THICK, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20320.ets new file mode 100644 index 0000000000000000000000000000000000000000..e0150a4fff1d9b479e6afa043ffba2bd23a91e07 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20320.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 UIComponentPopupboxTimepickerdialogInterface20320 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20320_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.BACKGROUND_ULTRA_THICK, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20330.ets new file mode 100644 index 0000000000000000000000000000000000000000..29a4ce00f6e5445d67ff39892cf392f5e5e88f97 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20330.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 UIComponentPopupboxTimepickerdialogInterface20330 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20330_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.NONE, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20340.ets new file mode 100644 index 0000000000000000000000000000000000000000..8d1d7cc95774046178bbe17806041cc0bb863938 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20340.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 UIComponentPopupboxTimepickerdialogInterface20340 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20340_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.COMPONENT_ULTRA_THIN, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20350.ets new file mode 100644 index 0000000000000000000000000000000000000000..47b796fc74105a85032c602da197e904195a3c05 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20350.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 UIComponentPopupboxTimepickerdialogInterface20350 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20350_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.COMPONENT_THIN, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20360.ets new file mode 100644 index 0000000000000000000000000000000000000000..25a033d96a73d5a8c6cab3d9263c8bbcc99028fa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20360.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 UIComponentPopupboxTimepickerdialogInterface20360 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20360_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.COMPONENT_REGULAR, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20370.ets new file mode 100644 index 0000000000000000000000000000000000000000..e12b87bc3dc51b6243eb9ccd7ec1a40d02ce35d3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20370.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 UIComponentPopupboxTimepickerdialogInterface20370 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20370_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.COMPONENT_THICK, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20380.ets new file mode 100644 index 0000000000000000000000000000000000000000..383830a267058dc5fc1f1c0d041a15b42f20ebc8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20380.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 UIComponentPopupboxTimepickerdialogInterface20380 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20380_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + backgroundBlurStyle: BlurStyle.COMPONENT_ULTRA_THICK, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20390.ets new file mode 100644 index 0000000000000000000000000000000000000000..daea09d3924c71a53b9bf6de34ff1d1ce60a6b4a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20390.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20390 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20390_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + Column() + .width('100%') + .height('50%') + .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20400.ets new file mode 100644 index 0000000000000000000000000000000000000000..3dd7e4b80f90846b98dca17ea9da17e1ac36d148 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20400.ets @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogInterface20400 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogInterface20400_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + alignment: DialogAlignment.Default, + offset: { + dx: 0, + dy: 0, + }, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + // Column() + // .width('100%') + // .height('50%') + // .backgroundColor('red') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..4852206ece753554797b73e87d7bf215cfab610b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0010.ets @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import Window from '@ohos.window' +import common from '@ohos.app.ability.common'; + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogScenarios0010 { + private portrait: boolean = true + + build() { + Row() { + Column() { + Button("DatePickerDialog") + .id('UIComponentPopupboxTimepickerdialogScenarios0010_001') + .margin(20) + .onClick(() => { + this.changeOrientation(); + this.getUIContext().showDatePickerDialog({}) + DatePickerDialog.show({}) + setTimeout(() => { + this.changeOrientation(); + }, 3000) + }) + } + .width('100%') + .height('100%') + } + } + + private changeOrientation() { + let context = getContext(this) as common.UIAbilityContext; + let promise = Window.getLastWindow(context); + promise.then((data) => { + const windowClass = data; + if (this.portrait) { + let orientation = Window.Orientation.LANDSCAPE; + windowClass.setPreferredOrientation(orientation, (err) => { + }); + this.portrait = !this.portrait + console.info('Succeeded in obtaining the top window. Data: ' + JSON.stringify(data)); + } else { + let orientation = Window.Orientation.PORTRAIT; + windowClass.setPreferredOrientation(orientation, (err) => { + }); + this.portrait = !this.portrait + console.info('Succeeded in obtaining the top window. Data: ' + JSON.stringify(data)); + } + }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..535bd65e478d3ef488a65cdc83ffcef5f5b570fa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0020.ets @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import Window from '@ohos.window' +import common from '@ohos.app.ability.common'; + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogScenarios0020 { + private portrait: boolean = true + + build() { + Row() { + Column() { + Button("DatePickerDialog") + .id('UIComponentPopupboxTimepickerdialogScenarios0020_001') + .margin(20) + .onClick(() => { + this.changeOrientation(); + DatePickerDialog.show({}) + this.getUIContext().showDatePickerDialog({}) + setTimeout(() => { + this.changeOrientation(); + }, 3000) + }) + } + .width('100%') + .height('100%') + } + } + + private changeOrientation() { + let context = getContext(this) as common.UIAbilityContext; + let promise = Window.getLastWindow(context); + promise.then((data) => { + const windowClass = data; + if (this.portrait) { + let orientation = Window.Orientation.LANDSCAPE; + windowClass.setPreferredOrientation(orientation, (err) => { + }); + this.portrait = !this.portrait + console.info('Succeeded in obtaining the top window. Data: ' + JSON.stringify(data)); + } else { + let orientation = Window.Orientation.PORTRAIT; + windowClass.setPreferredOrientation(orientation, (err) => { + }); + this.portrait = !this.portrait + console.info('Succeeded in obtaining the top window. Data: ' + JSON.stringify(data)); + } + }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..29daf2a4599e7b66684cb05bcba3e9a18e994411 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0030.ets @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogScenarios0030 { + private selectTime: Date = new Date('2020-12-25T08:30:00') + @State quantity: number = 0; + + build() { + Row() { + Column() { + Text("打开次数:" + this.quantity) + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogScenarios0030_001') + .margin(20) + .onClick(() => { + this.quantity++; + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute) + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)) + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()") + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)) + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()") + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()") + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()") + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()") + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..68a9722ef2c0826150b5e8e859894c863fbea424 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0090.ets @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxTimepickerdialogScenarios0090 { + private selectTime: Date = new Date('2020-12-25T08:30:00'); + + build() { + Row() { + Column() { + Button("TimePickerDialog 24小时制") + .id('UIComponentPopupboxTimepickerdialogScenarios0090_001') + .margin(20) + .onClick(() => { + TimePickerDialog.show({ + selected: this.selectTime, + useMilitaryTime: true, + onAccept: (value: TimePickerResult) => { + if (value.hour != undefined && value.minute != undefined) { + this.selectTime.setHours(value.hour, value.minute); + console.info("TimePickerDialog:onAccept()" + JSON.stringify(value)); + } + }, + onCancel: () => { + console.info("TimePickerDialog:onCancel()"); + }, + onChange: (value: TimePickerResult) => { + console.info("TimePickerDialog:onChange()" + JSON.stringify(value)); + }, + onDidAppear: () => { + console.info("TimePickerDialog:onDidAppear()"); + }, + onDidDisappear: () => { + console.info("TimePickerDialog:onDidDisappear()"); + }, + onWillAppear: () => { + console.info("TimePickerDialog:onWillAppear()"); + }, + onWillDisappear: () => { + console.info("TimePickerDialog:onWillDisappear()"); + } + }) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollPickerPickerrefactor/UIComponentScrollPickerPickerrefactor0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollPickerPickerrefactor/UIComponentScrollPickerPickerrefactor0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..f40ed19c3b5a000e9e12c56f734092ea106c8409 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollPickerPickerrefactor/UIComponentScrollPickerPickerrefactor0190.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 UIComponentScrollPickerPickerrefactor0190 { + @State isMilitaryTime: boolean = false + private selectedTime: Date = new Date('2022-07-22T08:00:00') + + build() { + Row() { + Column() { + Button('切换12小时制/24小时制') + .id('UIComponentScrollPickerPickerrefactor0190_001') + .margin(30) + .onClick(() => { + this.isMilitaryTime = !this.isMilitaryTime; + }) + TimePicker({ + selected: this.selectedTime, + }) + .useMilitaryTime(this.isMilitaryTime) + .onChange((value: TimePickerResult) => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute); + console.info('select current date is: ' + JSON.stringify(value)); + } + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..85d7309d2c899cec7cedbabfe63ee72aaf94948e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0110.ets @@ -0,0 +1,125 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentSoftKeyBoardOptimize0110 { + controllerA: TextInputController = new TextInputController(); + @State inputValueA: string = ''; + controllerB: TextInputController = new TextInputController(); + @State inputValueB: string = ''; + controllerC: TextInputController = new TextInputController(); + @State inputValueC: string = ''; + controllerD: TextInputController = new TextInputController(); + @State inputValueD: string = ''; + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + this.input({ inputValue: this.inputValueA, controller: this.controllerA, index: 0 }); + Divider().height(10).color(Color.Transparent) + this.input({ inputValue: this.inputValueB, controller: this.controllerB, index: 1 }); + Divider().height(10).color(Color.Transparent) + this.input({ inputValue: this.inputValueC, controller: this.controllerC, index: 2 }); + Divider().height(10).color(Color.Transparent) + this.input({ inputValue: this.inputValueD, controller: this.controllerD, index: 3 }); + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } + + @Builder + input(tmp: Tmp) { + if (tmp.index === 0) { + TextInput({ controller: tmp.controller, text: tmp.inputValue, placeholder: '组件A' }) + .margin(10) + .border({ width: 1 }) + .height('48vp').id('TextInputA') + } else if (tmp.index === 1) { + TextInput({ controller: tmp.controller, text: tmp.inputValue, placeholder: '组件B' }) + .customKeyboard(this.keyboardB()) + .margin(10) + .border({ width: 1 }) + .height('48vp') + .id('TextInputB') + } else if (tmp.index === 2) { + TextInput({ controller: tmp.controller, text: tmp.inputValue, placeholder: '组件C' }) + .customKeyboard(this.keyboardC()) + .margin(10) + .border({ width: 1 }) + .height('48vp') + .id('TextInputC') + } else { + TextInput({ controller: tmp.controller, text: tmp.inputValue, placeholder: '组件D' }) + .margin(10) + .border({ width: 1 }) + .height('48vp').id('TextInputD') + } + } + + @Builder + keyboardB() { + CustomKeyboardBuilder({ inputValue: this.inputValueB, controller: this.controllerB, index: 0 }); + } + + @Builder + keyboardC() { + CustomKeyboardBuilder({ inputValue: this.inputValueC, controller: this.controllerC, index: 1 }); + } +} + +class Tmp { + inputValue?: string; + controller?: TextInputController; + index?: number; +} + +// 自定义键盘组件 +@Component +export struct CustomKeyboardBuilder { + controller?: TextInputController = new TextInputController(); + index: number = 0; + @Link inputValue: string + + build() { + Column() { + Button('x').onClick(() => { + // 关闭自定义键盘 + this.controller?.stopEditing(); + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { + GridItem() { + Button(item + '') + .backgroundColor(this.index === 0 ? Color.Blue : + (this.index === 1 ? Color.Green : Color.Red)) + .width(110) + .onClick(() => { + this.inputValue += item; + }) + } + }) + } + .maxCount(3) + .columnsGap(10) + .rowsGap(10) + .padding(5) + } + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..3b1e4800378fdfe43f2d99e834d22aa1010e043f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0120.ets @@ -0,0 +1,125 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentSoftKeyBoardOptimize0120 { + controllerA: TextInputController = new TextInputController(); + @State inputValueA: string = ''; + controllerB: TextInputController = new TextInputController(); + @State inputValueB: string = ''; + controllerC: TextInputController = new TextInputController(); + @State inputValueC: string = ''; + controllerD: TextInputController = new TextInputController(); + @State inputValueD: string = ''; + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + this.input({ inputValue: this.inputValueA, controller: this.controllerA, index: 0 }); + Divider().height(10).color(Color.Transparent) + this.input({ inputValue: this.inputValueB, controller: this.controllerB, index: 1 }); + Divider().height(10).color(Color.Transparent) + this.input({ inputValue: this.inputValueC, controller: this.controllerC, index: 2 }); + Divider().height(10).color(Color.Transparent) + this.input({ inputValue: this.inputValueD, controller: this.controllerD, index: 3 }); + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } + + @Builder + input(tmp: Tmp) { + if (tmp.index === 0) { + TextInput({ controller: tmp.controller, text: tmp.inputValue, placeholder: '组件A' }) + .margin(10) + .border({ width: 1 }) + .height('48vp').id('TextInputA') + } else if (tmp.index === 1) { + TextInput({ controller: tmp.controller, text: tmp.inputValue, placeholder: '组件B' }) + .customKeyboard(this.keyboardB()) + .margin(10) + .border({ width: 1 }) + .height('48vp') + .id('TextInputB') + } else if (tmp.index === 2) { + TextInput({ controller: tmp.controller, text: tmp.inputValue, placeholder: '组件C' }) + .customKeyboard(this.keyboardC()) + .margin(10) + .border({ width: 1 }) + .height('48vp') + .id('TextInputC') + } else { + TextInput({ controller: tmp.controller, text: tmp.inputValue, placeholder: '组件D' }) + .margin(10) + .border({ width: 1 }) + .height('48vp').id('TextInputD') + } + } + + @Builder + keyboardB() { + CustomKeyboardBuilder({ inputValue: this.inputValueB, controller: this.controllerB, index: 0 }); + } + + @Builder + keyboardC() { + CustomKeyboardBuilder({ inputValue: this.inputValueC, controller: this.controllerC, index: 1 }); + } +} + +class Tmp { + inputValue?: string; + controller?: TextInputController; + index?: number; +} + +// 自定义键盘组件 +@Component +export struct CustomKeyboardBuilder { + controller?: TextInputController = new TextInputController(); + index: number = 0; + @Link inputValue: string + + build() { + Column() { + Button('x').onClick(() => { + // 关闭自定义键盘 + this.controller?.stopEditing(); + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { + GridItem() { + Button(item + '') + .backgroundColor(this.index === 0 ? Color.Blue : + (this.index === 1 ? Color.Green : Color.Red)) + .width(110) + .onClick(() => { + this.inputValue += item; + }) + } + }) + } + .maxCount(3) + .columnsGap(10) + .rowsGap(10) + .padding(5) + } + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..cb7be35a7403ccb8bf73dc02b36db5c5257202e1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0220.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 UIComponentSoftKeyBoardOptimize0220 { + controller: TextInputController = new TextInputController(); + @State inputValue: string = ''; + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TextInput({ controller: this.controller, text: this.inputValue, placeholder: '应用A' }) + .margin(10) + .border({ width: 1 }) + .height('48vp').id('TextInputA') + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..63419077fce02ad43d296017ae9db813227201fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0230.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentSoftKeyBoardOptimize0230 { + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + Button('应用E') + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..1c007b77915e76c3f8cf0b7bf1640f6696230c26 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0250.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 UIComponentSoftKeyBoardOptimize0250 { + controller: TextInputController = new TextInputController(); + @State inputValue: string = ''; + + build() { + Row() { + Column() { + Divider().height(10).color(Color.Transparent) + TextInput({ controller: this.controller, text: this.inputValue, placeholder: '应用A' }) + .margin(10) + .border({ width: 1 }) + .height('48vp').id('TextInputA') + Divider().height(10).color(Color.Transparent) + } + .width('100%') + } + .height('100%').alignItems(VerticalAlign.Top) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpanBaselineoffset/UIComponentSpanBaselineoffset0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpanBaselineoffset/UIComponentSpanBaselineoffset0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..0e4ba9deaad88838c7ed713e0cfce8a054282e25 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpanBaselineoffset/UIComponentSpanBaselineoffset0060.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiComponentSpanBaselineoffset0060 { + @State val: LengthMetrics | null | undefined = undefined; + @State msg: String = ""; + + aboutToAppear(): void { + try { + let s: ESObject = "10"; + this.val = new LengthMetrics(s); + } catch (e) { + this.msg = `${e}`; + } + } + + build() { + Column() { + Text() { + Span("LengthMetrics:") + ImageSpan(`${this.msg}`).baselineOffset(this.val) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInterface/UIComponentTextInterface008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInterface/UIComponentTextInterface008.ets new file mode 100644 index 0000000000000000000000000000000000000000..afdbfddaae0bde6c8a2176b0df55354958181f7e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInterface/UIComponentTextInterface008.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. + */ + +import Window from '@ohos.window' +import common from '@ohos.app.ability.common'; +import { BusinessError } from '@ohos.base'; + +@Entry +@Component +struct UIComponentTextInterface008 { + @State message: string = 'This is a text, 测试文本?;:' + @State message_ug: string = ' بۇ سىناق نۇسخىسى :؟' + @State directionValue: number = Direction.Auto + @State clickFlags: number = 0 + private portrait: boolean = true + + build() { + Row() { + Column() { + Text(this.message_ug) + .direction(this.directionValue) + .fontSize(20) + .textShadow({ + radius: 10, + color: Color.Black, + offsetX: 10, + offsetY: 10 + }) + .border({ width: 1 }) + .margin({ top: 10 }) + .padding(10) + .width('100%') + .onClick(() => { + this.message_ug = this.message + }) + .key('UIComponentTextInterface008_001') + Button('Switch Direction') + .margin({ top: 10 }) + .onClick(() => { + this.clickFlags = this.clickFlags + 1 + if (this.clickFlags == 1) { + this.directionValue = Direction.Ltr + } else if (this.clickFlags == 2) { + this.directionValue = Direction.Rtl + } else if (this.clickFlags == 3) { + this.clickFlags = 0 + this.directionValue = Direction.Auto + } + }).key('UIComponentTextInterface008_button_001') + } + .width('100%') + .height('100%') + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextSelectionInterface/UIComponentTextSelectionInterface_menu.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextSelectionInterface/UIComponentTextSelectionInterface_menu.ets new file mode 100644 index 0000000000000000000000000000000000000000..50694e4ef425b9adb261a39ec15b39225944683d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextSelectionInterface/UIComponentTextSelectionInterface_menu.ets @@ -0,0 +1,88 @@ +/* + * Copyright (c) 2024 Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import font from '@ohos.font'; + +@Entry +@Component +struct UIComponentTextSelectionInterface_menu { + private iconStr: ResourceStr = $r("app.media.icon") + + aboutToAppear() { + font.registerFont({ + familyName: 'ownfonttwo', + familySrc: $rawfile('font/own1.ttf') + }); + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" }) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" }) + MenuItem({ content: "全选", labelInfo: "Ctrl+A" }) + } + } + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" }) + MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" }) + MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" }) + .enabled(false) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + builder: (): void => this.SubMenu() + }) + MenuItemGroup({ header: '小标题' }) { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + builder: (): void => this.SubMenu() + }) + MenuItem({ + startIcon: $r("app.media.app_icon"), + content: "菜单选项", + builder: (): void => this.SubMenu() + }) + MenuItem({ + startIcon: $r("app.media.app_icon"), + content: "菜单选项", + builder: (): void => this.SubMenu() + }) + } + + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + }) + } + .font({ family: 'ownfonttwo' }) + } + + build() { + Row() { + Column() { + TextInput({ placeholder: 'click to show menu' }) + .fontSize(50) + .fontWeight(FontWeight.Bold).bindMenu(this.MyMenu) + } + //.bindMenu(this.MyMenu) + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..2097fcc6724bc6863919c15beb0ad50bb1fed246 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0040.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 { SelectionMenu, EditorMenuOptions, ExpandedMenuOptions, EditorEventInfo, SelectionMenuOptions } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit'; +import { BusinessError } from '@kit.BasicServicesKit'; +import Utils from '../../../test/model/Utils'; + +@Entry +@Component +struct UIComponentTextTextAbility0040 { + @State text: string = 'Text:Test for focusable' + @State res: string = 'After Select: ' + @State start: number = 5 + @State end: number = 8 + controller: TextInputController = new TextInputController() + + build() { + Column() { + Column() { + Text(this.text) + .width('80%') + .height('50') + .margin(20) + .focusable(true) + .selection(3, 8) + .textSelectable(TextSelectableMode.SELECTABLE_FOCUSABLE) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('text_textAbility0040') //.selection(this.start,this.end) + + + /*Button('Set text selection').margin(20).id('btn_textAbility0150').onClick(()=>{ + this.start = 3 + this.end = this.text.length + })*/ + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..edcdfd3026bcd2d34f48275a46eb1ff1a4e07d5b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0050.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. + */ +import { drawing } from '@kit.ArkGraphics2D' +import { text } from "@kit.ArkGraphics2D" +import { image } from '@kit.ImageKit'; + +function textFunc() { + let myParagraphStyle: text.ParagraphStyle = { + align: text.TextAlign.END, + }; + let fontCollection = new text.FontCollection(); + let ParagraphGraphBuilder = new text.ParagraphBuilder(myParagraphStyle, fontCollection); + let paragraph = ParagraphGraphBuilder.build(); + + const color: ArrayBuffer = new ArrayBuffer(160000); + let opts: image.InitializationOptions = { editable: true, pixelFormat: 3, size: { height: 200, width: 200 } } + let pixelMap: image.PixelMap = image.createPixelMapSync(color, opts); + let canvas = new drawing.Canvas(pixelMap); + + paragraph.paint(canvas, 0, 0); +} + +@Entry +@Component +struct UIComponentTextTextAbility0050 { + @State text: string = 'Text:Test for Paragraph Paint' + @State res: string = 'After Copy:' + controller: TextInputController = new TextInputController() + + build() { + Column() { + Column() { + Text(this.text) + .width('80%') + .height('50') + .margin(20) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('textAbility0050_text') + .selection(5, 20) + .onCopy((value: string) => { + console.log(`onCopy:${value}`); + this.res = 'after onCopy: ' + value; + }) + Column() { + Button('click').id('textAbility0050_btn').onClick(() => { + textFunc() + }) + } + .width('100%') + + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..4e30983352170e0008cf63009b87817741b16028 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0060.ets @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import inspector from '@ohos.arkui.inspector' + +@Entry +@Component +struct UIComponentTextTextAbility0060 { + @State text: string = 'Text:Test for inspector' + @State res: string = 'After Copy:' + @State start: number = 0 + @State end: number = 0 + @State vis: number = Visibility.Hidden + controller: TextInputController = new TextInputController() + listener: inspector.ComponentObserver = inspector.createComponentObserver('textAbility0060_text') + + aboutToAppear() { + let onLayoutComplete: () => void = (): void => { + console.log(`onLayoutComplete>>>`); + // do something here + this.vis = Visibility.Visible + } + let onDrawComplete: () => void = (): void => { + console.log(`onDrawComplete>>>`); + this.start = 5 + this.end = 20 + // do something here + } + let offLayoutComplete: () => void = (): void => { + // do something here + } + let offDrawComplete: () => void = (): void => { + // do something here + } + let FuncLayout = onLayoutComplete // bind current js instance + let FuncDraw = onDrawComplete // bind current js instance + let OffFuncLayout = offLayoutComplete // bind current js instance + let OffFuncDraw = offDrawComplete // bind current js instance + + this.listener.on('layout', FuncLayout) + this.listener.on('draw', FuncDraw) + + // 通过句柄向对应的查询条件取消注册回调,由开发者自行决定在何时调用。 + // this.listener.off('layout', OffFuncLayout) + // this.listener.off('draw', OffFuncDraw) + } + + build() { + Column() { + Column() { + Text(this.text) + .width('80%') + .height('50') + .margin(20) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .key('textAbility0060_text') + .selection(this.start, this.end) + .visibility(this.vis) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..91b2fb7986f50cbe4de3ecf4b8a7ae05624ccf9a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0080.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 inspector from '@ohos.arkui.inspector' +import common from '@ohos.app.ability.common' + +const context = getContext(this) +const uiAbilityContext = context as common.UIAbilityContext + +@Entry +@Component +struct UIComponentTextTextAbility0080 { + build() { + Column() { + Button("跳转到设置") + .id('textAbility0080_btn') + .onClick(() => { + let context = getContext(this) as common.UIAbilityContext; + uiAbilityContext.startAbility({ + bundleName: 'com.ohos.settings', + abilityName: 'com.ohos.settings.MainAbility', + //uri: 'application_settings', //application_settings application_info_entry + /*parameters: { + pushParams: uiAbilityContext.abilityInfo.bundleName + // 应用包名com.ohos.settings + }*/ + }); + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..68230384205c078b3eddd7ae26488c6ac69b12cd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0100.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextTextAbility0100 { + @State text: string = 'Text:Test for MARQUEE' + @State overflow: number = TextOverflow.None + @State color: number = Color.Yellow + + build() { + Column() { + Text(this.text) + .width('80%') + .height('100') + .margin(20) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('textAbility0100_text') + .textOverflow({ overflow: this.overflow }) + .width(200) + .borderWidth(1) + .borderColor(Color.Orange) + .backgroundColor(this.color) + .onClick(() => { + console.log(`onClick>>`); + }) + + Button('start MARQUEE').id('textAbility0100_btn').onClick(() => { + console.log(`onClick>>`); + this.text += this.text + this.overflow = TextOverflow.MARQUEE + this.color = Color.Green + + /*for (let index = 0; index <= 30; index++) { + let res = index%5 + switch (res){ + case 1: + case 3: + case 5: + this.color = Color.Blue + break; + case 2: + case 4: + this.color = Color.Green + break; + } + }*/ + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..9f9200dcc1b190d8a175cc23f124d56f4dd26fc7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0110.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 UIComponentTextTextAbility0110 { + @State text: string = 'Text:textShadow' + @State overflow: number = TextOverflow.None + @State color: number = Color.Yellow + + build() { + Column() { + Text(this.text) { + Span(this.text).fontColor(Color.Gray) + } + .width('100%') + .height('100') + .margin(20) + .textShadow({ + radius: 5, + color: Color.Black, + offsetX: 0, + offsetY: 0 + }) + .fontSize(26) + .copyOption(CopyOptions.InApp) + .id('textAbility0110_text') + .textOverflow({ overflow: this.overflow }) + .borderWidth(1) + .borderColor(Color.Orange) + .onClick(() => { + console.log(`onClick>>`); + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..44ebe6aa02a3b941adc2e73812c8a93c69bd4f40 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0180.ets @@ -0,0 +1,86 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { photoAccessHelper } from '@kit.MediaLibraryKit'; +import { fileIo } from '@kit.CoreFileKit'; + +@Entry +@Component +struct UIComponentTextTextAbility0180 { + @State text: string = '' + + build() { + Column() { + Text(this.text) + .width('100%') + .height('100') + .margin(20) + .fontSize(26) + .copyOption(CopyOptions.InApp) + .id('textAbility0180_text') + + // 默认参数下,图标、文字、背景都存在 + + SaveButton({ icon: SaveIconStyle.PICTURE, text: SaveDescription.SAVE_IMAGE }) + .key('TextAbility0180_btn1') + .onClick((async (event: ClickEvent, result: SaveButtonOnClickResult) => { + if (result == SaveButtonOnClickResult.SUCCESS) { + console.log(`SAVE_IMAGE onClick>>`); + this.text = '保存图片成功' + } + })) + + SaveButton({ icon: SaveIconStyle.LINES, text: SaveDescription.SAVE_FILE }) + .key('TextAbility0180_btn2') + .onClick((async (event: ClickEvent, result: SaveButtonOnClickResult) => { + if (result == SaveButtonOnClickResult.SUCCESS) { + console.log(`SAVE_FILE onClick>>`); + this.text = '保存文件成功' + } + })) + + SaveButton({ icon: SaveIconStyle.FULL_FILLED, text: SaveDescription.DOWNLOAD }) + .key('TextAbility0180_btn3') + .onClick((async (event: ClickEvent, result: SaveButtonOnClickResult) => { + if (result == SaveButtonOnClickResult.SUCCESS) { + console.log(`DOWNLOAD onClick>>`); + this.text = '保存视频成功' + } + })) + /*SaveButton({icon:SaveIconStyle.FULL_FILLED,text:SaveDescription.DOWNLOAD}) + .onClick(async (event:ClickEvent, result:SaveButtonOnClickResult) => { + if (result == SaveButtonOnClickResult.SUCCESS) { + console.log(`DOWNLOAD onClick>>`); + this.text = '保存视频成功' + */ + /*try { + const context = getContext(this); + let helper = photoAccessHelper.getPhotoAccessHelper(context); + // onClick触发后10秒内通过createAsset接口创建图片文件,10秒后createAsset权限收回。 + let uri = await helper.createAsset(photoAccessHelper.PhotoType.IMAGE, 'png'); + // 使用uri打开文件,可以持续写入内容,写入过程不受时间限制 + let file = await fileIo.open(uri, fileIo.OpenMode.READ_WRITE | fileIo.OpenMode.CREATE); + // 写入文件 + await fileIo.write(file.fd, "context"); + // 关闭文件 + await fileIo.close(file.fd); + } catch (error) { + console.error("error is "+ JSON.stringify(error)); + }*/ + /* + } + })*/ + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable026.ets new file mode 100644 index 0000000000000000000000000000000000000000..9a25b0baadfcddee2463ed26abda30741ad8d8cc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable026.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 UIComponentTextTextEditable026 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + Button("update span style") + .id('updateButton') + .onClick(() => { + this.controller.updateSpanStyle({ + start: 0, + end: 1, + imageStyle: + { + size: ["100px", "100px"] + } + }) + this.controller.updateSpanStyle({ + start: 3, + end: 5, + textStyle: { + fontWeight: FontWeight.Bolder + } + }) + }) + + RichEditor(this.options) + .onReady(() => { + this.controller.addImageSpan('cat.jpg', + { + imageStyle: + { + size: ["60px", "60px"], + verticalAlign: ImageSpanAlignment.BOTTOM, + } + }) + this.controller.addTextSpan("0123456", + { + style: + { + fontColor: Color.Orange, + fontSize: 30 + } + }) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInputCursor/UIComponentTextTextInputCursor1720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInputCursor/UIComponentTextTextInputCursor1720.ets new file mode 100644 index 0000000000000000000000000000000000000000..91da65baa0636885d7c2af2e34f5c560e1230876 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInputCursor/UIComponentTextTextInputCursor1720.ets @@ -0,0 +1,127 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import Settings from '../../../test/model/Settings' + +import Window from '@ohos.window' +import common from '@ohos.app.ability.common'; +import { BusinessError } from '@kit.BasicServicesKit'; + +@Entry +@Component +struct UIComponentTextTextInputCursor1720 { + @State msg: string = + "OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目, 目标是面向全场景、全连" + + "接、全智能时代、基于开源的方式,搭建一个智能终端设备操作系统的框架和平台" + @State txt: string = 'TextArea/TextInput/Search,' + this.msg + @State taTxt: string = 'TextArea:' + this.msg + @State tiTxt: string = 'TextInput:' + this.msg + @State changeValue: string = 'search:' + this.msg + @State taSelectRes: string = '' + @State taScrollRes: string = '' + @State tiSelectRes: string = '' + @State tiScrollRes: string = '' + @State seSelectRes: string = '' + @State seScrollRes: string = '' + @State submitValue: string = '' + searchController: SearchController = new SearchController(); + textAreaController: TextAreaController = new TextAreaController() + textInputController: TextInputController = new TextInputController() + + build() { + Column() { + TextArea({ + text: this.taTxt, + placeholder: 'The text area can hold an unlimited amount of text. input your word...', + controller: this.textAreaController + }) + .id('textInputCursor1720_txArea') + .width('100%') + .margin(20) + .height(50) + .fontSize(16) + .fontColor('#182431') + .backgroundColor('#FFFFFF') + .onContentScroll((totalOffsetX: number, totalOffsetY: number) => { + console.log(`onContentScroll>>>`); + this.taScrollRes = `TextArea{scrolling:[${totalOffsetX},${totalOffsetY}]}`; + }) + .onTextSelectionChange((selectionStart: number, selectionEnd: number) => { + console.log(`onTextSelectionChange>>>`); + if (selectionStart == selectionEnd) { + this.taSelectRes = `TextArea{point:[${selectionStart},${selectionEnd}]}`; + } else { + let length = this.taTxt.length; + if (selectionEnd < length) { + this.textAreaController.setTextSelection(selectionStart, length); + } + this.taSelectRes = `TextArea{select:[${selectionStart},${selectionEnd}]}`; + } + }) + Text(this.taScrollRes + '\n' + this.taSelectRes) + .fontColor(Color.Green) + .fontSize(20) + .margin({ top: 20, bottom: 10 }) + .width('95%') + + Search({ + value: this.changeValue, + placeholder: 'Type to search...', + controller: this.searchController + }) + .id('textInputCursor1720_search') + .searchButton('SEARCH') + .width('100%') + .height(50) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .margin(20) + .onContentScroll((totalOffsetX: number, totalOffsetY: number) => { + console.log(`onContentScroll>>>`); + this.seScrollRes = `Search{scrolling:[${totalOffsetX},${totalOffsetY}]}`; + }) + .onTextSelectionChange((selectionStart: number, selectionEnd: number) => { + console.log('onTextSelectionChange>>'); + // this.searchController.stopEditing(); + if (selectionStart == selectionEnd) { + this.seSelectRes = `Search{point:[${selectionStart},${selectionEnd}]}`; + } else { + let length = this.changeValue.length; + if (selectionEnd < length) { + this.searchController.setTextSelection(selectionStart, length); + } + this.seSelectRes = `Search{select:[${selectionStart},${selectionEnd}]}`; + } + }) + Text(this.seScrollRes + '\n' + this.seSelectRes) + .fontColor(Color.Brown) + .fontSize(20) + .margin({ top: 20, bottom: 10 }) + .width('95%') + + + Button('TODO requestFocus') + .id('textInputCursor1720_btn') + .fontColor(Color.Brown) + .onClick(() => { + console.log('onClick, requestFocus'); + focusControl.requestFocus('textInputCursor1720_search'); + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInputKeepEditableState/UIComponentTextTextInputKeepEditableState0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInputKeepEditableState/UIComponentTextTextInputKeepEditableState0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..1ba97145bcb663fa1034702b8587915695e6161c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInputKeepEditableState/UIComponentTextTextInputKeepEditableState0100.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 UIComponentTextTextInputKeepEditableState0100 { + @State msg: string = + "OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目, 目标是面向全场景、全连" + + "接、全智能时代、基于开源的方式,搭建一个智能终端设备操作系统的框架和平台" + @State text: string = 'TextInput:test keepEditableState' + @State enterKey: string = '' + @State enterKeyType: number = 0 + enterKeyTypeStr: string[] = ['Go', 'Search', 'Send', 'Next', 'Done', 'PREVIOUS', 'NEW_LINE'] + enterKeyTypeNum: number[] = + [EnterKeyType.Go, EnterKeyType.Search, EnterKeyType.Send, EnterKeyType.Next, EnterKeyType.Done, + EnterKeyType.PREVIOUS, EnterKeyType.NEW_LINE] + + build() { + Column() { + TextInput({ placeholder: 'input...', text: this.text }) + .id('textInputKeepEditableState0100') + .width('95%') + .borderWidth(3) + .onSubmit((enterKey: EnterKeyType, event: SubmitEvent) => { + console.log(`onSubmit>> enterKey=${enterKey}`); + this.enterKeyType = enterKey.valueOf(); + for (let index = 0; index < this.enterKeyTypeNum.length; index++) { + if (enterKey == this.enterKeyTypeNum[index]) { + this.enterKey = this.enterKeyTypeStr[index]; + } + } + // 调用keepEditableState方法,输入框保持编辑态 + event.keepEditableState() + }) + + Text('current EnterKeyType is:' + this.enterKey) + .fontColor(Color.Brown) + .fontSize(20) + .margin({ top: 20, bottom: 10 }) + .width('95%') + } + .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/UIComponentUISupportColor1340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1340.ets new file mode 100644 index 0000000000000000000000000000000000000000..6521d236e37f5e5adada675674040a624dfcc4fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1340.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. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1340 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Row() { + Search({ value: "light" }).layoutWeight(1) + Button("浅色模式").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1350.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c463920a36c45a506f30e51e9e560f026c0e0e6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1350.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. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1350 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Row() { + Search({ value: "light" }).layoutWeight(1) + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1360.ets new file mode 100644 index 0000000000000000000000000000000000000000..061d6ce16bd243a419adb3ac650534e6bfcafd56 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1360.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. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1360 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Row() { + Search({ value: "light" }).layoutWeight(1) + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1370.ets new file mode 100644 index 0000000000000000000000000000000000000000..9276ad3ed2e930dc63b8437c9bcc1251b2846617 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1370.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. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1360 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Row() { + Search({ value: "light" }).layoutWeight(1) + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1380.ets new file mode 100644 index 0000000000000000000000000000000000000000..9503a72ce4f9d18370e2754cf8ed90d13e7e1e55 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1380.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1380 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Row() { + WithTheme({ colorMode: ThemeColorMode.LIGHT }) { + Search({ value: "light" }).layoutWeight(1) + } + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1390.ets new file mode 100644 index 0000000000000000000000000000000000000000..1f5db0953c6a17ea9589bea8d049efd8b9ea43a9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1390.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1390 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Row() { + WithTheme({ colorMode: ThemeColorMode.DARK }) { + Search({ value: "light" }).layoutWeight(1) + } + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1400.ets new file mode 100644 index 0000000000000000000000000000000000000000..b68032b2483f171f76e32c6594838d292731fa00 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1400.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1390 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Row() { + WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { + Search({ value: "light" }).layoutWeight(1) + } + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1550.ets new file mode 100644 index 0000000000000000000000000000000000000000..627364c3670a7f1e93de9a83e9aac93d733f4cd7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1550.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1550 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Row() { + WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { + Text() { + Span("light").layoutWeight(1) + }.layoutWeight(1) + } + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1560.ets new file mode 100644 index 0000000000000000000000000000000000000000..f48b0e2457bd81881eb75833d5896e895d3a6b8f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1560.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1560 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Row() { + WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { + Text() { + Span("light").layoutWeight(1) + }.layoutWeight(1) + } + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1570.ets new file mode 100644 index 0000000000000000000000000000000000000000..d5c50160921a5ad77a9c9d137dbf83494fd0619a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1570.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1570 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Row() { + WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { + Text() { + Span("light").layoutWeight(1) + }.layoutWeight(1) + } + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1580.ets new file mode 100644 index 0000000000000000000000000000000000000000..be8f3161fb6c249b05fc85a8d509b3f1887ef8af --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1580.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1580 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Row() { + WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { + Text() { + Span("light").layoutWeight(1) + }.layoutWeight(1) + } + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1590.ets new file mode 100644 index 0000000000000000000000000000000000000000..e41c50b7da03bf9ec8a44c32d04c3d3ade501db0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1590.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1590 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Row() { + WithTheme({ colorMode: ThemeColorMode.LIGHT }) { + Text() { + Span("light").layoutWeight(1) + }.layoutWeight(1) + } + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1600.ets new file mode 100644 index 0000000000000000000000000000000000000000..0e509307c7709f7abb8d593f921d8a9a05416d4d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1600.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1600 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Row() { + WithTheme({ colorMode: ThemeColorMode.DARK }) { + Text() { + Span("light").layoutWeight(1) + }.layoutWeight(1) + } + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1610.ets new file mode 100644 index 0000000000000000000000000000000000000000..d1d1062bda252d1f32ff245284770ffeb6d34336 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1610.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1610 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Row() { + WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { + Text() { + Span("light").layoutWeight(1) + }.layoutWeight(1) + } + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1970.ets new file mode 100644 index 0000000000000000000000000000000000000000..0113c88734d6141d2c30f98e553076c49e03258d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1970.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor1970 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Button("浅色模式").id("change_theme_bt").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test 3', 'Test4'] + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1980.ets new file mode 100644 index 0000000000000000000000000000000000000000..0e9730a54ba944fae7b210a5e7febc505fe87a29 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1980.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +@Entry +@Component +struct UIComponentUISupportColor1980 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Row() { + Button("Dark").id("change_theme_bt").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + }.margin({ bottom: 20 }) + + WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { + TextPicker({ + range: ['Test 1', 'Test 2', 'Test 3', 'Test4'] + }) + } + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1990.ets new file mode 100644 index 0000000000000000000000000000000000000000..75e531ed0929d0215a910fd5403b0617af875177 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1990.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +@Entry +@Component +struct UIComponentUISupportColor2030 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Column() { + Row() { + Button("Light").id("change_light_theme_bt").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + }.margin({ bottom: 20 }) + + WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { + TextPicker({ + range: ['Test 1', 'Test 2', 'Test 3', 'Test4'] + }) + } + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2000.ets new file mode 100644 index 0000000000000000000000000000000000000000..e6384d4313588b9710c082ef25d5f6ee84a09ae0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2000.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor2000 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Column() { + Button("深色模式").id("change_theme_bt").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + TextPicker({ + range: ['Test 1', 'Test 2', 'Test 3', 'Test4'] + }) + }.width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2010.ets new file mode 100644 index 0000000000000000000000000000000000000000..5c6bd98c9388dd0c3c23d6eb8552d81a690ab8d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2010.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +@Entry +@Component +struct UIComponentUISupportColor2010 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Column() { + WithTheme({ colorMode: ThemeColorMode.LIGHT }) { + TextPicker({ + range: ['Test 1', 'Test 2', 'Test 3', 'Test4'] + }) + } + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2020.ets new file mode 100644 index 0000000000000000000000000000000000000000..b6477d72b3d703a65630f68fe001b42dbeec38de --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2020.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +@Entry +@Component +struct UIComponentUISupportColor2020 { + build() { + Column() { + WithTheme({ colorMode: ThemeColorMode.DARK }) { + TextPicker({ + range: ['Test 1', 'Test 2', 'Test 3', 'Test4'] + }) + } + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2030.ets new file mode 100644 index 0000000000000000000000000000000000000000..9dfe8e9e613808eed5b117e34fb5881ee1fa55ce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2030.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +@Entry +@Component +struct UIComponentUISupportColor2030 { + build() { + Column() { + Row() { + Button("Light").id("change_light_theme_bt").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + Button("Dark").id("change_dark_theme_bt").margin({ left: 20 }).onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + }.margin({ bottom: 20 }) + + WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { + TextPicker({ + range: ['Test 1', 'Test 2', 'Test 3', 'Test4'] + }) + } + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2110.ets new file mode 100644 index 0000000000000000000000000000000000000000..47ad9bd8b96421ecf88ea7ee9cdf71ea737c5bf7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2110.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor2110 { + + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column({space: 20}) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00') + }) + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2120.ets new file mode 100644 index 0000000000000000000000000000000000000000..cf4ad2cb8256ed612cde987da5bb33c1020074bd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2120.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor2120 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column({ space: 20 }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00') + }) + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2130.ets new file mode 100644 index 0000000000000000000000000000000000000000..0fbc87eae73c5badad015e431e2e3e857d9c9857 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2130.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor2130 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Column({ space: 20 }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00') + }) + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2140.ets new file mode 100644 index 0000000000000000000000000000000000000000..d74f489f2fc24d52a042374265c8cd70e1ed12f2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2140.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor2140 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Column({ space: 20 }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00') + }) + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2150.ets new file mode 100644 index 0000000000000000000000000000000000000000..f6bad415979ab5d7e64c08212df764c893eaebc6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2150.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor2150 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Column({ space: 20 }) { + WithTheme({ colorMode: ThemeColorMode.LIGHT }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00') + }).backgroundColor($r('sys.color.background_primary')) + } + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2160.ets new file mode 100644 index 0000000000000000000000000000000000000000..b0820c36b3288e6b883c90b9de82eef7719b3159 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2160.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor2160 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column({ space: 20 }) { + WithTheme({ colorMode: ThemeColorMode.DARK }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00') + }).backgroundColor($r('sys.color.background_primary')) + } + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2170.ets new file mode 100644 index 0000000000000000000000000000000000000000..63ff4e869649b81827ce2915dda4b8f0d2cbb472 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2170.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor2170 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column({ space: 20 }) { + WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { + TimePicker({ + selected: new Date('2020-12-25T08:30:00') + }).backgroundColor($r('sys.color.background_primary')) + } + + Button("ChangeTheme").id("change_theme_button").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2180.ets new file mode 100644 index 0000000000000000000000000000000000000000..73dc36af7b895a938c15475782b94111388ad85b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2180.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor2180 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Button("浅色模式").id("Toggle").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + Toggle({ type: ToggleType.Checkbox }) + Toggle({ type: ToggleType.Button }) { + Text('Toggle Button') + } + + Toggle({ type: ToggleType.Switch }) + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2190.ets new file mode 100644 index 0000000000000000000000000000000000000000..5a6826717645ba98b21ecf2020b9a77584b7af11 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2190.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor2190 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + } + + build() { + Column() { + Button("深色模式").id("Toggle").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + Toggle({ type: ToggleType.Checkbox }) + Toggle({ type: ToggleType.Button }) { + Text('Toggle Button') + } + + Toggle({ type: ToggleType.Switch }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2200.ets new file mode 100644 index 0000000000000000000000000000000000000000..c78cd91d047243fe307648548da2dd8dede7b736 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2200.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor2200 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Column() { + Button("浅色模式").id("Toggle").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + Toggle({ type: ToggleType.Checkbox }) + Toggle({ type: ToggleType.Button }) { + Text('Toggle Button') + } + + Toggle({ type: ToggleType.Switch }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2210.ets new file mode 100644 index 0000000000000000000000000000000000000000..62e1d9349f23f8c8c413bd87130afe15190436d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2210.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; + +@Entry +@Component +struct UIComponentUISupportColor2200 { + aboutToAppear(): void { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + } + + build() { + Column() { + Button("深色模式").id("Toggle").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + Toggle({ type: ToggleType.Checkbox }) + Toggle({ type: ToggleType.Button }) { + Text('Toggle Button') + } + + Toggle({ type: ToggleType.Switch }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2220.ets new file mode 100644 index 0000000000000000000000000000000000000000..391668088cc298d5e820315a4bbb3d8711e7c073 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2220.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentUISupportColor2220 { + build() { + Column() { + WithTheme({ colorMode: ThemeColorMode.LIGHT }) { + Row() { + Toggle({ type: ToggleType.Switch, isOn: false }) + Toggle({ type: ToggleType.Switch, isOn: true }) + } + } + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2230.ets new file mode 100644 index 0000000000000000000000000000000000000000..ad4b880b6257dd7bb993e7f6afc912a08062ab26 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2230.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +@Entry +@Component +struct UIComponentUISupportColor2230 { + build() { + Column() { + Row() { + Button("Light").id("change_light_theme_bt").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + Button("Dark").id("change_dark_theme_bt").margin({ left: 20 }).onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + }.margin({ bottom: 20 }) + + WithTheme({ colorMode: ThemeColorMode.DARK }) { + Row() { + Toggle({ type: ToggleType.Switch, isOn: false }) + Toggle({ type: ToggleType.Switch, isOn: true }) + } + } + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2240.ets new file mode 100644 index 0000000000000000000000000000000000000000..6d7d72564ceb3e9f2fe533d6c77ff2180622cd35 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2240.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant' + +@Entry +@Component +struct UIComponentUISupportColor2240 { + build() { + Column() { + Row() { + Button("Light").id("change_light_theme_bt").onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT); + }) + Button("Dark").id("change_dark_theme_bt").margin({ left: 20 }).onClick(() => { + getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK); + }) + }.margin({ bottom: 20 }) + + WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { + Row() { + Toggle({ type: ToggleType.Switch, isOn: false }) + Toggle({ type: ToggleType.Switch, isOn: true }) + } + } + }.width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..1349f93bedb4173bf0a2bd26c162d25eeb87d0fa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0230.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonDatepickerInterface0230 { + private selectedDate: Date = new Date('2023-04-30') + + build() { + Column() { + DatePicker({ + start: new Date('1980-4-30'), + end: new Date('2370-4-30'), + selected: this.selectedDate + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..8b6ad89603635ebe848a925a83110d5c105f0f97 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0290.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonDatepickerInterface0290 { + @State isLunar: boolean = false + private selectedDate: Date = new Date('2023-04-30') + + build() { + Column() { + DatePicker({ + start: new Date('1980-4-30'), + end: new Date('2370-4-30'), + selected: this.selectedDate + }).lunar(true) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0560.ets new file mode 100644 index 0000000000000000000000000000000000000000..a1615816ac8ce9a4c6d0c649e3fdd70ef28857a2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0560.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupbxPickrold0560 { + build() { + Row() { + Column() { + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2100-1-1'), + }) + } + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UISearchInterface/UISearchInterface006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UISearchInterface/UISearchInterface006.ets new file mode 100644 index 0000000000000000000000000000000000000000..535f4f5a6f9a10428a10eb6139a6b5ad26d24dac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UISearchInterface/UISearchInterface006.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 UISearchInterface006 { + @State text: string = '这是提示文本' + + build() { + Row() { + Column() { + Search({ placeholder: this.text }) + .width(336) + .height(56) + .copyOption(CopyOptions.LocalDevice) + .margin({ top: 20 }) + .key('UISearchInterface006_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_click_error.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_click_error.png new file mode 100644 index 0000000000000000000000000000000000000000..476223a2cbaa029e0ccc67660eb768effb766501 Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_click_error.png differ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_height_error.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_height_error.png new file mode 100644 index 0000000000000000000000000000000000000000..0d16a9f5d39efc178484b2bfcbe3372cb3c16a7e Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_height_error.png differ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_width_error.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_width_error.png new file mode 100644 index 0000000000000000000000000000000000000000..eaae1996c7bcdeafd8a6287b9d5d44cfda56a934 Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_width_error.png differ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/span_null_param_error.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/span_null_param_error.png new file mode 100644 index 0000000000000000000000000000000000000000..846adf54057902753c7ad575ea11769db6c5eec8 Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/span_null_param_error.png differ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index c26fa1d9efb5d54d5e6b7e39ca0f440e53f4db12..3e7da318d6bb8c07f2e133d03fe471c983ba89d8 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -21,44 +21,43 @@ var abilityDelegator = undefined var abilityDelegatorArguments = undefined async function onAbilityCreateCallback() { - hilog.info(0x0000, 'testTag', '%{public}s', 'onAbilityCreateCallback'); + hilog.info(0x0000, 'testTag', '%{public}s', 'onAbilityCreateCallback'); } async function addAbilityMonitorCallback(err: any) { - hilog.info(0x0000, 'testTag', 'addAbilityMonitorCallback : %{public}s', JSON.stringify(err) ?? ''); + hilog.info(0x0000, 'testTag', 'addAbilityMonitorCallback : %{public}s', JSON.stringify(err) ?? ''); } export default class OpenHarmonyTestRunner implements TestRunner { - constructor() { - } + constructor() { + } - onPrepare() { - hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner OnPrepare '); - } + onPrepare() { + hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner OnPrepare '); + } - async onRun() { - hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun run'); - abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() - abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - var testAbilityName = abilityDelegatorArguments.bundleName + '.TestAbility' - let lMonitor = { - abilityName: testAbilityName, - onAbilityCreate: onAbilityCreateCallback, - }; - abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback) - var cmd = 'aa start -d 0 -a TestAbility' + ' -b ' + abilityDelegatorArguments.bundleName - var debug = abilityDelegatorArguments.parameters['-D'] - if (debug == 'true') - { - cmd += ' -D' - } - hilog.info(0x0000, 'testTag', 'cmd : %{public}s', cmd); - abilityDelegator.executeShellCommand(cmd, - (err: any, d: any) => { - hilog.info(0x0000, 'testTag', 'executeShellCommand : err : %{public}s', JSON.stringify(err) ?? ''); - hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.stdResult ?? ''); - hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.exitCode ?? ''); - }) - hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun end'); + async onRun() { + hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun run'); + abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() + abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() + var testAbilityName = abilityDelegatorArguments.bundleName + '.TestAbility' + let lMonitor = { + abilityName: testAbilityName, + onAbilityCreate: onAbilityCreateCallback, + }; + abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback) + var cmd = 'aa start -d 0 -a TestAbility' + ' -b ' + abilityDelegatorArguments.bundleName + var debug = abilityDelegatorArguments.parameters['-D'] + if (debug == 'true') { + cmd += ' -D' } + hilog.info(0x0000, 'testTag', 'cmd : %{public}s', cmd); + abilityDelegator.executeShellCommand(cmd, + (err: any, d: any) => { + hilog.info(0x0000, 'testTag', 'executeShellCommand : err : %{public}s', JSON.stringify(err) ?? ''); + hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.stdResult ?? ''); + hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.exitCode ?? ''); + }) + hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun end'); + } } \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 b/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 index e58bd507f3ecff51931c351ebcabf6603cd5c40c..57179624175e0335ee0baad3441b02b6bb9eba6f 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 @@ -12,6 +12,15 @@ "installationFree": false, "pages": "$profile:test_pages", "requestPermissions": [ + { + "name": "ohos.permission.SYSTEM_FLOAT_WINDOW", + "usedScene": { + "abilities": [ + "EntryAbility" + ], + "when": "inuse" + } + }, { "name": "ohos.permission.WRITE_MEDIA" }, @@ -25,7 +34,13 @@ "name":"ohos.permission.RUNNING_LOCK" }, { - "name":"ohos.permission.INTERNET" + "name": "ohos.permission.CAPTURE_SCREEN" + }, + { + "name": "ohos.permission.ACCESS_SCREEN_LOCK_INNER" + }, + { + "name": "ohos.permission.INTERNET" } ], "abilities": [ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/integer.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/integer.json index 97e43d83bf94a0d1a5df72c19fc3df8acdf5e3ae..557d9e2137d8b70ca43bd6ef26a9707a4a6754fc 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/integer.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/integer.json @@ -1,5 +1,5 @@ { - "integer":[ + "integer": [ { "name": "0", "value": 0 @@ -11,22 +11,28 @@ { "name": "20", "value": 20 - },{ + }, + { "name": "50", "value": 50 - },{ + }, + { "name": "integer30", "value": 30 - },{ + }, + { "name": "integer100", "value": 100 - },{ + }, + { "name": "string30", "value": 30 - },{ + }, + { "name": "30", "value": 30 - },{ + }, + { "name": "15", "value": 15 }, @@ -41,6 +47,10 @@ { "name": "integer333", "value": 333 + }, + { + "name": "negative5", + "value": 5 } ] } \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/strarray.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/strarray.json index abd922b6c2265426020ca078caa88a20075cf90b..7fa83f28a0a2b54be83e487eb73727d477ad50b9 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/strarray.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/strarray.json @@ -78,7 +78,8 @@ "value": "ཤིང་ཏོག་ཧྥེང་ལི། " } ] - },{ + }, + { "name": "fruit_ww", "value": [ { @@ -163,7 +164,7 @@ } ] }, - { + { "name": "appliance_ww", "value": [ { 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..dffbe54669cb2512682666c918f7de78f9bee4ef 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 @@ -1,6 +1,796 @@ { "src": [ "testability/pages/Index", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0090", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0030", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0050", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0060", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0020", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0080", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0110", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0070", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0140", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0100", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0130", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0150", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0530", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0590", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0550", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0560", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0520", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0510", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0540", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0570", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0650", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0660", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0640", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0580", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0620", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0630", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0180", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0170", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0200", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0220", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0230", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0190", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0270", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0290", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0280", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0260", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0250", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0300", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0320", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0680", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0670", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0790", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0770", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0700", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0750", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0740", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0730", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0720", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0780", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0810", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0710", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0760", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0800", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0820", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0330", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0370", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0350", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0340", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0390", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0690", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0410", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0400", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0420", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0380", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0360", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0430", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0450", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0830", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0470", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0440", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0870", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0890", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0900", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0910", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0840", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0480", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0930", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0950", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0850", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0880", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0860", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0940", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0970", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0490", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0960", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0920", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0500", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0980", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage1000", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0990", + "testability/pages/UIComponentButtonTextPickerMirrorImage/UIComponentButtonTextPickerMirrorImage0120", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1970", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1980", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1990", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2000", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2010", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2020", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2030", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2110", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2120", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2130", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2140", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2150", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2160", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2170", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2180", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2190", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2200", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2210", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2220", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2230", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor2240", + "testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0010", + "testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0020", + "testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0030", + "testability/pages/UIComponentButtonTextPickerEvent/UIComponentButtonTextPickerEvent0040", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0010", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0030", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0060", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0120", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0130", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0040", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0050", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0070", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0230", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0270", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0310", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0400", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0420", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0370", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0320", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0390", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0350", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0380", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0150", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0160", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0170", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0410", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0330", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0300", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0080", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0360", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0340", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0580", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0530", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0510", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0550", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0560", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0570", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0520", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0540", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0280", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0290", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0100", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0090", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0240", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0260", + "testability/pages/UIComponentButtonTextPickerInterface/UIComponentButtonTextPickerInterface0250", + "testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0010", + "testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0030", + "testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0040", + "testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0050", + "testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0070", + "testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0080", + "testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0090", + "testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0100", + "testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0110", + "testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0120", + "testability/pages/UIComponentButtonTextPickerFadeout/UIComponentButtonTextPickerFadeout0130", + "testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0010", + "testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0020", + "testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0030", + "testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0040", + "testability/pages/UIComponentButtonTextPickerOverBoundaryRebound/UIComponentButtonTextPickerOverBoundaryRebound0050", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0120", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0180", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0530", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0560", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0590", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0620", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0650", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1010", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1020", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1030", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1050", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0570", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0240", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0670", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0110", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0130", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0600", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0520", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0220", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1070", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0640", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0540", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1040", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0630", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0140", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1060", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0580", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0550", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1090", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0610", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1100", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0660", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1130", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0680", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0210", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0690", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1140", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0700", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0250", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0710", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1080", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0730", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1120", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0720", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0230", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0740", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog1110", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0270", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0750", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0800", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0260", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0760", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0280", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0810", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0290", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0770", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0330", + "testability/pages/ComponentFunctionSpecialComponentsDialogTextPickerDialog/ComponentFunctionSpecialComponentsDialogTextPickerDialog0780", + "testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0020", + "testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0050", + "testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0030", + "testability/pages/UIComponentPopupboxButtonstyle/UIComponentPopupboxButtonstyle0060", + "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0520", + "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0550", + "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0530", + "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0510", + "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0540", + "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0620", + "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0570", + "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0580", + "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0590", + "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0640", + "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0630", + "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0600", + "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0610", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0250", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0370", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0220", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0240", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0270", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0190", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0310", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0180", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0300", + "testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0010", + "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0560", + "testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0230", + "testability/pages/UIButton/UIComponentUIsupportColor0130", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1340", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1350", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1360", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1370", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1380", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1390", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1400", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1550", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1560", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1570", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1580", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1590", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1600", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1610", + "testability/pages/UIComponentInfomationMarqueeDirection/UIComponentInfomationMarqueeDirection0120", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1210", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1280", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1310", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1270", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1390", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1190", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1360", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1140", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1300", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1410", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1240", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1250", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1290", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1220", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1260", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1380", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1080", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1400", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1370", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1340", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1090", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1350", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1330", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1420", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1230", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1320", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1070", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1120", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1030", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1000", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1460", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1470", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1010", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1050", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1160", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1020", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1040", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1060", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1130", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1450", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1440", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1200", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1150", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1180", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1100", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1110", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1170", + "testability/pages/UIComponentPopupboxTextPickerDialogInterface/UIComponentPopupboxTextPickerDialogInterface1430", + "testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0030", + "testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0010", + "testability/pages/UIComponentPopupboxTextPickerDialogInteraction/UIComponentPopupboxTextPickerDialogInteraction0020", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0510", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0200", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog1000", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0500", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0150", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0940", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0490", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0160", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0980", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0470", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0080", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0950", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0190", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0960", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0460", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0090", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0970", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0450", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0170", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0480", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0990", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0400", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0100", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0930", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0440", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0900", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0430", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0040", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0920", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0420", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0030", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0910", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0410", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0890", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0360", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0880", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0310", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0870", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0390", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0860", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0370", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0840", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0340", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0790", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0380", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0850", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0350", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0820", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0300", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0830", + "testability/pages/UIComponentFunctionSpecialComponentsDialogTextPickerDialog/UIComponentFunctionSpecialComponentsDialogTextPickerDialog0320", + "testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0080", + "testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0070", + "testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0060", + "testability/pages/UIComponentPopupBoxPopup/UIComponentPopupBoxPopup0050", + "testability/pages/UIComponentButtonTimepickerEvent/UIComponentButtonTimepickerEvent0020", + "testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0040", + "testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0050", + "testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0060", + "testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0080", + "testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0100", + "testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0110", + "testability/pages/UIComponentTextTextAbility/UIComponentTextTextAbility0180", + "testability/pages/UISearchInterface/UISearchInterface006", + "testability/pages/UIComponentContainerSpanInterface/UIComponentContainerSpanInterface002", + "testability/pages/UIComponentTextInterface/UIComponentTextInterface008", + "testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0110", + "testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0120", + "testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0220", + "testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0230", + "testability/pages/UIComponentSoftKeyBoardOptimize/UIComponentSoftKeyBoardOptimize0250", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0210", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1430", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1590", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1330", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0770", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1300", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0570", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1570", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0250", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1320", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1530", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0750", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1250", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0540", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1510", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0220", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1280", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1480", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0700", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1220", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0550", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0610", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0280", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1390", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1520", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0790", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1310", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1490", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0560", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0740", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1230", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1580", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0530", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1410", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0780", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0260", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1270", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1350", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0600", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1420", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0240", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1380", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1500", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1630", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1290", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1460", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0590", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0720", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1260", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0580", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1440", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0230", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1340", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1560", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0310", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1400", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1540", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0290", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1790", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1550", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0270", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1100", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1360", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0330", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1370", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1050", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0300", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0850", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1090", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0380", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1800", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1060", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0320", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0980", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0020", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1160", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1680", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0970", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0110", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1170", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1690", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0840", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1010", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0340", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0860", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1030", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0350", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1020", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1780", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0400", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0870", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1070", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0370", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0880", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1120", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1650", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0960", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1180", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0390", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0890", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0090", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1140", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0360", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0930", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0080", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1200", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1660", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0950", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0050", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1040", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1640", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0910", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0120", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1080", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0800", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1000", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0060", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1150", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1610", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0900", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0100", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1130", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1670", + "testability/pages/UiComponentSpanBaselineoffset/UiComponentSpanBaselineoffset0060", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow023", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow025", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow026", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow027", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow029", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow030", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow031", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow032", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow033", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow058", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow059", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow061", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow062", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow063", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow064", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow065", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow066", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow067", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow068", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow069", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow070", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow071", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow072", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow073", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow074", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow075", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow076", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow077", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow078", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow079", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow080", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow081", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow084", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow087", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow088", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow091", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow094", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow095", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow098", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow101", + "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow102", + "testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0290", + "testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0300", + "testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0320", + "testability/pages/UIComponentPopupBoxStyleStrong/UIComponentPopupBoxStyleStrong0330", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0020", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0030", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0040", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0050", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0060", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0070", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0080", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0090", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0100", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0110", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0120", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0130", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0140", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0150", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0160", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0170", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0180", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0190", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0200", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0210", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0220", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0230", + "testability/pages/UIComponentFunctionFormSelectionTimePickerLanguageOrder/UIComponentFunctionFormSelectionTimePickerLanguageOrder0240", + "testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0030", + "testability/pages/UIComponentButtonToggleInteraction/UIComponentButtonToggleInteraction0020", + "testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0030", + "testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0040", + "testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0240", + "testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0250", + "testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0280", + "testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0290", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20160", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20190", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20200", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20080", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20030", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20040", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20240", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20070", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20170", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20100", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20120", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20130", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20150", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20110", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20050", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20220", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20260", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20210", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20250", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20230", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20280", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20270", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20290", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20340", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20310", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20350", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20330", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20360", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20390", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20370", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20380", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20320", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20400", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20300", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20010", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20020", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20090", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20060", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20180", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface2/UIComponentPopupboxTimepickerdialogInterface20140", + "testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0090", + "testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0030", + "testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0020", + "testability/pages/UIComponentPopupboxTimepickerdialogScenarios/UIComponentPopupboxTimepickerdialogScenarios0010", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0950", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1070", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1030", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1240", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1090", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1010", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0900", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1260", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1180", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1310", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1060", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1050", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1290", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1020", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1080", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1100", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0980", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1120", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0910", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1220", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1360", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1340", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0990", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0860", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0700", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0890", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0850", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1130", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0880", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1160", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1300", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1200", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1110", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1280", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1040", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1170", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0820", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0800", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0790", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1140", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0920", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1150", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0760", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1270", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0710", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0740", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1350", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0830", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0720", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1210", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0730", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0940", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0770", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0960", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0930", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1000", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0840", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1320", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0750", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1230", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0870", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1330", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0780", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0970", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface0810", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1250", + "testability/pages/UIComponentPopupboxTimepickerdialogInterface/UIComponentPopupboxTimepickerdialogInterface1190", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0920", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0180", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1190", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1730", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0940", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0170", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1110", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1740", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0990", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0070", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1600", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1760", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0410", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0140", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0630", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1710", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0030", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0420", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0620", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1720", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0430", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0010", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0650", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1750", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0440", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0040", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0710", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1620", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0450", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0130", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0670", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0820", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0460", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0160", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0640", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1700", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0470", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0200", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0690", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0830", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0480", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0190", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0680", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0810", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0490", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0150", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0660", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1770", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0510", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1470", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0760", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1210", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0500", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1450", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0730", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric1240", + "testability/pages/UIComponentButtonTimepickerNumeric/UIComponentButtonTimepickerNumeric0520", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0290", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0010", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0260", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0280", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0110", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0030", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0150", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0200", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0020", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0170", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0230", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0130", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0210", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0360", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0140", + "testability/pages/UIComponentButtonTimepickerInterface/UIComponentButtonTimepickerInterface0160", + "testability/pages/UIComponentScrollPickerPickerrefactor/UIComponentScrollPickerPickerrefactor0190", + "testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1260", + "testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1250", + "testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold1270", + "testability/pages/UIComponentPopupboxConsistencyScene/UIComponentPopupboxConsistencyScene0040", + "testability/pages/UIComponentTextTextInputCursor/UIComponentTextTextInputCursor1720", + "testability/pages/UIComponentTextTextInputKeepEditableState/UIComponentTextTextInputKeepEditableState0100", "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0001", "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0002", "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0003", @@ -1458,6 +2248,96 @@ "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0990", "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1000", "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1010", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle006", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle008", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle009", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle010", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle012", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle016", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle017", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle020", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle021", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle022", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle023", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle024", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle025", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle026", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle014", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle015", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle018", + "testability/pages/UIComponentButtonRadioStyle/UIComponentButtonRadioStyle019", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0010", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0020", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0030", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0050", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0060", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0070", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0080", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0090", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0100", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0110", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0120", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0130", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0140", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0150", + "testability/pages/UIComponentButtonToggleCustomizing/UIComponentButtonToggleCustomizing0170", + "testability/pages/UIComponentButtonToggleEvent/UIComponentButtonToggleEvent0010", + "testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0010", + "testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0040", + "testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0070", + "testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0170", + "testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0220", + "testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0230", + "testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0250", + "testability/pages/UIComponentButtonToggleInterface/UIComponentButtonToggleInterface0330", + "testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0010", + "testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0030", + "testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0070", + "testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0090", + "testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0100", + "testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0110", + "testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0120", + "testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0130", + "testability/pages/UIComponentButtonToggleMirror/UIComponentButtonToggleMirror0140", + "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0500", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0120", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0100", + "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0470", + "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0460", + "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0490", + "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0480", + "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0510", + "testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0270", + "testability/pages/UIComponentPopupBoxPromptToastSystem/UIComponentPopupBoxPromptToastSystem0260", + "testability/pages/UIComponentPopupBoxPicker/UIComponentPopupBoxPicker0200", + + "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0450", + + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1980", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1970", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0830", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0080", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0100", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0110", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1100", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1090", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1630", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1190", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1310", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1200", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1380", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0160", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0670", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1480", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0040", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0190", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1510", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1490", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0470", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1390", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0320", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest0540", + "testability/pages/UIComponentPopupboxMenuMenuTest/UIComponentPopupboxMenuMenuTest1060" "testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0010", "testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0020", "testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0030", diff --git a/function/ui_compare_rh/uicompare_tools/excel/uicompare.xlsx b/function/ui_compare_rh/uicompare_tools/excel/uicompare.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..b65b66383037baefc53911f3a40c8293bb8747a4 Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/uicompare.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/uicompare_gen.xlsx b/function/ui_compare_rh/uicompare_tools/excel/uicompare_gen.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..e9b9bc33bdc3e2f569fe80736fe3aa785b9ae926 Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/uicompare_gen.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/run.bat b/function/ui_compare_rh/uicompare_tools/run.bat index 3fe200aa702522de563d3a9f63384ace127aca21..5110dc05756925a4c3b99bba78d1cc2326dfc961 100644 --- a/function/ui_compare_rh/uicompare_tools/run.bat +++ b/function/ui_compare_rh/uicompare_tools/run.bat @@ -34,4 +34,4 @@ set /p param= 输入入参: python UiCompareTools_progress.py %param% -pause +pause \ No newline at end of file