diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..0675f8f329877cac86ec09acd730e8ca151a07d7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/function/ui_compare_rh/uicompare/build-profile.json5
diff --git a/OAT.xml b/OAT.xml
index e6b5b947bba36fe1ac1eb390307a3738babad273..e0a96607cd9606305e93a0b59b6ba1df8781cff5 100644
--- a/OAT.xml
+++ b/OAT.xml
@@ -115,6 +115,12 @@ Note:If the text contains special characters, please escape them according to th
+
+
+
+
+
+
diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets
index ee88d68d2a9f85cd8a8d5c04860931aa5966eed1..60e72e91e7f620e429e59d1b857a8ee1fef5827a 100644
--- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets
+++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets
@@ -83,6 +83,7 @@ import UIComponentSymbolDisplay from './UIComponentSymbolDisplayTest/UIComponent
import UIAttributeFontSupportstage from './UIAttributeFontSupportstageTest/UIAttributeFontSupportstage.test'
import UIAttributeFontInterface002 from './UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test'
import UIAttributeFontInterface003 from './UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test'
+
export default function testsuite() {
demoTest();
UIAttributeFontInterface001();
diff --git a/function/ui_compare_rh/uicompare/entry/src/main/module.json5 b/function/ui_compare_rh/uicompare/entry/src/main/module.json5
index 9b07af70a189c0165e30b9f4bedc3bfd22b53cda..aaa89d5eea91df7b567f0c859ec30cc9eb50fbd1 100644
--- a/function/ui_compare_rh/uicompare/entry/src/main/module.json5
+++ b/function/ui_compare_rh/uicompare/entry/src/main/module.json5
@@ -11,6 +11,11 @@
"deliveryWithInstall": true,
"installationFree": false,
"pages": "$profile:main_pages",
+ "requestPermissions": [
+ {
+ "name": "ohos.permission.INTERNET"
+ }
+ ],
"abilities": [
{
"name": "EntryAbility",
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/ARKUIComponentFunctionSpecialComponentsDialogActionSheetTest/ARKUIComponentFunctionSpecialComponentsDialogActionSheet.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ARKUIComponentFunctionSpecialComponentsDialogActionSheetTest/ARKUIComponentFunctionSpecialComponentsDialogActionSheet.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d762d6ff5678e26c8ebe952856191a7dbc99411a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ARKUIComponentFunctionSpecialComponentsDialogActionSheetTest/ARKUIComponentFunctionSpecialComponentsDialogActionSheet.test.ets
@@ -0,0 +1,1016 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+
+import { Component, Driver ,ON } from '@ohos.UiTest'
+
+export default function ARKUIComponentFunctionSpecialComponentsDialogActionSheet() {
+
+ describe('ARKUIComponentFunctionSpecialComponentsDialogActionSheet', () => {
+
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0130
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0130
+ * @tc.desc 列表选择弹窗subtitle设置为string 类型 (空串)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0130 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0130")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0130 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0560
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0560
+ * @tc.desc 列表选择弹窗中backgroundBlurStyle设置为COMPONENT_THIN
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0560', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0560 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0560")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0560 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0540
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0540
+ * @tc.desc 列表选择弹窗中backgroundBlurStyle设置为NONE
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0540', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0540 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0540")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0540 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0140
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0140
+ * @tc.desc 列表选择弹窗subtitle设置为超长字符串
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0140', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0140 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0140")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0140 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0510
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0510
+ * @tc.desc 列表选择弹窗中backgroundBlurStyle设置为BACKGROUND_REGULAR
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0510', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0510 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0510")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0510 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0170
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0170
+ * @tc.desc 列表选择弹窗message设置为string类型 (空串)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0170', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0170 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0170")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0170 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0570
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0570
+ * @tc.desc 列表选择弹窗中backgroundBlurStyle设置为COMPONENT_REGULAR
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0570', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0570 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0570")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0570 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0500
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0500
+ * @tc.desc 列表选择弹窗中backgroundBlurStyle设置为BACKGROUND_THIN
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0500', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0500 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0500")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0500 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0150
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0150
+ * @tc.desc 列表选择弹窗subtitle设置为Resource类型
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0150 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0150")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0150 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0490
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0490
+ * @tc.desc 列表选择弹窗backgroundBlurStyle设置为Thick
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0490', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0490 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0490")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0490 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0470
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0470
+ * @tc.desc 列表选择弹窗backgroundBlurStyle设置为Thin
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0470', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0470 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0470")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0470 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0180
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0180
+ * @tc.desc 列表选择弹窗message设置为Resource类型
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0180 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0180")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0180 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0590
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0590
+ * @tc.desc 列表选择弹窗backgroundBlurStyle设置为COMPONENT_ULTRA_THICK
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0590', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0590 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0590")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0590 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0520
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0520
+ * @tc.desc 列表选择弹窗backgroundBlurStyle设置为BACKGROUND_THICK
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0520', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0520 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0520")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0520 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0160
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0160
+ * @tc.desc 列表选择弹窗backgroundBlurStyle设置为BACKGROUND_THICK
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0160 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0160")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0160 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0550
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0550
+ * @tc.desc 列表选择弹窗backgroundBlurStyle设置为COMPONENT_ULTRA_THIN
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0550', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0550 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0550")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0550 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0480
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0480
+ * @tc.desc 列表选择弹窗backgroundBlurStyle设置为Regular
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0480', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0480 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0480")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0480 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0100
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0100
+ * @tc.desc 列表选择弹窗title设置为strng类型 (空串)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0100 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0100")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0100 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0530
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0530
+ * @tc.desc backgroundBlurStyle设置为BACKGROUND_ULTRA_THICK
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0530', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0530 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0530")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0530 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0580
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0580
+ * @tc.desc backgroundBlurStyle设置为COMPONENT_THICK
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0580', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0580 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0580")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0580 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0200
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0200
+ * @tc.desc 列表选择弹窗offset设置为String类型
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0200', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0200 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0200")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0200 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0090
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0090
+ * @tc.desc 列表选择弹窗title设置为string类型lam 弹窗标题
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0090 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0090")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0090 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0190
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0190
+ * @tc.desc 列表选择弹窗offset设置为Resource类型
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0190 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0190")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0190 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0110
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0110
+ * @tc.desc 列表选择弹窗title设置为Resource类型
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0110 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0110")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0110 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0220
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0220
+ * @tc.desc 验证maskRect中4个参数的非必填性 maskRect{}
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0220', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0220 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0220")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0220 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0210
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0210
+ * @tc.desc 列表选择弹窗offset设置为number类型
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0210 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0210")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0210 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0120
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0120
+ * @tc.desc 列表选择弹窗subtitle设置为String类型lam 弹窗副标题
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0120 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0120")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0120 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0230
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0230
+ * @tc.desc 列表选择弹窗maskRect中设置x为string类型(maskRect:{x:50px})
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0230 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0230")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0230 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0290
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0290
+ * @tc.desc 列表选择弹窗maskRect中设置y为空串(maskRect:{y:})
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0290', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0290 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0290")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0290 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0260
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0260
+ * @tc.desc 列表选择弹窗maskRect中设置x为Resource类型
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0260 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0260")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0260 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0240
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0240
+ * @tc.desc 列表选择弹窗maskRect中设置x为空串(maskRect:{x:})
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0240 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0240")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0240 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0330
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0330
+ * @tc.desc 列表选择弹窗maskRect中设置width为string类型 40%
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0330', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0330 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0330")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0330 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0320
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0320
+ * @tc.desc 列表选择弹窗maskRect中设置y为Undefined
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0320', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0320 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0320")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0320 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0250
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0250
+ * @tc.desc 列表选择弹窗maskRect中设置x为number类型
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0250 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0250")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0250 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0270
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0270
+ * @tc.desc 列表选择弹窗maskRect中设置x为null
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0270 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0270")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0270 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0310
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0310
+ * @tc.desc 列表选择弹窗maskRect中设置y为Resource类型
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0310 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0310")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0310 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0300
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0300
+ * @tc.desc 列表选择弹窗maskRect中设置y为number类型
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0300', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0300 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0300")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0300 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0280
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0280
+ * @tc.desc 列表选择弹窗maskRect中设置string类型(maskRect:{y: 60%})
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0280 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0280")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0280 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0340
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0340
+ * @tc.desc 列表选择弹窗maskRect中设置width为number类型200
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0340', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0340 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0340")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0340 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0350
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0350
+ * @tc.desc 列表选择弹窗maskRect中设置width为Resource类型$r(300px)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0350', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0350 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0350")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0350 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0370
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0370
+ * @tc.desc 列表选择弹窗maskRect中设置height为string类型 200px
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0370', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0370 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0370")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0370 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0360
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0360
+ * @tc.desc 列表选择弹窗maskRect中设置width为异常值-200
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0360', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0360 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0360")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0360 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0380
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0380
+ * @tc.desc 列表选择弹窗maskRect中设置height为number类型200
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0380', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0380 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0380")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0380 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0390
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0390
+ * @tc.desc 列表选择弹窗maskRect中设置height为Resource类型$r(60% )
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0390', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0390 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0390")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0390 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0400
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0400
+ * @tc.desc 列表选择弹窗maskRect中设置height为异常值 -60%
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0400', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0400 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0400")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0400 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0450
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0450
+ * @tc.desc 列表选择弹窗backgroundColor设置为string类型 rgb(0,128,0)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0450', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0450 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0450")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0450 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0410
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0410
+ * @tc.desc 列表选择弹窗中isModal设置为true
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0410', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0410 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0410")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0410 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0420
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0420
+ * @tc.desc 列表选择弹窗中isModal设置为false
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0420', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0420 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0420")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0420 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0460
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0460
+ * @tc.desc 列表选择弹窗中backgroundColor设置为Resource类型$r(#800080)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0460', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0460 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0460")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0460 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0440
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0440
+ * @tc.desc 列表选择弹窗中backgroundColor设置为Resource类型$r(#800080)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0440', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0440 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0440")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0440 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0430
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0430
+ * @tc.desc 列表选择弹窗中backgroundColor设置为枚举值Color.Red
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0430', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0430 start.`);
+ Settings.createWindow("testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0430")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_ACTIONSHEET_0430 finish.`);
+ done()
+ })
+
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabScrollableTest/ArkUITabScrollable.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabScrollableTest/ArkUITabScrollable.test.ets
index 11de16ebb3a3e455b798f2cddc14af0bb33dd4dc..d89de5710fea82143288203a24a72aef8a3807de 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabScrollableTest/ArkUITabScrollable.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabScrollableTest/ArkUITabScrollable.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStyleUnselectedColorTest/ArkUITabsLabelStyleUnselectedColor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStyleUnselectedColorTest/ArkUITabsLabelStyleUnselectedColor.test.ets
index d7dd0377579ace102aa8506ceea577bf63d48457..7e095c0be80cf1efb73858b80467fe8da3bac367 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStyleUnselectedColorTest/ArkUITabsLabelStyleUnselectedColor.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStyleUnselectedColorTest/ArkUITabsLabelStyleUnselectedColor.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStylefontTest/ArkUITabsLabelStylefont.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStylefontTest/ArkUITabsLabelStylefont.test.ets
index 1279dfa79c2cf91afd023b941364d0ad5a29eda1..55db189b908c7c198bf22f69e29a60442015d5f9 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStylefontTest/ArkUITabsLabelStylefont.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStylefontTest/ArkUITabsLabelStylefont.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsVerticalTest/ArkUITabsVertical.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsVerticalTest/ArkUITabsVertical.test.ets
index 60afbf12b9eabdc4f3d0fe3375a6ec0824d79360..c671e1a4ca5204eb51874f4147c5c13dbb2bd56d 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsVerticalTest/ArkUITabsVertical.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsVerticalTest/ArkUITabsVertical.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkuiComponentfunctionSpecialcomponentsDialogMirrorTest/ArkuiComponentfunctionSpecialcomponentsDialogMirror.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkuiComponentfunctionSpecialcomponentsDialogMirrorTest/ArkuiComponentfunctionSpecialcomponentsDialogMirror.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bd39dbed2d41dadde9441809125477616312a582
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkuiComponentfunctionSpecialcomponentsDialogMirrorTest/ArkuiComponentfunctionSpecialcomponentsDialogMirror.test.ets
@@ -0,0 +1,326 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 ArkuiComponentfunctionSpecialcomponentsDialogMirror(){
+ describe('ArkuiComponentfunctionSpecialcomponentsDialogMirror', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0140
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0140
+ * @tc.desc 验证英文环境下布局正常显示
+ */
+ it("ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0140", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0140");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const setLanguage:Component = await driver.findComponent(ON.id("setLanguage"));
+ const getLanguage:Component = await driver.findComponent(ON.id("getLanguage"));
+ await setLanguage.click();
+ await Utils.sleep(1000);
+ await getLanguage.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0110
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0110
+ * @tc.desc 验证维吾尔语环境下设置了通用属性的宽度正常显示
+ */
+ it("ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0110", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0110");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open:Component = await driver.findComponent(ON.id("open"));
+ const setLanguage:Component = await driver.findComponent(ON.id("setLanguage"));
+ const getLanguage:Component = await driver.findComponent(ON.id("getLanguage"));
+ await open.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ await setLanguage.click();
+ await Utils.sleep(1000);
+ await getLanguage.click();
+ await Utils.sleep(1000);
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0050
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0050
+ * @tc.desc 验证简体中文环境下设置了通用属性的颜色正常显示
+ */
+ it("ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0050", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0050");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open:Component = await driver.findComponent(ON.id("open"));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0150
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0150
+ * @tc.desc 验证藏文环境下布局正常显示
+ */
+ it("ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0150", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0150");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const setLanguage:Component = await driver.findComponent(ON.id("setLanguage"));
+ const getLanguage:Component = await driver.findComponent(ON.id("getLanguage"));
+ await setLanguage.click();
+ await Utils.sleep(1000);
+ await getLanguage.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0100
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0100
+ * @tc.desc 验证维吾尔语环境下设置了通用属性的圆角半径正常显示
+ */
+ it("ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0100", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0100");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open:Component = await driver.findComponent(ON.id("open"));
+ const setLanguage:Component = await driver.findComponent(ON.id("setLanguage"));
+ const getLanguage:Component = await driver.findComponent(ON.id("getLanguage"));
+ await open.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ await setLanguage.click();
+ await Utils.sleep(1000);
+ await getLanguage.click();
+ await Utils.sleep(1000);
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0080
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0080
+ * @tc.desc 验证维吾尔语环境下多级弹窗下布局正常显示
+ */
+ it("ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0080", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0080");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open1:Component = await driver.findComponent(ON.id("open1"));
+ await open1.click();
+ await Utils.sleep(1000);
+ const open2:Component = await driver.findComponent(ON.id("open2"));
+ await open2.click();
+ await Utils.sleep(1000);
+ const open3:Component = await driver.findComponent(ON.id("open3"));
+ await open3.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(500);
+ await driver.pressBack();
+ await Utils.sleep(500);
+ await driver.pressBack();
+ await Utils.sleep(500);
+ const setLanguage:Component = await driver.findComponent(ON.id("setLanguage"));
+ const getLanguage:Component = await driver.findComponent(ON.id("getLanguage"));
+ await setLanguage.click();
+ await Utils.sleep(1000);
+ await getLanguage.click();
+ await Utils.sleep(1000);
+ await open1.click();
+ await Utils.sleep(1000);
+ const open22:Component = await driver.findComponent(ON.id("open2"));
+ await open22.click();
+ await Utils.sleep(1000);
+ const open33:Component = await driver.findComponent(ON.id("open3"));
+ await open33.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0030
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0030
+ * @tc.desc 验证简体中文环境下设置了通用属性的圆角半径正常显示
+ */
+ it("ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0030", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0030");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open:Component = await driver.findComponent(ON.id("open"));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0120
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0120
+ * @tc.desc 验证维吾尔语环境下设置了通用属性的颜色正常显示
+ */
+ it("ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0120", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0120");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open:Component = await driver.findComponent(ON.id("open"));
+ const setLanguage:Component = await driver.findComponent(ON.id("setLanguage"));
+ const getLanguage:Component = await driver.findComponent(ON.id("getLanguage"));
+ await open.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ await setLanguage.click();
+ await Utils.sleep(1000);
+ await getLanguage.click();
+ await Utils.sleep(1000);
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0060
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0060
+ * @tc.desc 验证繁体中文环境下布局正常显示
+ */
+ it("ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0060", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0060");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const setLanguage:Component = await driver.findComponent(ON.id("setLanguage"));
+ const getLanguage:Component = await driver.findComponent(ON.id("getLanguage"));
+ await setLanguage.click();
+ await Utils.sleep(1000);
+ await getLanguage.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0070
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0070
+ * @tc.desc 验证维吾尔语环境下偏移正常显示
+ */
+ it("ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0070", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0070");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open:Component = await driver.findComponent(ON.id("open"));
+ const setLanguage:Component = await driver.findComponent(ON.id("setLanguage"));
+ const getLanguage:Component = await driver.findComponent(ON.id("getLanguage"));
+ await setLanguage.click();
+ await Utils.sleep(1000);
+ await getLanguage.click();
+ await Utils.sleep(1000);
+ await open.click();
+ await Utils.sleep(1000);
+ const up:Component = await driver.findComponent(ON.id("up"));
+ await up.click();
+ await Utils.sleep(1000);
+ const down:Component = await driver.findComponent(ON.id("down"));
+ await down.click();
+ await Utils.sleep(1000);
+ const left:Component = await driver.findComponent(ON.id("left"));
+ await left.click();
+ await Utils.sleep(1000);
+ const right:Component = await driver.findComponent(ON.id("right"));
+ await right.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0040
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0040
+ * @tc.desc 验证简体中文环境下设置了通用属性的宽度正常显示
+ */
+ it("ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0040", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0040");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open = await driver.findComponent(ON.id("open"));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0020
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0020
+ * @tc.desc 验证简体中文环境下布局正常显示
+ */
+ it("ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_MIRROR_0020", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0020");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentCheckBoxTest/ComponentCheckBoxTestCase.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentCheckBoxTest/ComponentCheckBoxTestCase.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e9ba225e499ff048ee7838c613ade184b43ea126
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentCheckBoxTest/ComponentCheckBoxTestCase.test.ets
@@ -0,0 +1,665 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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'
+
+/*
+ *
+ * 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 ComponentCheckBoxTestCase() {
+
+ describe('ComponentCheckBoxTestCase', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_f0d721b546e444ecac92563f2ed8fcd5
+ * @tc.name TestCase_f0d721b546e444ecac92563f2ed8fcd5
+ * @tc.desc set builder longtext
+ */
+ it('TestCase_f0d721b546e444ecac92563f2ed8fcd5_1', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_f0d721b546e444ecac92563f2ed8fcd5 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBoxf0d7");
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+
+ Logger.info('TEST', `TestCase_f0d721b546e444ecac92563f2ed8fcd5 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_f0d721b546e444ecac92563f2ed8fcd5
+ * @tc.name TestCase_f0d721b546e444ecac92563f2ed8fcd5
+ * @tc.desc set builder longtext
+ */
+ it('TestCase_f0d721b546e444ecac92563f2ed8fcd5_2', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_f0d721b546e444ecac92563f2ed8fcd5 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBoxf0d7");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let button = await driver.findComponent(ON.id('CheckBox'))
+ await Utils.sleep(500);
+ await button.click()
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `TestCase_f0d721b546e444ecac92563f2ed8fcd5 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_7f1cb60cb9d54e27aed3bb554d981a6e
+ * @tc.name TestCase_7f1cb60cb9d54e27aed3bb554d981a6e
+ * @tc.desc set builder empty
+ */
+ it('TestCase_7f1cb60cb9d54e27aed3bb554d981a6e_1', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_7f1cb60cb9d54e27aed3bb554d981a6e start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox7f1c");
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `TestCase_7f1cb60cb9d54e27aed3bb554d981a6e finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_7f1cb60cb9d54e27aed3bb554d981a6e
+ * @tc.name TestCase_7f1cb60cb9d54e27aed3bb554d981a6e
+ * @tc.desc set builder empty
+ */
+ it('TestCase_7f1cb60cb9d54e27aed3bb554d981a6e_2', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_7f1cb60cb9d54e27aed3bb554d981a6e start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox7f1c");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let button = await driver.findComponent(ON.id('CheckBox'))
+ await Utils.sleep(500);
+ await button.click()
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `TestCase_7f1cb60cb9d54e27aed3bb554d981a6e finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_fb77ffef19974931942833f08ff230f0
+ * @tc.name TestCase_fb77ffef19974931942833f08ff230f0
+ * @tc.desc set builder large size image
+ */
+ it('TestCase_fb77ffef19974931942833f08ff230f0_1', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_fb77ffef19974931942833f08ff230f0 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBoxfb77");
+ await Utils.sleep(2000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_fb77ffef19974931942833f08ff230f0 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_fb77ffef19974931942833f08ff230f0
+ * @tc.name TestCase_fb77ffef19974931942833f08ff230f0
+ * @tc.desc set builder large size image
+ */
+ it('TestCase_fb77ffef19974931942833f08ff230f0_2', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_fb77ffef19974931942833f08ff230f0 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBoxfb77");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let button = await driver.findComponent(ON.id('CheckBox'))
+ await Utils.sleep(500);
+ await button.click()
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `TestCase_fb77ffef19974931942833f08ff230f0 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_641be7ec65d84a05a62228ad2dfbc91a
+ * @tc.name TestCase_641be7ec65d84a05a62228ad2dfbc91a
+ * @tc.desc set builder undefined
+ */
+ it('TestCase_641be7ec65d84a05a62228ad2dfbc91a_1', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_fb77ffef19974931942833f08ff230f0 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox641b");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let button = await driver.findComponent(ON.text('undefined'))
+ await Utils.sleep(500);
+ await button.click()
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_fb77ffef19974931942833f08ff230f0 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_641be7ec65d84a05a62228ad2dfbc91a
+ * @tc.name TestCase_641be7ec65d84a05a62228ad2dfbc91a
+ * @tc.desc set builder null
+ */
+ it('TestCase_641be7ec65d84a05a62228ad2dfbc91a_2', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_fb77ffef19974931942833f08ff230f0 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox641b");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let button = await driver.findComponent(ON.text('null'))
+ await Utils.sleep(500);
+ await button.click()
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_fb77ffef19974931942833f08ff230f0 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_641be7ec65d84a05a62228ad2dfbc91a
+ * @tc.name TestCase_641be7ec65d84a05a62228ad2dfbc91a
+ * @tc.desc do not set builder
+ */
+ it('TestCase_641be7ec65d84a05a62228ad2dfbc91a_3', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_fb77ffef19974931942833f08ff230f0 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox641b");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let button = await driver.findComponent(ON.text('不设置'))
+ await Utils.sleep(500);
+ await button.click()
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_fb77ffef19974931942833f08ff230f0 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_7e330c9dc3a84b97976406fb65e9d2bf
+ * @tc.name TestCase_7e330c9dc3a84b97976406fb65e9d2bf
+ * @tc.desc set builder undefined
+ */
+ it('TestCase_7e330c9dc3a84b97976406fb65e9d2bf_1', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_7e330c9dc3a84b97976406fb65e9d2bf start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox7e33");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let button = await driver.findComponent(ON.text('undefined'))
+ await Utils.sleep(500);
+ await button.click()
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_7e330c9dc3a84b97976406fb65e9d2bf finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_7e330c9dc3a84b97976406fb65e9d2bf
+ * @tc.name TestCase_7e330c9dc3a84b97976406fb65e9d2bf
+ * @tc.desc set builder null
+ */
+ it('TestCase_7e330c9dc3a84b97976406fb65e9d2bf_2', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_7e330c9dc3a84b97976406fb65e9d2bf start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox7e33");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let button = await driver.findComponent(ON.text('null'))
+ await Utils.sleep(500);
+ await button.click()
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_7e330c9dc3a84b97976406fb65e9d2bf finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_7e330c9dc3a84b97976406fb65e9d2bf
+ * @tc.name TestCase_7e330c9dc3a84b97976406fb65e9d2bf
+ * @tc.desc do not set builder
+ */
+ it('TestCase_7e330c9dc3a84b97976406fb65e9d2bf_3', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_7e330c9dc3a84b97976406fb65e9d2bf start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox7e33");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button = await driver.findComponent(ON.text('不设置'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_7e330c9dc3a84b97976406fb65e9d2bf finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_01494ffd94524738balced23e00a405b
+ * @tc.name TestCase_01494ffd94524738balced23e00a405b
+ * @tc.desc test CheckBoxGroup and CheckBox shape
+ */
+ it('TestCase_01494ffd94524738balced23e00a405b', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_01494ffd94524738balced23e00a405b start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox0149");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_01494ffd94524738balced23e00a405b finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_e8729559a8094135b8d76alfdbafa6dc
+ * @tc.name TestCase_e8729559a8094135b8d76alfdbafa6dc
+ * @tc.desc test CheckBoxGroup and CheckBox shape
+ */
+ it('TestCase_e8729559a8094135b8d76alfdbafa6dc', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_e8729559a8094135b8d76alfdbafa6dc start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBoxe872");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_e8729559a8094135b8d76alfdbafa6dc finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_08cd2ea081034fa6ae0cd0772a2bf07f
+ * @tc.name TestCase_08cd2ea081034fa6ae0cd0772a2bf07f
+ * @tc.desc test CheckBoxGroup and CheckBox shape
+ */
+ it('TestCase_08cd2ea081034fa6ae0cd0772a2bf07f', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_08cd2ea081034fa6ae0cd0772a2bf07f start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox08cd");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_08cd2ea081034fa6ae0cd0772a2bf07f finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_d08cae64df29430e8b3b05d2567ca0e9
+ * @tc.name TestCase_d08cae64df29430e8b3b05d2567ca0e9
+ * @tc.desc test CheckBoxGroup and CheckBox shape
+ */
+ it('TestCase_d08cae64df29430e8b3b05d2567ca0e9', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_d08cae64df29430e8b3b05d2567ca0e9 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBoxd08c");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_d08cae64df29430e8b3b05d2567ca0e9 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_df4d2b8d6d7f4bf7b77601c88ae2ceba
+ * @tc.name TestCase_df4d2b8d6d7f4bf7b77601c88ae2ceba
+ * @tc.desc test CheckBoxGroup and CheckBox shape
+ */
+ it('TestCase_df4d2b8d6d7f4bf7b77601c88ae2ceba', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_df4d2b8d6d7f4bf7b77601c88ae2ceba start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBoxdf4d");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_df4d2b8d6d7f4bf7b77601c88ae2ceba finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_cb407e01d95e41e9859eecb9a441e240
+ * @tc.name TestCase_cb407e01d95e41e9859eecb9a441e240
+ * @tc.desc test CheckBoxGroup and CheckBox shape
+ */
+ it('TestCase_cb407e01d95e41e9859eecb9a441e240', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_cb407e01d95e41e9859eecb9a441e240 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBoxcb40");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_cb407e01d95e41e9859eecb9a441e240 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_766c192026874faf9c0d745f48617d9e
+ * @tc.name TestCase_766c192026874faf9c0d745f48617d9e
+ * @tc.desc test CheckBoxGroup and CheckBox shape
+ */
+ it('TestCase_766c192026874faf9c0d745f48617d9e', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_766c192026874faf9c0d745f48617d9e start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox766c");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_766c192026874faf9c0d745f48617d9e finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_8eac968bb0b8480cb7cbfbd30d8a799b
+ * @tc.name TestCase_8eac968bb0b8480cb7cbfbd30d8a799b
+ * @tc.desc test CheckBoxGroup and CheckBox shape
+ */
+ it('TestCase_8eac968bb0b8480cb7cbfbd30d8a799b', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_8eac968bb0b8480cb7cbfbd30d8a799b start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox8eac");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_8eac968bb0b8480cb7cbfbd30d8a799b finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_b990ea38b7df49e0a54d5b7408b859dc
+ * @tc.name TestCase_b990ea38b7df49e0a54d5b7408b859dc
+ * @tc.desc test CheckBoxGroup and CheckBox shape
+ */
+ it('TestCase_b990ea38b7df49e0a54d5b7408b859dc', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_b990ea38b7df49e0a54d5b7408b859dc start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBoxb990");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_b990ea38b7df49e0a54d5b7408b859dc finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_700f98fcddle42d5b5a41e9e50e4e870
+ * @tc.name TestCase_700f98fcddle42d5b5a41e9e50e4e870
+ * @tc.desc test CheckBoxGroup and CheckBox shape
+ */
+ it('TestCase_700f98fcddle42d5b5a41e9e50e4e870', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_700f98fcddle42d5b5a41e9e50e4e870 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox700f");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_700f98fcddle42d5b5a41e9e50e4e870 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_5c81df08580042db9dfe95ce4ecffbf1
+ * @tc.name TestCase_5c81df08580042db9dfe95ce4ecffbf1
+ * @tc.desc test CheckBoxGroup and CheckBox shape
+ */
+ it('TestCase_5c81df08580042db9dfe95ce4ecffbf1', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_5c81df08580042db9dfe95ce4ecffbf1 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox5c81");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_5c81df08580042db9dfe95ce4ecffbf1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_2eba761fea234568b1blef38de78ed2a
+ * @tc.name TestCase_2eba761fea234568b1blef38de78ed2a
+ * @tc.desc set builder large size image
+ */
+ it('TestCase_2eba761fea234568b1blef38de78ed2a_1', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_2eba761fea234568b1blef38de78ed2a start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox2eba");
+ await Utils.sleep(2000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_2eba761fea234568b1blef38de78ed2a finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_2eba761fea234568b1blef38de78ed2a
+ * @tc.name TestCase_2eba761fea234568b1blef38de78ed2a
+ * @tc.desc set builder large size image
+ */
+ it('TestCase_2eba761fea234568b1blef38de78ed2a_2', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_2eba761fea234568b1blef38de78ed2a start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox2eba");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let button = await driver.findComponent(ON.id('CheckBox'))
+ await Utils.sleep(500);
+ await button.click()
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `TestCase_2eba761fea234568b1blef38de78ed2a finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_f586a62e0f634deebcd7a46be0a81e98
+ * @tc.name TestCase_f586a62e0f634deebcd7a46be0a81e98
+ * @tc.desc test contentModifier、mark、indicatorBuilder priority
+ */
+ it('TestCase_f586a62e0f634deebcd7a46be0a81e98', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_f586a62e0f634deebcd7a46be0a81e98 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBoxf586");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let button = await driver.findComponent(ON.id('CheckBox'))
+ await Utils.sleep(500);
+ await button.click()
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_f586a62e0f634deebcd7a46be0a81e98 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_84791c30fea44a158165130d25ad72c6
+ * @tc.name TestCase_84791c30fea44a158165130d25ad72c6
+ * @tc.desc test change contentModifier
+ */
+ it('TestCase_84791c30fea44a158165130d25ad72c6', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_84791c30fea44a158165130d25ad72c6 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox8479");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let button = await driver.findComponent(ON.text('Change'))
+ await Utils.sleep(500);
+ await button.click()
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_84791c30fea44a158165130d25ad72c6 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_3f43054f7ceb4ec6b58aff7194d4d9d3
+ * @tc.name TestCase_3f43054f7ceb4ec6b58aff7194d4d9d3
+ * @tc.desc test change contentModifier
+ */
+ it('TestCase_3f43054f7ceb4ec6b58aff7194d4d9d3', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_3f43054f7ceb4ec6b58aff7194d4d9d3 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox3f43");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+
+ let checkbox1 = await driver.findComponent(ON.id('CheckBox1'))
+ await Utils.sleep(500);
+ await checkbox1.click()
+ await Utils.sleep(500);
+
+ let checkbox2 = await driver.findComponent(ON.id('CheckBox2'))
+ await Utils.sleep(500);
+ await checkbox2.click()
+ await Utils.sleep(500);
+
+ let checkbox3 = await driver.findComponent(ON.id('CheckBox3'))
+ await Utils.sleep(500);
+ await checkbox3.click()
+ await Utils.sleep(500);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_3f43054f7ceb4ec6b58aff7194d4d9d3 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_5f6871749d494707a4f5a65a608f5c48
+ * @tc.name TestCase_5f6871749d494707a4f5a65a608f5c48
+ * @tc.desc test change contentModifier
+ */
+ it('TestCase_5f6871749d494707a4f5a65a608f5c48', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_5f6871749d494707a4f5a65a608f5c48 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox5f68");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let button = await driver.findComponent(ON.id('CheckBox'))
+ await Utils.sleep(200);
+ await button.click()
+ await Utils.sleep(200);
+
+ await button.click()
+ await Utils.sleep(200);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_5f6871749d494707a4f5a65a608f5c48 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_727cdf0190f44a9ead2f8657ec928f75
+ * @tc.name TestCase_727cdf0190f44a9ead2f8657ec928f75
+ * @tc.desc test change contentModifier
+ */
+ it('TestCase_727cdf0190f44a9ead2f8657ec928f75', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_727cdf0190f44a9ead2f8657ec928f75 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox727c");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let textInput = await driver.findComponent(ON.id('TextInput'))
+ await textInput.inputText('123')
+ await Utils.sleep(200);
+ await driver.triggerKey(2054) //回车
+ await Utils.sleep(200);
+
+ await textInput.inputText('456')
+ await Utils.sleep(200);
+ await driver.triggerKey(2054) //回车
+ await Utils.sleep(200);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(20000);
+ Logger.info('TEST', `TestCase_727cdf0190f44a9ead2f8657ec928f75 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_48c3748876de48e292f095b9701995e7
+ * @tc.name TestCase_48c3748876de48e292f095b9701995e7
+ * @tc.desc
+ */
+ it('TestCase_48c3748876de48e292f095b9701995e7', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_48c3748876de48e292f095b9701995e7 start.`);
+ Settings.createWindow("testability/pages/ComponentCheckBox/ComponentCheckBox48c3");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create()
+ await Utils.sleep(1000);
+ let CheckBox = await driver.findComponent(ON.id('CheckBox'))
+ await Utils.sleep(200);
+ await CheckBox.longClick()
+ await Utils.sleep(200);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `TestCase_48c3748876de48e292f095b9701995e7 finish.`);
+ done()
+ })
+
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/FunctionJichuWaterFlowTest/FunctionJichuWaterFlow.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/FunctionJichuWaterFlowTest/FunctionJichuWaterFlow.test.ets
index e2b67bdc172852aa4e57d4a08a69a6c80abed03b..71ee7f36a02185fdb74e0570d0e477076ccc0309 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/FunctionJichuWaterFlowTest/FunctionJichuWaterFlow.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/FunctionJichuWaterFlowTest/FunctionJichuWaterFlow.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
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..fa2757a536a1959e11a1ced45736236e4ea8e53c 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
@@ -98,8 +98,6 @@ import UIComponentSpecialComponentsFormComponentTransparent
import UIComponentSpecialComponentsUIExtensionComponentPopupChange
from './UIComponentSpecialComponentsUIExtensionComponentPopupChangeTest/UIComponentSpecialComponentsUIExtensionComponentPopupChange.test';
-import UIComponentPopupBoxSpecificationsShadow
- from './UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test';
import UIComponentButtonRadioLConic from './UIComponentButtonRadioLConicTest/UIComponentButtonRadioLConic.test';
import ComponentFunctionLAdvancedComponentsPopupInterface
from './ComponentFunctionLAdvancedComponentsPopupInterfaceTest/ComponentFunctionLAdvancedComponentsPopupInterface.test';
@@ -118,7 +116,6 @@ import UIComponentButtonSelectControlSize
import UIComponentButtonSelectDivider from './UIComponentButtonSelectDivider/UIComponentButtonSelectDivider.test';
import UITestCaseTest from './UITestCaseTest/UITestCaseTest.test';
import FunctionJiChuSR000HUB4K from './FunctionJiChuSR000HUB4KTest/FunctionJiChuSR000HUB4K.test';
-import UIComponentUISupportColor from './UIComponentUISupportColorTest/UIComponentUISupportColor.test';
import UIComponentButtonCommonButton from './UIComponentButtonCommonButtonTest/UIComponentButtonCommonButton.test'
import ComponentButtonSelectMenuItemContentModifier
from './ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier.test';
@@ -150,6 +147,77 @@ import UIComponentPopupBoxToastStyleInterface001
import UIComponentPopupBoxFullDialogInterface001
from './UIComponentPopupBoxFullDialogInterfaceTest/UIComponentPopupBoxFullDialogInterface001.test';
+import UIComponentPopupBoxButtonStyle from './UIComponentPopupBoxButtonStyleTest/UIComponentPopupBoxButtonStyle.test';
+import UIComponentButtonUIsupportColor from './UIButton/UIComponentButtonUIsupportColor.test';
+import UIComponentButtonButtonUx from './UIButton/UIComponentButtonButtonUx.test';
+import UIComponentButtonAttrlbuyeUpdater from './UIButton/UIComponentButtonAttrlbuyeUpdater.test';
+import UIComponentPopupboxModaltransitionGearTest from './UIBindSheetTest/UIComponentPopupboxModaltransitionGear.test';
+import UIComponentPopupBoxModalTransitionNetedScrolling
+ from './UIBindSheetTest/UIComponentPopupBoxModalTransitionNetedScrolling.test';
+import ComponentCheckBoxTestCase from './ComponentCheckBoxTest/ComponentCheckBoxTestCase.test';
+import UIComponentPopupBoxSpecificationsShadow
+ from './UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test';
+import UIComponentButtonCommonButton from './UIComponentButtonCommonButtonTest/UIComponentButtonCommonButton.test';
+import UIComponentButtonButtonInterface from './UIButton/UIComponentButtonButtonInterface.test';
+import UIComponentButtonStyle from './UIButton/UIComponentButtonStyle.test';
+import ARKUIComponentFunctionSpecialComponentsDialogActionSheet
+ from './ARKUIComponentFunctionSpecialComponentsDialogActionSheetTest/ARKUIComponentFunctionSpecialComponentsDialogActionSheet.test';
+import UIComponentPopupboxActionSheetInterface
+ from './UIComponentPopupboxActionSheetInterfaceTest/UIComponentPopupboxActionSheetInterface.test';
+import UIComponentPopupBoxActionSheetScenarios
+ from './UIComponentPopupBoxActionSheetScenariosTest/UIComponentPopupBoxActionSheetScenarios.test';
+import UIComponentPopupboxAlertDialogInterface from './UIComponentPopupboxAlertDialogInterfaceTest/UIComponentPopupboxAlertDialogInterface.test';
+import UIComponentPopupboxAlertDialogScenarios from './UIComponentPopupboxAlertDialogScenariosTest/UIComponentPopupboxAlertDialogScenarios.test';
+import UIComponentPopupboxEnter from './UIComponentPopupboxEnterTest/UIComponentPopupboxEnter.test';
+import UIComponentPopupboxStyleStrong from './UIComponentPopupboxStyleStrongTest/UIComponentPopupboxStyleStrong.test';
+
+
+import UIAttributesModaltransitionAnimatorTest from './UIAttributesModaltransitionAnimatorTest/UIAttributesModaltransitionAnimator.test';
+import UIAttributesModaltransitionVisionTest from './UIAttributesModaltransitionVisionTest/UIAttributesModaltransitionVision.test';
+import UIComponentFunctionSpecialComponentsDialogSelectInterface
+ from './UIComponentFunctionSpecialComponentsDialogSelectInterfaceTest/UIComponentFunctionSpecialComponentsDialogSelectInterface.test';
+import UIComponentPopupBoxCustomDialogScenarios
+ from './UIComponentPopupBoxCustomDialogScenariosTest/UIComponentPopupBoxCustomDialogScenarios.test';
+
+import UIAttributesModaltransitionInterationTest from './UIAttributesModaltransitionInterationTest/UIAttributesModaltransitionInteration.test';
+import UIAttributesModaltransitionAvoidTest from './UIAttributesModaltransitionAvoidTest/UIAttributesModaltransitionAvoid.test';
+import UIComponentPopupboxModaltransitionImperativeTest from './UIComponentPopupboxModaltransitionImperativeTest/UIComponentPopupboxModaltransitionImperative.test';
+import UIComponentPopupboxModaltransitionSwipetorefreshTest from './UIComponentPopupboxModaltransitionSwipetorefreshTest/UIComponentPopupboxModaltransitionSwipetorefresh.test';
+import UIComponentPopupboxModaltransitionSubwindowTest from './UIComponentPopupboxModaltransitionSubwindowTest/UIComponentPopupboxModaltransitionSubwindow.test';
+import UIComponentPopupboxModaltransitionBindcontentcoveretTest from './UIComponentPopupboxModaltransitionBindcontentcoveretTest/UIComponentPopupboxModaltransitionBindcontentcoveret.test';
+import UIAttributesModaltransitionSafeareaTest from './UIAttributesModaltransitionSafeareaTest/UIAttributesModaltransitionSafearea.test';
+import UIComponentPopupBoxModalTransitionAnimation
+ from './UIComponentPopupBoxModalTransitionAnimationTest/UIComponentPopupBoxModalTransitionAnimation.test';
+import TestCase from './TestCaseTest/TestCase.test';
+import UIComponentButtonCalendarPickerDialogInterface
+ from './UIComponentButtonCalendarPickerDialogInterfaceTest/UIComponentButtonCalendarPickerDialogInterface.test';
+import UIComponentButtonButtonAttributeUpdater
+ from './UIComponentButtonButtonAttributeUpdaterTest/UIComponentButtonButtonAttributeUpdater.test';
+import UIComponentPopupBoxModalTransitionModeTest
+ from './UIComponentPopupBoxModalTransitionModeTest/UIComponentPopupBoxModalTransitionMode.test';
+import UIComponentUISupportColor from './UIComponentUISupportColorTest/UIComponentUISupportColor.test';
+import UIComponentButtonDatePickerInterface
+ from './UIComponentButtonDatePickerInterfaceTest/UIComponentButtonDatePickerInterface.test';
+
+import UIComponentPopupBoxCustomDialogInterface
+ from './UIComponentPopupBoxCustomDialogInterfaceTest/UIComponentPopupBoxCustomDialogInterface.test';
+
+import UIComponentPopupBoxModalTransitionStrong
+ from './UIComponentPopupBoxModalTransitionStrongTest/UIComponentPopupBoxModalTransitionStrong.test';
+import UIComponentPopupboxModalTransitionOverrunsUIExtension
+ from './UIComponentPopupboxModalTransitionOverrunsUIExtensionTest/UIComponentPopupboxModalTransitionOverrunsUIExtension.test';
+
+import ArkuiComponentfunctionSpecialcomponentsDialogMirror
+ from './ArkuiComponentfunctionSpecialcomponentsDialogMirrorTest/ArkuiComponentfunctionSpecialcomponentsDialogMirror.test';
+import UIComponentPopupBoxPickerOld from './UIComponentPopupBoxPickerOldTest/UIComponentPopupBoxPickerOld.test';
+import UIComponentPopupboxSpecificationsAlignment
+ from './UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment.test';
+
+import UIComponentFunctionSpecialCDCMOptimization
+ from './UIComponentFunctionSpecialCDCMOptimizationTest/UIComponentFunctionSpecialCDCMOptimization.test'
+import UIComponentPopupboxMenuMenutest
+ from './UIComponentPopupboxMenuMenutestTest/UIComponentPopupboxMenuMenutest.test';
+
export default function testsuite() {
ComponentTextRicheditorFontfeatures();
ComponentTextRicheditorCustomColors();
@@ -239,6 +307,46 @@ export default function testsuite() {
UIComponentPopupBoxAttribute();
UIComponentPopupBoxPromptToastSequence();
UIComponentPopupBoxSpecificationsPopup();
+ UIComponentPopupBoxButtonStyle();
+ UIComponentPopupBoxModalTransitionNetedScrolling();
+ UIComponentButtonUIsupportColor();
+ UIComponentButtonButtonUx();
+ UIComponentPopupBoxPickerOld()
+ UIComponentButtonButtonInterface();
+ UIComponentButtonAttrlbuyeUpdater();
+ ComponentCheckBoxTestCase();
+ ARKUIComponentFunctionSpecialComponentsDialogActionSheet();
+ UIComponentPopupboxModaltransitionGearTest();
+ UIAttributesModaltransitionAnimatorTest();
+ UIAttributesModaltransitionVisionTest();
+ UIComponentPopupboxActionSheetInterface();
+ UIComponentPopupBoxActionSheetScenarios();
+ UIComponentPopupboxAlertDialogInterface();
+ UIComponentPopupboxAlertDialogScenarios();
+ UIComponentPopupboxEnter();
+ UIComponentPopupboxStyleStrong();
+ UIComponentFunctionSpecialComponentsDialogSelectInterface();
+ UIComponentPopupBoxCustomDialogScenarios();
+ UIAttributesModaltransitionInterationTest();
+ UIAttributesModaltransitionAvoidTest();
+ UIComponentPopupboxModaltransitionImperativeTest();
+ UIComponentPopupboxModaltransitionSwipetorefreshTest();
+ UIComponentPopupboxModaltransitionSubwindowTest();
+ UIComponentPopupboxModaltransitionBindcontentcoveretTest();
+ UIAttributesModaltransitionSafeareaTest();
+ UIComponentPopupBoxModalTransitionAnimation();
+ TestCase();
+ UIComponentButtonCalendarPickerDialogInterface();
+ UIComponentButtonButtonAttributeUpdater();
+ UIComponentPopupBoxModalTransitionModeTest()
+ UIComponentButtonDatePickerInterface();
+ UIComponentPopupBoxCustomDialogInterface();
+ UIComponentPopupBoxModalTransitionStrong();
+ UIComponentPopupboxModalTransitionOverrunsUIExtension();
+ ArkuiComponentfunctionSpecialcomponentsDialogMirror();
+ UIComponentPopupboxSpecificationsAlignment();
+ UIComponentFunctionSpecialCDCMOptimization();
+ UIComponentPopupboxMenuMenutest();
}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TestCaseTest/TestCase.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TestCaseTest/TestCase.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2429fcaf377d6547356b6d2cd8a1d6dedcb3abdb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TestCaseTest/TestCase.test.ets
@@ -0,0 +1,583 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 TestCase() {
+
+ describe('TestCase', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_a7a46f6c36d04ca69e363d0e3ad4a814
+ * @tc.name TestCase_a7a46f6c36d04ca69e363d0e3ad4a814
+ * @tc.desc checkBoxGroup的shape设为null,设置checkbox.ROUNDED_SQUARE
+ */
+ it('TestCase_a7a46f6c36d04ca69e363d0e3ad4a814', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_a7a46f6c36d04ca69e363d0e3ad4a814");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_ef6edfdf28604560b0df0cOfe0268afe
+ * @tc.name TestCase_ef6edfdf28604560b0df0cOfe0268afe
+ * @tc.desc checkBoxGroup的shape设为-1checkBox的shape设置为异常值null
+ */
+ it('TestCase_ef6edfdf28604560b0df0cOfe0268afe', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_ef6edfdf28604560b0df0cOfe0268afe");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_3ba3f7bcf07743d297d1449a47e6b892
+ * @tc.name TestCase_3ba3f7bcf07743d297d1449a47e6b892
+ * @tc.desc builder里放置父节点Row下面有三个子节点Text/Circle/Button,验证自定义内容可以正常显示,name/select值可以正常传输
+ */
+ it('TestCase_3ba3f7bcf07743d297d1449a47e6b892', 0, async (done: Function) => {
+ Logger.info('TEST', `TestCase_3ba3f7bcf07743d297d1449a47e6b892.`);
+ Settings.createWindow("testability/pages/TestCase/TestCase3ba3f7bcf07743d297d1449a47e6b892");
+ const driver: Driver = Driver.create();
+ await Utils.sleep(1000);
+ const button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+
+ /*
+ * @tc.number TestCase_da93e485c7064bb9b26191cba14ebbac
+ * @tc.name TestCase_da93e485c7064bb9b26191cba14ebbac
+ * @tc.desc builder里放置一个list组件,验证自定义内容是否可以正常显示,滑动事件是否可以正常响应
+ */
+ it('TestCase_da93e485c7064bb9b26191cba14ebbac', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCaseda93e485c7064bb9b26191cba14ebbac");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ const list:Component = await driver.findComponent(ON.id("list"));
+ await list.scrollToTop(200);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_437e662b74954d0582cb2c02613b88e2
+ * @tc.name TestCase_437e662b74954d0582cb2c02613b88e2
+ * @tc.desc builder里设置image组件,验证自定义内容超出checkBox范围是否可以正常显示
+ */
+ it('TestCase_437e662b74954d0582cb2c02613b88e2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase437e662b74954d0582cb2c02613b88e2");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_82af3a72ba494e429a70511af99dff22
+ * @tc.name TestCase_82af3a72ba494e429a70511af99dff22
+ * @tc.desc checkBox的shape设为CIRCLE,用modifier接口调用indicatorBuilder,验证builder内容是否生效
+ */
+ it('TestCase_82af3a72ba494e429a70511af99dff22', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase82af3a72ba494e429a70511af99dff22");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const button: Component = await driver.findComponent(ON.id('toggle'));
+ await button.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_170062fle4ff4bba977b759bbfe05075
+ * @tc.name TestCase_170062fle4ff4bba977b759bbfe05075
+ * @tc.desc checkBox的shape设为ROUNDED_SQUARE,用modifier接口调用indicatorBuilder,验证builder内容是否生效
+ */
+ it('TestCase_170062fle4ff4bba977b759bbfe05075', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase170062fle4ff4bba977b759bbfe05075");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const button: Component = await driver.findComponent(ON.id('toggle'));
+ await button.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_1840a7694374415cb0f05c7d3308fe99
+ * @tc.name TestCase_1840a7694374415cb0f05c7d3308fe99
+ * @tc.desc checkBox的shape设为ROUNDED_SQUARE,build里放置button,验证选中时显示内容和builder和checkBox是否同时响应点击事件
+ */
+ it('TestCase_1840a7694374415cb0f05c7d3308fe99', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase1840a7694374415cb0f05c7d3308fe99");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ const checkbox:Component = await driver.findComponent(ON.id("checkbox"));
+ await checkbox.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_57c524107d12419fa08e7c1851602f34
+ * @tc.name TestCase_57c524107d12419fa08e7c1851602f34
+ * @tc.desc checkBox的shape设为CIRCLE,build里放置button,验证选中时显示内容和builder和checkBox是否同时响应点击事件
+ */
+ it('TestCase_57c524107d12419fa08e7c1851602f34', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase57c524107d12419fa08e7c1851602f34");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ const checkbox:Component = await driver.findComponent(ON.id("checkbox"));
+ await checkbox.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_41a06d55fa7d42d58d4ad51b77355ec8
+ * @tc.name TestCase_41a06d55fa7d42d58d4ad51b77355ec8
+ * @tc.desc checkBox的shape设为CIRCLE,builder里放超长文本,查看选中时展示样式
+ */
+ it('TestCase_41a06d55fa7d42d58d4ad51b77355ec8', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase41a06d55fa7d42d58d4ad51b77355ec8");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_9a217f5e9b394930949b5lad3b25f989
+ * @tc.name TestCase_9a217f5e9b394930949b5lad3b25f989
+ * @tc.desc checkBox的shape设为CIRCLE,disable状态时查看显示
+ */
+ it('TestCase_9a217f5e9b394930949b5lad3b25f989', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase9a217f5e9b394930949b5lad3b25f989");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_83f0228d9c2d45e8blafca3c36bd855f
+ * @tc.name TestCase_83f0228d9c2d45e8blafca3c36bd855f
+ * @tc.desc checkBox的shape设为ROUNDED_SQUARE,同时配置mark和IndicatorBuilder,选中时展示IndicatorBuilder
+ */
+ it('TestCase_83f0228d9c2d45e8blafca3c36bd855f', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase83f0228d9c2d45e8blafca3c36bd855f");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_809555579f804d80b3c81fd4af4c2cc1
+ * @tc.name TestCase_809555579f804d80b3c81fd4af4c2cc1
+ * @tc.desc checkBox的shape设为ROUNDED_SQUARE,press时查看显示
+ */
+ it('TestCase_809555579f804d80b3c81fd4af4c2cc1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_809555579f804d80b3c81fd4af4c2cc1");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let clickCheckBox: Component = await driver.findComponent(ON.id('ComponentCheckBox'));
+ await clickCheckBox.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_660ea820a6d442e0b4f1bf34b3ed050a
+ * @tc.name TestCase_660ea820a6d442e0b4f1bf34b3ed050a
+ * @tc.desc checkBox的shape设为ROUNDED_SQUARE,contentModifier和mark和IndicatorBuilder的优先级
+ */
+ it('TestCase_660ea820a6d442e0b4f1bf34b3ed050a', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_660ea820a6d442e0b4f1bf34b3ed050a");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_660ea820a6d442e0b4f1bf34b3ed050a_01
+ * @tc.name TestCase_660ea820a6d442e0b4f1bf34b3ed050a_01
+ * @tc.desc checkBox的shape设为ROUNDED_SQUARE,contentModifier和mark和IndicatorBuilder的优先级
+ */
+ it('TestCase_660ea820a6d442e0b4f1bf34b3ed050a_01', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_660ea820a6d442e0b4f1bf34b3ed050a");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_660ea820a6d442e0b4f1bf34b3ed050a_02
+ * @tc.name TestCase_660ea820a6d442e0b4f1bf34b3ed050a_02
+ * @tc.desc checkBox的shape设为ROUNDED_SQUARE,contentModifier和mark和IndicatorBuilder的优先级
+ */
+ it('TestCase_660ea820a6d442e0b4f1bf34b3ed050a_02', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_660ea820a6d442e0b4f1bf34b3ed050a");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let clickCheckBox: Component = await driver.findComponent(ON.id('ComponentCheckBox'));
+ await clickCheckBox.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_d1504e3c331d4103a2f7bac81dd51cb0
+ * @tc.name TestCase_d1504e3c331d4103a2f7bac81dd51cb0
+ * @tc.desc checkBox的shape设为CIRCLE空的builer
+ */
+ it('TestCase_d1504e3c331d4103a2f7bac81dd51cb0', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_d1504e3c331d4103a2f7bac81dd51cb0");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ let driver: Driver = Driver.create();
+ let clickCheckBox: Component = await driver.findComponent(ON.id('ComponentCheckBox'));
+ await clickCheckBox.click();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_84e308abbc574a48ad766c2658b9b72e
+ * @tc.name TestCase_84e308abbc574a48ad766c2658b9b72e
+ * @tc.desc checkBox的shape设为CIRCLE,同时配置mark和IndicatorBuilder,选中时展示IndicatorBuilder
+ */
+ it('TestCase_84e308abbc574a48ad766c2658b9b72e', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_84e308abbc574a48ad766c2658b9b72e");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ let driver: Driver = Driver.create();
+ let clickCheckBox: Component = await driver.findComponent(ON.id('ComponentCheckBox'));
+ await clickCheckBox.click();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_835936712395457396325004ae97faa0
+ * @tc.name TestCase_835936712395457396325004ae97faa0
+ * @tc.desc CheckBoxGroup的shape设为ROUNDED_SQUARE,不设置checkbox的shape属性
+ */
+ it('TestCase_835936712395457396325004ae97faa0', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_835936712395457396325004ae97faa0");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_e74b5ac434004a2a918349957882d156
+ * @tc.name TestCase_e74b5ac434004a2a918349957882d156
+ * @tc.desc checkBoxGroup的shape设为-1,设置checkbox.ROUNDED_SQUARE
+ */
+ it('TestCase_e74b5ac434004a2a918349957882d156', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_e74b5ac434004a2a918349957882d156");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_49027a7e017946f58c41915ef0691063
+ * @tc.name TestCase_49027a7e017946f58c41915ef0691063
+ * @tc.desc checkBoxGroup的shape设为-1,checkBox的shape设置为异常值undefined
+ */
+ it('TestCase_49027a7e017946f58c41915ef0691063', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_49027a7e017946f58c41915ef0691063");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_bdae66ca448e40488ad61a84cef4ec4c
+ * @tc.name TestCase_bdae66ca448e40488ad61a84cef4ec4c
+ * @tc.desc CheckBoxGroup的shape设为CIRCLE,不设置checkbox的shape属性
+ */
+ it('TestCase_bdae66ca448e40488ad61a84cef4ec4c', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_bdae66ca448e40488ad61a84cef4ec4c");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_8599ec6cc1454709b2df47ab856b2f38
+ * @tc.name TestCase_8599ec6cc1454709b2df47ab856b2f38
+ * @tc.desc checkBoxGroup的shape设为-1,checkBox的shape设置为异常值-1
+ */
+ it('TestCase_8599ec6cc1454709b2df47ab856b2f38', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_8599ec6cc1454709b2df47ab856b2f38");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_734d00a38d914feeb023e5796c835ecb
+ * @tc.name TestCase_734d00a38d914feeb023e5796c835ecb
+ * @tc.desc checkBoxGroup的shape设为-1,设置checkbox.CIRCLE
+ */
+ it('TestCase_734d00a38d914feeb023e5796c835ecb', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_734d00a38d914feeb023e5796c835ecb");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_00bbaaf924fa44288f03cca0278ae6b5
+ * @tc.name TestCase_00bbaaf924fa44288f03cca0278ae6b5
+ * @tc.desc checkBoxGroup的shape设为null,设置checkbox.CIRCLE
+ */
+ it('TestCase_00bbaaf924fa44288f03cca0278ae6b5', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_00bbaaf924fa44288f03cca0278ae6b5");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_4061b97a1405485797f304c07f65c5f0
+ * @tc.name TestCase_4061b97a1405485797f304c07f65c5f0
+ * @tc.desc checkBoxGroup的shape设为undefined,checkBox的shape设置为异常值-1
+ */
+ it('TestCase_4061b97a1405485797f304c07f65c5f0', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_4061b97a1405485797f304c07f65c5f0");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_alc2548a55de474787a6e72ef290b017
+ * @tc.name TestCase_alc2548a55de474787a6e72ef290b017
+ * @tc.desc checkBoxGroup的shape设为undefined,checkBox的shape设置为异常值undefined
+ */
+ it('TestCase_alc2548a55de474787a6e72ef290b017', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_alc2548a55de474787a6e72ef290b017");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+
+ /*
+ * @tc.number TestCase_b0f21fa9d21e4e9eaf43d9da8c48b5d4
+ * @tc.name TestCase_b0f21fa9d21e4e9eaf43d9da8c48b5d4
+ * @tc.desc contentModifier里不配置triggerChange,checkBox改变初始selected的值
+ */
+ it('TestCase_b0f21fa9d21e4e9eaf43d9da8c48b5d4', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_b0f21fa9d21e4e9eaf43d9da8c48b5d4");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('btn1'));
+ const bt2 = await driver.findComponent(ON.id('btn2'));
+ const bt3= await driver.findComponent(ON.id('btn3'));
+ const bt4 = await driver.findComponent(ON.id('btn4'));
+ await Utils.sleep(1000);
+ await bt1.click();
+ await Utils.sleep(1000);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await bt4.click();
+ await Utils.sleep(1000);
+ await bt3.click();
+ await Utils.sleep(1000);
+ await bt4.click();
+ await Utils.sleep(1000);
+ await bt4.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_611f36b768b447f6b843e058dfb044a9
+ * @tc.name TestCase_611f36b768b447f6b843e058dfb044a9
+ * @tc.desc contentModifier是否影响checkBoxGroup
+*/
+ it('TestCase_611f36b768b447f6b843e058dfb044a9', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_611f36b768b447f6b843e058dfb044a9");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('builder1'));
+ const bt2 = await driver.findComponent(ON.id('groupbtn'));
+ const textinput= await driver.findComponent(ON.id('open'));
+ await Utils.sleep(1000);
+ await bt1.click();
+ await Utils.sleep(1000);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await textinput.inputText('checkBoxGroup')
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_f6ebb74473054e0294f3c2b26c3d96c4
+ * @tc.name TestCase_f6ebb74473054e0294f3c2b26c3d96c4
+ * @tc.desc contentModifier里不配置triggerChange,checkBox动态改变selected的值
+ */
+ it('TestCase_f6ebb74473054e0294f3c2b26c3d96c4', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_f6ebb74473054e0294f3c2b26c3d96c4");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('btn1'));
+ const bt2 = await driver.findComponent(ON.id('btn2'));
+ const bt3= await driver.findComponent(ON.id('checkbtn'));
+ const bt4 = await driver.findComponent(ON.id('btn4'));
+ await Utils.sleep(1000);
+ await bt1.click();
+ await Utils.sleep(1000);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await bt3.click();
+ await Utils.sleep(1000);
+ await bt4.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase_f3dfe9fd524a4c61b4fb506ea5b0e8f1
+ * @tc.name TestCase_f3dfe9fd524a4c61b4fb506ea5b0e8f1
+ * @tc.desc contentModifier里不配置triggerChange,checkBox动态改变selected的值
+*/
+ it('TestCase_f3dfe9fd524a4c61b4fb506ea5b0e8f1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/TestCase/TestCase_f3dfe9fd524a4c61b4fb506ea5b0e8f1");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button'));
+ const bt2 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(1000);
+ await bt1.click();
+ await Utils.sleep(1000);
+ await bt2.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/UIAttributesModaltransitionAnimatorTest/UIAttributesModaltransitionAnimator.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionAnimatorTest/UIAttributesModaltransitionAnimator.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9f149ae5a51fd08dcdf62241fd02cf6aed5eda38
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionAnimatorTest/UIAttributesModaltransitionAnimator.test.ets
@@ -0,0 +1,211 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 { display } from '@kit.ArkUI';
+
+export default function UIAttributesModaltransitionAnimatorTest () {
+ describe('UIAttributesModaltransitionAnimatorTest', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0030
+ * @tc.desc 验证底部弹窗出现是否从底部向上出现,退出是否从当前位置向下退出
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0030 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0030");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(2000);
+ await driver.click(200, 200);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0030 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0040
+ * @tc.desc 验证当前底部弹窗档位向上无其他档位,向上拖拽是否有阻尼感
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0040 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0040");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ const swiperDistance = Math.floor(dis.height - 900);
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, swiperDistance);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITIONL_ANIMATOR_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITIONL_ANIMATOR_0020
+ * @tc.desc 验证居中弹窗出现是否从底部向上出现,退出是否从当前位置向下退出
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0020 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0020");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(2000);
+ await driver.click(200, 200);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0020 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0060
+ * @tc.desc 验证触发半模态面板入场和退场,蒙版的透明度是否会有明显变化
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0060 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0060");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(2000);
+ await driver.click(200, 200);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0050
+ * @tc.desc 验证当前底部弹窗档位向上还有其他档位,向上拖拽是否无阻尼感
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0050 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0050");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ const swiperDistance = Math.floor(dis.height - 400);
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, swiperDistance);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0050 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0070
+ * @tc.desc 验证跟手弹窗出现是否从触发位置弹入,退出是否从触发位置弹出
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0070 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0070");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(2000);
+ await driver.click(200, 200);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0070 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0010
+ * @tc.desc 验证多次点击按钮触发半模态入场和退场,蒙版的透明度变化是否卡顿
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0010 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0010");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ await bt1.click();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ await bt1.click();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_ANIMATOR_0010 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionAvoidTest/UIAttributesModaltransitionAvoid.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionAvoidTest/UIAttributesModaltransitionAvoid.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..530230150098e0ef03e5ea15a9bda2ba3f58ecbc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionAvoidTest/UIAttributesModaltransitionAvoid.test.ets
@@ -0,0 +1,139 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { 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 { display } from '@kit.ArkUI';
+
+export default function UIAttributesModaltransitionAvoidTest() {
+ describe('UIAttributesModaltransitionAvoidTest', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0030
+ * @tc.desc 验证全模态默认避让底部导航条
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0030 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0030");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 200, dis.width / 2, dis.height - 600);
+ await Utils.sleep(1000);
+ await driver.swipe(dis.width / 2, dis.height - 200, dis.width / 2, dis.height - 800, 3000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0030 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0010
+ * @tc.desc builder高度大于sheet高度
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0010 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0010");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 200, dis.width / 2, dis.height - 600, 2000);
+ await Utils.sleep(1000);
+ await driver.swipe(dis.width / 2, dis.height - 200, dis.width / 2, dis.height - 800, 4000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0010 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0020
+ * @tc.desc builder高度超小于sheet高度
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0020 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0020");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0020 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0040
+ * @tc.desc 验证在自定义builder的根节点配置expandSafeArea(SafeAreaType.SYSTEM][SafeAreaEdge.BOTTOM])允许全模态页面布局到导航条之下
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0040 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0040");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 200, dis.width / 2, dis.height - 600);
+ await Utils.sleep(1000);
+ await driver.swipe(dis.width / 2, dis.height - 200, dis.width / 2, dis.height - 800, 3000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_AVOID_0040 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionInterationTest/UIAttributesModaltransitionInteration.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionInterationTest/UIAttributesModaltransitionInteration.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..218a9b90addf257bf1117ed634b9a8450273c69f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionInterationTest/UIAttributesModaltransitionInteration.test.ets
@@ -0,0 +1,415 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 { display } from '@kit.ArkUI';
+
+export default function UIAttributesModaltransitionInterationTest() {
+ describe('UIAttributesModaltransitionInterationTest', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0110
+ * @tc.desc 验证跟手弹窗未设置蒙层,点击半模态面板范围外的位置是否可以关闭面板
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0110 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0110");
+ await Utils.sleep(200);
+ 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(1500);
+ await bt2.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0110 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0050
+ * @tc.desc 验证居中弹窗设置蒙层后,点击蒙层面板是否关闭
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0050 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0050");
+ await Utils.sleep(200);
+ 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(1500);
+ await bt2.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0050 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0100
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0100
+ * @tc.desc 验证跟手弹窗在只设置height且文本内容高度超过半模态面板高度的情况下,超出显示范围内容是否可以向上滚动
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0100 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0100");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ const list = await driver.findComponent(ON.id('sheet_text'));
+ await Utils.sleep(200);
+ const point = await list.getBoundsCenter();
+ await driver.swipe(point.x, point.y + 100, point.x, point.y - 100);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0100 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0030
+ * @tc.desc 验证在只设置height且文本内容高度超过半模态面板高度的情况下,超出显示范围内容是否可以向上滚动
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0030 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0030");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ const list = await driver.findComponent(ON.id('sheet_text'));
+ await Utils.sleep(200);
+ const point = await list.getBoundsCenter();
+ await driver.swipe(point.x, point.y + 100, point.x, point.y - 100);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0030 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0070
+ * @tc.desc 验证底部弹窗未设置蒙层,点击半模态面板范围外的位置是否可以关闭面板
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0070 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0070");
+ await Utils.sleep(200);
+ 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(1500);
+ await bt2.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0070 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0040
+ * @tc.desc 验证居中弹窗在只设置height且文本内容高度超过半模态面板高度的情况下,超出显示范围内容是否可以向上滚动
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0040 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0040");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ const list = await driver.findComponent(ON.id('sheet_text'));
+ await Utils.sleep(200);
+ const point = await list.getBoundsCenter();
+ await driver.swipe(point.x, point.y + 100, point.x, point.y - 100);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0120
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0120
+ * @tc.desc 验证跟手弹窗设置蒙层后,点击蒙层面板是否关闭
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0120 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0120");
+ await Utils.sleep(200);
+ 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(1500);
+ await bt2.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0120 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0080
+ * @tc.desc 验证底部弹窗设置蒙层后,点击蒙层面板是否关闭
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0080 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0080");
+ await Utils.sleep(200);
+ 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(1500);
+ await bt2.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0080 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0010
+ * @tc.desc 验证只设置detents且元素是SheetSize类型的底部弹窗内容区滑动优先级以及内容区显示情况是否符合UX规格【内容区如果有内容超出显示范围,则内容区向上滚动,显示更多内容,如果内容处于顶部,下滑关闭面板/切换档位。如果内容不处于顶部,则界面先往下滚动,直至内容到达顶 部 】
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0010 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0010");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ const swiperDistance = Math.floor(dis.height - 900);
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, swiperDistance);
+ await Utils.sleep(1000);
+ await driver.swipe(dis.width / 2, dis.height - 800, dis.width / 2, dis.height - 400);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0010 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020
+ * @tc.desc 验证只设置detents的底部弹窗内容区滑动优先级以及内容区显示情况是否符合UX规格【内容区如果有内容超出显示范围,则内容区向上滚动,显示更多内容,如果内容处于顶部,下滑关闭面板/切换档位。如果内容不处于顶部,则界面先往下滚动,直至内容到达顶部】
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0020");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const title = await driver.findComponent(ON.id('sheet_title'));
+ await Utils.sleep(200);
+ const point = await title.getBoundsCenter();
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 800, 1300);
+ await Utils.sleep(1000);
+ await driver.swipe(point.x, point.y, point.x, point.y + 400);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot('1');
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020
+ * @tc.desc 验证只设置detents的底部弹窗内容区滑动优先级以及内容区显示情况是否符合UX规格【内容区如果有内容超出显示范围,则内容区向上滚动,显示更多内容,如果内容处于顶部,下滑关闭面板/切换档位。如果内容不处于顶部,则界面先往下滚动,直至内容到达顶部】
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0020");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const title = await driver.findComponent(ON.id('sheet_title'));
+ await Utils.sleep(200);
+ const point = await title.getBoundsCenter();
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 800, 1300);
+ await Utils.sleep(1000);
+ await driver.swipe(point.x, point.y, point.x, point.y + 400);
+ await Utils.sleep(1000);
+ const point2 = await title.getBoundsCenter();
+ await driver.swipe(point.x, point2.y, point.x, point2.y - 200);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot('2');
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020
+ * @tc.desc 验证只设置detents的底部弹窗内容区滑动优先级以及内容区显示情况是否符合UX规格【内容区如果有内容超出显示范围,则内容区向上滚动,显示更多内容,如果内容处于顶部,下滑关闭面板/切换档位。如果内容不处于顶部,则界面先往下滚动,直至内容到达顶部】
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0020");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const title = await driver.findComponent(ON.id('sheet_title'));
+ await Utils.sleep(200);
+ const point = await title.getBoundsCenter();
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 800, 1300);
+ await Utils.sleep(1000);
+ await driver.swipe(point.x, point.y, point.x, point.y + 400);
+ await Utils.sleep(1000);
+ const point2 = await title.getBoundsCenter();
+ await driver.swipe(point.x, point2.y, point.x, point2.y - 200);
+ await Utils.sleep(1000);
+ await driver.swipe(point.x, dis.height - 400, point.x, dis.height - 200);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot('3');
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020_3 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020
+ * @tc.desc 验证只设置detents的底部弹窗内容区滑动优先级以及内容区显示情况是否符合UX规格【内容区如果有内容超出显示范围,则内容区向上滚动,显示更多内容,如果内容处于顶部,下滑关闭面板/切换档位。如果内容不处于顶部,则界面先往下滚动,直至内容到达顶部】
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020_4', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020_4 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0020");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const title = await driver.findComponent(ON.id('sheet_title'));
+ await Utils.sleep(200);
+ const point = await title.getBoundsCenter();
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 800, 1300);
+ await Utils.sleep(1000);
+ await driver.swipe(point.x, point.y, point.x, point.y + 400);
+ await Utils.sleep(1000);
+ const point2 = await title.getBoundsCenter();
+ await driver.swipe(point.x, point2.y, point.x, point2.y - 200);
+ await Utils.sleep(1000);
+ await driver.swipe(point.x, dis.height - 500, point.x, dis.height - 100, 4000);
+ await Utils.sleep(1000);
+ await driver.swipe(point.x, dis.height - 500, point.x, dis.height - 100);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot('4');
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0020_4 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0060
+ * @tc.desc 验证居中部弹窗未设置蒙层,点击半模态面板范围外的位置是否可以关闭面板
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0060 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0060");
+ await Utils.sleep(200);
+ 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(1500);
+ await bt2.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_INTERATION_0060 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionSafeareaTest/UIAttributesModaltransitionSafearea.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionSafeareaTest/UIAttributesModaltransitionSafearea.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bfc49d8cfb7eafa8046231e5d348c3d5ff9ac7aa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionSafeareaTest/UIAttributesModaltransitionSafearea.test.ets
@@ -0,0 +1,264 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 '@kit.InputKit';
+
+export default function UIAttributesModaltransitionSafeareaTest () {
+ describe('UIAttributesModaltransitionSafeareaTest', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0010
+ * @tc.desc Ht>=H1,输入控件距离屏幕底部距离足矣,输入法直接弹出即可面板无需做任何变化
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0010 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0010");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const input = await driver.findComponent(ON.id('input1'));
+ await Utils.sleep(200);
+ const point = await input.getBoundsCenter();
+ await driver.click(point.x, point.y);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0010 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0020
+ * @tc.desc Ht {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0020 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0020");
+ await Utils.sleep(1000);
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const input = await driver.findComponent(ON.id('input1'));
+ await Utils.sleep(200);
+ const point = await input.getBoundsCenter();
+ await driver.click(point.x, point.y);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0020 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0080
+ * @tc.desc 选中下侧被遮挡的文本组件后再选中上侧被遮挡的文本组件
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0080 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0080");
+ await Utils.sleep(1000);
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const input1 = await driver.findComponent(ON.id('input1'));
+ const input2 = await driver.findComponent(ON.id('input2'));
+ await Utils.sleep(300);
+ await input2.click();
+ await Utils.sleep(1000);
+ await input1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0080 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0100
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0100
+ * @tc.desc 下方的组件中拖拽文本至上方的组件中(拉起软键盘时均被遮挡 )
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0100 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0100");
+ await Utils.sleep(1000);
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const input1 = await driver.findComponent(ON.id('input1'));
+ const input2 = await driver.findComponent(ON.id('input2'));
+ const point1 = await input1.getBoundsCenter();
+ const point2 = await input2.getBoundsCenter();
+ await Utils.sleep(300);
+ await input2.click();
+ await Utils.sleep(500);
+ await driver.triggerKey(KeyCode.KEYCODE_A);
+ await driver.triggerKey(KeyCode.KEYCODE_B);
+ await driver.triggerKey(KeyCode.KEYCODE_C);
+ await Utils.sleep(1000);
+ await driver.drag(point2.x, point2.y, point1.x, point1.y)
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0100 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0090
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0090
+ * @tc.desc 选中上侧被遮挡的文本组件后通过滚动页面再选中下侧被遮挡的文本组件
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0090 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0090");
+ await Utils.sleep(1000);
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const input1 = await driver.findComponent(ON.id('input1'));
+ const input2 = await driver.findComponent(ON.id('input2'));
+ await Utils.sleep(300);
+ await input1.click();
+ await Utils.sleep(1000);
+ await input2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0090 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0110
+ * @tc.desc 2个组件一个被遮挡一个不被遮挡
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0110 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0110");
+ await Utils.sleep(1000);
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const input1 = await driver.findComponent(ON.id('input1'));
+ await Utils.sleep(300);
+ await input1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0110 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0030
+ * @tc.desc 若h>H,则先上拾到面板最大高度H,然后剩余H-h高度则通过滚动容器调节
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0030 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0030");
+ await Utils.sleep(1000);
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const input1 = await driver.findComponent(ON.id('input1'));
+ await Utils.sleep(300);
+ await input1.click();
+ await Utils.sleep(1000);
+ await driver.swipe(300, 600, 300, 200, 3000);
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2500);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0030 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0120
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0120
+ * @tc.desc 若h>H,则先上拾到面板最大高度H,然后剩余H-h高度则通过滚动容器调节
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0120 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0120");
+ await Utils.sleep(1000);
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const input1 = await driver.findComponent(ON.id('input1'));
+ await Utils.sleep(300);
+ await input1.click();
+ await Utils.sleep(1000);
+ await driver.swipe(300, 600, 300, 200)
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_SAFEAREA_0120 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionVisionTest/UIAttributesModaltransitionVision.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionVisionTest/UIAttributesModaltransitionVision.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a9b91d55765da40f27d27feb08292e42ef58da7f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesModaltransitionVisionTest/UIAttributesModaltransitionVision.test.ets
@@ -0,0 +1,1096 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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, PointerMatrix } from '@ohos.UiTest';
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant';
+import { display } from '@kit.ArkUI';
+
+export default function UIAttributesModaltransitionVisionTest () {
+ describe('UIAttributesModaltransitionVisionTest', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0150
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0150
+ * @tc.desc height设置为50vp,验证在平板上半模态页面的样式和高度如何显 示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0150_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0150_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_1");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0150_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0150
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0150
+ * @tc.desc height设置为50vp,验证在平板上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0150_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0150_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_2");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0150_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0050
+ * @tc.desc detents元组中元素递减,速度未达到阈值,验证滑动位置对半模态切换档位的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0050 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0050");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 800, 600);
+ await Utils.sleep(1000);
+ await driver.swipe(dis.width / 2, dis.height - 300, dis.width / 2, dis.height - 100, 600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0050 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0030
+ * @tc.desc detents元组中元素乱序,速度未达到阈值,验证滑动位置对半模态切换档位的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0030 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0030");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 1000, 600);
+ await Utils.sleep(500);
+ await driver.swipe(dis.width / 2, dis.height - 600, dis.width / 2, dis.height - 400, 600);
+ await Utils.sleep(500);
+ await driver.swipe(dis.width / 2, dis.height - 200, dis.width / 2, dis.height - 260, 600);
+ await Utils.sleep(500);
+ await driver.swipe(dis.width / 2, dis.height - 300, dis.width / 2, dis.height - 160, 600);
+ await Utils.sleep(500);
+ await driver.swipe(dis.width / 2, dis.height - 400, dis.width / 2, dis.height - 100, 600);
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0030 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0100
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0100
+ * @tc.desc detents设置为detents [50%,SheetSize FIT_CONTENT,SheetSize LARGE],height设置为10vp,验证在平板上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0100 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0100");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0100 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070
+ * @tc.desc detents元组中元素递增,速度未达到阈值,验证滑动位置对半模态切换档位的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_1");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 1000, 600);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot("1");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070
+ * @tc.desc detents元组中元素递增,速度未达到阈值,验证滑动位置对半模态切换档位的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_2");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 200, 600);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot("2");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070
+ * @tc.desc detents元组中元素递增,速度未达到阈值,验证滑动位置对半模态切换档位的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_3");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 800, 1000);
+ await Utils.sleep(1500);
+ await driver.swipe(dis.width / 2, dis.height - 400, dis.width / 2, dis.height - 100, 500);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot("3");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070_3 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070
+ * @tc.desc detents元组中元素递增,速度未达到阈值,验证滑动位置对半模态切换档位的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070_4', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070_4 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_4");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 800, 1000);
+ await Utils.sleep(1500);
+ await driver.swipe(dis.width / 2, dis.height - 400, dis.width / 2, dis.height - 200, 500);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot("4");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0070_4 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080
+ * @tc.desc detents元组中元素递增,速度达到阈值,验证滑动位置对半模态切换档位的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_1");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 1000, 1000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot("1");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080
+ * @tc.desc detents元组中元素递增,速度达到阈值,验证滑动位置对半模态切换档位的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_2");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 200, 1000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot("1");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080
+ * @tc.desc detents元组中元素递增,速度达到阈值,验证滑动位置对半模态切换档位的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_3");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 800, 1000);
+ await Utils.sleep(1500);
+ await driver.swipe(dis.width / 2, dis.height - 400, dis.width / 2, dis.height - 100, 1000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot("1");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0080_3 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0730
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0730
+ * @tc.desc 验证自定义标题超过标题区域半模态面板标题展示效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0730', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0730 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0730");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot("1");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0730 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0060
+ * @tc.desc detents元组中元素递减,速度达到阈值,验证滑动位置对半模态切换档位的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0060 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0060");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await Utils.sleep(1500);
+ await driver.swipe(dis.width / 2, dis.height - 400, dis.width / 2, dis.height - 100, 1000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot("1");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0040
+ * @tc.desc detents元组中元素乱序,速度达到阈值,验证滑动位置对半模态切换档位的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0040_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0040_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0040");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 1000, 1000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot("1");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0040_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0040
+ * @tc.desc detents元组中元素乱序,速度达到阈值,验证滑动位置对半模态切换档位的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0040_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0040_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0040");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 400, dis.width / 2, dis.height - 100, 1000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot("2");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0040_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0200
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0200
+ * @tc.desc height设置为String类型100%,验证在手机上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0200', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0200 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0200");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0200 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0430
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0430
+ * @tc.desc preferType设置为跟手弹窗detents:[SheetSize.MEDIUM40%,450],height设置为100vp,验证在平板上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0430', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0430 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0430");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0430 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0350
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0350
+ * @tc.desc preferType设置为跟手弹窗detents [SheetSize MEDIUM40%,450].height设置为S(420vp),验证在平板上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0350', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0350 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0350");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0350 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0570
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0570
+ * @tc.desc 不配置showClose,验证关闭图标默认情况下是否显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0570', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0570 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0570");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0570 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0400
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0400
+ * @tc.desc preferType设置为跟手弹窗detents [SheetSize MEDIUM40%,450],height设置为100%,验证在手机上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0400', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0400 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0400");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0400 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0190
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0190
+ * @tc.desc height设置为String类型100%,验证在平板上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0190 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0190");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0190 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0440
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0440
+ * @tc.desc preferType设置为跟手弹窗detents [SheetSize.MEDIUM,40%,450],height设置为100vp,验证在手机上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0440', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0440 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0440");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0440 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0230
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0230
+ * @tc.desc preferType设置为居中弹窗detents:[SheetSize.MEDIUM,40%,450],height设置为SheetSize.LARGE,验证在平板上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0230 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0230");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0230 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0280
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0280
+ * @tc.desc preferType设置为居中弹窗detents[SheetSize.LARGE,50%,100],验证在手机上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0280 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0280");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0280 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0500
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0500
+ * @tc.desc showClose设置为false,验证关闭图标是否未显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0500', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0500 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0500");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0500 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0270
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0270
+ * @tc.desc preferType设置为居中弹窗detents[SheetSize.LARGE,50%,100].验证在平板上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0270 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0270");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0270 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0510
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0510
+ * @tc.desc showClose设置为true,验证关闭图标是否显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0510', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0510 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0510");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0510 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0310
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0310
+ * @tc.desc preferType设置为跟手弹窗detents [SheetSize.MEDIUM,40%],height设置为SheetSize.FIT_CONTENT,验证在平板上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0310 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0310");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0310 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0520
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0520
+ * @tc.desc title和subtitle都设置,验证半模态面板展示效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0520', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0520 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0520");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0520 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0480
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0480
+ * @tc.desc preferType设置为跟手弹窗detents[SheetSize LARGE,50%,100].验证在手机上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0480', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0480 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0480");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0480 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0320
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0320
+ * @tc.desc preferType设置为跟手弹窗detents [SheetSize.MEDIUM40%],height设置为SheetSize FIT_CONTENT,验证在手机上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0320', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0320 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0320");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0320 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0540
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0540
+ * @tc.desc 不设置弹窗类型,验证不设置height,不设置detens,平板上半模态页面样式和高度的显示效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0540', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0540 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0540");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0540 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0470
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0470
+ * @tc.desc preferType设置为跟手弹窗detents[SheetSize.LARGE.50%,100].验证在平板上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0470', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0470 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0470");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0470 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0360
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0360
+ * @tc.desc preferType设置为跟手弹窗detents [SheetSize.MEDIUM,40%,450],height设置为S(420vp),验证在手机上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0360', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0360 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0360");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0360 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0550
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0550
+ * @tc.desc 不设置弹窗类型,验证不设置height,不设置detens,手机上半模态页面样式和高度的显示效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0550', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0550 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0550");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0550 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0390
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0390
+ * @tc.desc preferType设置为跟手弹窗detents [SheetSize MEDIUM,40%,450],height设置为100%,验证在平板上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0390', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0390 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0390");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0390 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0590
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0590
+ * @tc.desc 仅设置title且内容超长,超过标题区高度56vp
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0590', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0590 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0590");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0590 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0600
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0600
+ * @tc.desc 仅设置title且高度不超过标题区高度56vp
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0600', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0600 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0600");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0600 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0670
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0670
+ * @tc.desc 弹窗类型设置为居中弹窗,验证不设置height,不设置detens手机上半模态页面样式和高度的显示效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0670', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0670 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0670");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0670 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0620
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0620
+ * @tc.desc 弹窗类型为跟手弹窗,验证不设置height,不设置detens,平板上半模态页面样式和高度的显示效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0620', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0620 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0620");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0620 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0700
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0700
+ * @tc.desc 验证在半模态面板标题区域设置menu组件,menu是否可以正常弹出
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0700', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0700 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0700");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ const title = await driver.findComponent(ON.id('sheet_title'));
+ await Utils.sleep(200);
+ await title.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0700 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0690
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0690
+ * @tc.desc 验证在半模态面板标题区域设置ist组件,list组件是否可以正常滑动
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0690', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0690 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0690");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ const list = await driver.findComponent(ON.type('List'));
+ await Utils.sleep(300);
+ const point = await list.getBoundsCenter();
+ await driver.swipe(point.x, point.y + 20, point.x, point.y - 20);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0690 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0240
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0240
+ * @tc.desc preferType设置为居中弹窗detents [SheetSize.MEDIUM40%,450],height设置为SheetSize.LARGE,验证在手机上半模态页面的样式和高度如何显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0240 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0240");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0240 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0660
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0660
+ * @tc.desc 弹窗类型设置为居中弹窗,验证不设置height,不设置detens,平板上半模态页面样式和高度的显示效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0660', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0660 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0660");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0660 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0720
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0720
+ * @tc.desc 验证自定义标题未超过标题区域,半模态面板标题展示效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0720', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0720 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0720");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0720 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0630
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0630
+ * @tc.desc 弹窗类型为跟手弹窗,验证不设置height,不设置detens,手机上半模态页面样式和高度的显示效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0630', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0630 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0630");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0630 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0710
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0710
+ * @tc.desc 验证底部弹窗竖屏,支持根据内容自适应高度
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0710', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0710 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0710");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0710 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0770
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0770
+ * @tc.desc 一只手指按住半模态组件下滑一只手指按住里面list滑动
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0770', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0770 start.`);
+ Settings.createWindow("testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0770");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ const list = await driver.findComponent(ON.type('List'));
+ await Utils.sleep(300);
+ const point = await list.getBoundsCenter();
+ let pointers: PointerMatrix = PointerMatrix.create(2,2);
+ pointers.setPoint(0, 0, {x: point.x, y: 644});
+ pointers.setPoint(0, 1, {x: point.x, y: 600});
+ pointers.setPoint(1, 0, {x: point.x, y: 644});
+ pointers.setPoint(1, 1, {x: point.x, y: 700});
+ await driver.injectMultiPointerAction(pointers);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_MODALTRANSITION_VISION_0770 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIBindContentCoverTest/UIComponentPopupboxModalrtamsition.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIBindContentCoverTest/UIComponentPopupboxModalrtamsition.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b098b77e4fafd39cda3c535a75e0971297d240cf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIBindContentCoverTest/UIComponentPopupboxModalrtamsition.test.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 { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+import { Component, Driver, ON } from '@ohos.UiTest'
+
+import { uiAppearance } from '@kit.ArkUI'
+import { BusinessError } from '@kit.BasicServicesKit';
+
+export default function UIComponentPopupboxModalrtamsition() {
+
+ describe('UIComponentPopupboxModalrtamsition', () => {
+
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIBindSheetTest/UIComponentPopupBoxModalTransitionNetedScrolling.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIBindSheetTest/UIComponentPopupBoxModalTransitionNetedScrolling.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..19df51cc1e6bf9cd7408508763d09c9c5206aa33
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIBindSheetTest/UIComponentPopupBoxModalTransitionNetedScrolling.test.ets
@@ -0,0 +1,286 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { afterEach, describe, it } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+import { Driver, ON } from '@kit.TestKit'
+import { display } from '@kit.ArkUI'
+import { KeyCode } from '@kit.InputKit'
+
+export default function UIComponentPopupBoxModalTransitionNetedScrolling() {
+
+ describe('UIComponentPopupBoxModalTransitionNetedScrolling', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ const optionFunc = async (isWeb: boolean = false) => {
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(isWeb ? 2000 : 1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 400);
+ await Utils.sleep(1000);
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 400);
+ await Utils.sleep(1000);
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 1000);
+ await Utils.sleep(1000);
+ await driver.swipe(dis.width / 2, dis.height / 2, dis.width / 2, dis.height / 2 + 1000);
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ESCAPE);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ }
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0060 start.`);
+ Settings.createWindow(
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0060");
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0030
+ * @tc.desc 半模态嵌套Grid组件、设置detents [300,500,700]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0030")
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0030 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0090
+ * @tc.desc 半模态Scroll+嵌套WaterFow组件、设置height:500
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0090 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0090")
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0090 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0050
+ * @tc.desc 半模态嵌套WaterFlow组件、设置detents[300,500,700]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0050")
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0050 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0070
+ * @tc.desc 半模态嵌套Scroll+Web组件、设置detents [300,500,700]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0070")
+ await optionFunc(true);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0070 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0100
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0100
+ * @tc.desc 半模态嵌套Scroll+Grid组件、设置height:500
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0100 start.`);
+ Settings.createWindow(
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0100")
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0100 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0150
+ * @tc.desc 半模态嵌套Grd组件、设置height 500
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0150 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0150")
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0150 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0080
+ * @tc.desc 半模态嵌套List组件、设置detents [300,500,700]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0080 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0080")
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0080 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0020
+ * @tc.desc 半模态嵌套Web组件、设置height:500
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0020 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0020")
+ await optionFunc(true);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0020 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0040
+ * @tc.desc 半模态无嵌套、设置detents [SheetSize.MEDIUM,SheetSize.LARGE,200]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0040")
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0140
+ * @tc.desc 半模态嵌套List组件、设置height:500
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0140 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0140")
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0140 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0160
+ * @tc.desc 半模态嵌套Scroll+Grid组件、设置detents [300,500,700]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0160 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0160")
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0160 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0120
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0120
+ * @tc.desc 半模态嵌套Scroll+List组件、设置height:500
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0120 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0120")
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0120 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0110
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0110
+ * @tc.desc 半模态嵌套Scroll+Web组件、设置height:500
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0110 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0110")
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0110 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0170
+ * @tc.desc 半模态无嵌套、设置height.500
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0170', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0170 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0170")
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0170 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0180
+ * @tc.desc 半模态嵌套Web组件、设置detents [300,500,700]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0180 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0180")
+ await optionFunc(true);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0180 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0190
+ * @tc.desc 嵌套WaterFow单挡位
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0190 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0190")
+ await optionFunc(true);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_NETEDSCROLLING_0190 finish.`);
+ done();
+ })
+
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIBindSheetTest/UIComponentPopupboxModaltransitionGear.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIBindSheetTest/UIComponentPopupboxModaltransitionGear.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d1b17d952b6acd3ae78e28ec7175c445e39e7407
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIBindSheetTest/UIComponentPopupboxModaltransitionGear.test.ets
@@ -0,0 +1,331 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 { display } from '@kit.ArkUI';
+
+export default function UIComponentPopupboxModaltransitionGearTest () {
+ describe('UIComponentPopupboxModaltransitionGearTest', () => {
+
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ const optionFunc = async (distance: number = 240,speed: number = 600, step: number = 2) => {
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ const swiperDistance = Math.floor(dis.height - 160 - distance);
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, swiperDistance, speed);
+ if (step >= 2) {
+ await Utils.sleep(800);
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, swiperDistance, speed);
+ }
+ await Utils.sleep(800);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ }
+
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0130
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0130
+ * @tc.desc 设置了detents,也设置了height
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0130 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0130");
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0130 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0030
+ * @tc.desc 位移距离超过当前位置与目标位置的1/2
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0030");
+ await optionFunc(vp2px(133), 500, 1);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0030 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0120
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0120
+ * @tc.desc 设置了detents,三个参数一致
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0120 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0120");
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0120 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0140
+ * @tc.desc 设置了detents,未设置了height
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0140 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0140");
+ await optionFunc();
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0140 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0160
+ * @tc.desc 配置bindsheet show退场
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0160 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0160");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(2000);
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0160 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040_1
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040_1
+ * @tc.desc 手势退场-右滑
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_1");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(200);
+ await Utils.sleep(1000);
+ await driver.swipe(0, 100, 500, 100, 1000);
+ await driver.delayMs(1000)
+ await windowSnap.snapShot("1");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040_2
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040_2
+ * @tc.desc 手势退场-点击close
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_2");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(500);
+ const bt2 = await driver.findComponent(ON.type('SymbolGlyph'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot("2");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040_3
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040_3
+ * @tc.desc 手势退场-点击阴影空白处
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_3");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(500);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot("3");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0010
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0010
+ * @tc.desc height高度自定义
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0010 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0010");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0010 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0090
+ * @tc.desc 最低档位向下拖动
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0090 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0090");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ const swiperDistance = Math.floor(dis.height - 300);
+ await driver.swipe(dis.width / 2, swiperDistance, dis.width / 2, dis.height - 100);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0090 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0080
+ * @tc.desc 拖动速度超过阈值
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0080 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0080");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ const swiperDistance = Math.floor(dis.height - 800);
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, swiperDistance, 1500);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0080 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0100
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0100
+ * @tc.desc 最高档位往上拖动
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0100 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0100");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, 0);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0100 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0150
+ * @tc.desc 设置了detents,横竖屏切换
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0150 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0150");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ const swiperDistance = Math.floor(dis.height - 300);
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, swiperDistance);
+ await Utils.sleep(800);
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, swiperDistance);
+ await Utils.sleep(800);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0150 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonAttrlbuyeUpdater.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonAttrlbuyeUpdater.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7eea691a577f33b4c10137c5965b311a05e90ed8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonAttrlbuyeUpdater.test.ets
@@ -0,0 +1,82 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+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 UIComponentButtonAttrlbuyeUpdater() {
+
+ describe('UIComponentButtonAttrlbuyeUpdater', () => {
+
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_ATTRIBUTEUPDATER_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_ATTRIBUTEUPDATER_0210 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonAttrlbuteUpdater0210")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let c23: Component = await driver.findComponent(ON.id('c23'));
+ await Utils.sleep(500)
+ await c23.click()
+ await Utils.sleep(500)
+ let c24: Component = await driver.findComponent(ON.id('c24'));
+ await Utils.sleep(500)
+ await c24.click()
+ await Utils.sleep(500)
+ let c25: Component = await driver.findComponent(ON.id('c25'));
+ await Utils.sleep(500)
+ await c25.click()
+ await Utils.sleep(500)
+ let c26: Component = await driver.findComponent(ON.id('c26'));
+ await Utils.sleep(500)
+ await c26.click()
+ await Utils.sleep(500)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_ATTRIBUTEUPDATER_0210 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_ATTRIBUTEUPDATER_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_ATTRIBUTEUPDATER_0230 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonAttrlbuteUpdater0230")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_ATTRIBUTEUPDATER_0230 finish.`);
+ done()
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonButtonInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonButtonInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6021dc1ed702918fca5979744d15e152d4a1c43e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonButtonInterface.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, 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 { uiAppearance } from '@kit.ArkUI'
+import { Driver, ON } from '@kit.TestKit'
+
+export default function UIComponentButtonButtonInterface() {
+
+ describe('UIComponentButtonButtonInterface', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_INTERFACE_0630', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_INTERFACE_0630 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonInterface0630");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(500);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_INTERFACE_0630 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonButtonUx.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonButtonUx.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2c41dcf827b00c8b436b6439d268e05b936c3601
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonButtonUx.test.ets
@@ -0,0 +1,313 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, 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 UIComponentButtonButtonUx() {
+
+ describe('UIComponentButtonButtonUx', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_004', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_004 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonUx004");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(600)
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await driver.delayMs(100)
+ await button2.click()
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await driver.delayMs(100)
+ await button3.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_0004 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_009', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_009 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonUx009");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(600)
+ await Utils.sleep(600)
+
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await driver.delayMs(100)
+ await button2.click()
+ await driver.delayMs(600)
+ await Utils.sleep(600)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_009 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_003', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_003 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonUx003");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(600)
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await driver.delayMs(600)
+ await button2.click()
+ await Utils.sleep(600)
+
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await driver.delayMs(600)
+ await button3.click()
+ await Utils.sleep(600)
+
+ let button4: Component = await driver.findComponent(ON.id('button4'));
+ await driver.delayMs(600)
+ await button4.click()
+ await Utils.sleep(600)
+
+ let button5: Component = await driver.findComponent(ON.id('button5'));
+ await driver.delayMs(100)
+ await button5.click()
+ await Utils.sleep(600)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_003 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_010 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonUx010");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_010 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_007', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_007 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonUx007");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await driver.delayMs(100)
+ await button2.click()
+ await driver.delayMs(100)
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_007 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_008', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_008 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonUx008");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await driver.delayMs(100)
+ await button2.click()
+ await driver.delayMs(100)
+ await Utils.sleep(1000)
+
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_008 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_001', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_001 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonUx001");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_001 finish.`);
+ done()
+ })
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_006', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_006 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonUx006");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_006 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_011', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_011 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonUx011");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await driver.delayMs(100)
+ await button2.click()
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await driver.delayMs(100)
+ await button3.click()
+ await driver.delayMs(100)
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_0011 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_012', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_012 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonUx012");
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_0012 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_002', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_002 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonUx002");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(600)
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await driver.delayMs(100)
+ await button2.click()
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await driver.delayMs(100)
+ await button3.click()
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ await driver.delayMs(100)
+ await button2.click()
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button4: Component = await driver.findComponent(ON.id('button4'));
+ await driver.delayMs(100)
+ await button4.click()
+ await driver.delayMs(100)
+ await Utils.sleep(1000)
+ await driver.delayMs(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_0002 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_013', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_013 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonButtonUx013");
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_UX_0013 finish.`);
+ done()
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonStyle.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..35597835d09da538601f8dbd47acd91ce4ceb950
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonStyle.test.ets
@@ -0,0 +1,179 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIComponentButtonStyle() {
+
+ describe('UIComponentButtonStyle', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0010 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonStyle0010");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0010 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0020 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonStyle0020");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0020 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0030 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonStyle0030");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0030 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0040 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonStyle0040");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0040 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0050 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonStyle0050");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0050 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0070 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonStyle0070");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0070 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0080 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonStyle0080");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0080 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0090 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentButtonStyle0090");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0090 finish.`);
+ done()
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonUIsupportColor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonUIsupportColor.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0dc5a1f315e55476d15777d1167394bcaaef22a4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIButton/UIComponentButtonUIsupportColor.test.ets
@@ -0,0 +1,145 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 { uiAppearance } from '@kit.ArkUI'
+import { Driver, ON } from '@kit.TestKit'
+
+export default function UIComponentButtonUIsupportColor() {
+
+ describe('UIComponentButtonUIsupportColor', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0080 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentUIsupportColor0080");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('setColorMode'));
+ await Utils.sleep(500);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0080 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0090 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentUIsupportColor0090");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('setColorMode'));
+ await Utils.sleep(500);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0090 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0100 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentUIsupportColor0100");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('setColorMode'));
+ await Utils.sleep(500);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0100 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0110 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentUIsupportColor0110");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('setColorMode'));
+ await Utils.sleep(500);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0110 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0120 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentUIsupportColor0120");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0120 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0130 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentUIsupportColor0130");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0130 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0140_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0140_1 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentUIsupportColor0140_1");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot("1");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0140_1 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0140_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0140_2 start.`);
+ Settings.createWindow("testability/pages/UIButton/UIComponentUIsupportColor0140_2");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot("2");
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0140_2 finish.`);
+ done();
+ })
+
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonButtonAttributeUpdaterTest/UIComponentButtonButtonAttributeUpdater.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonButtonAttributeUpdaterTest/UIComponentButtonButtonAttributeUpdater.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6bf9eb7918bae1033cf8e1e3cb59943abbdf3fd3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonButtonAttributeUpdaterTest/UIComponentButtonButtonAttributeUpdater.test.ets
@@ -0,0 +1,87 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+import { Component, Driver, ON } from '@ohos.UiTest'
+import { util } from '@kit.ArkTS'
+import { window } from '@kit.ArkUI'
+
+export default function UIComponentButtonButtonAttributeUpdater() {
+
+ describe('UIComponentButtonButtonAttributeUpdater', () => {
+
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_ATTRIBUTEUPDATER_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_ATTRIBUTEUPDATER_0220
+ * @tc.desc AttributeUpdater属性更新Button,构造参数(applyNormalAttribute、initializeModifier测试)
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_ATTRIBUTEUPDATER_0220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonButtonAttributeUpdater/UIComponentButtonButtonAttributeUpdater0220");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_ATTRIBUTEUPDATER_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_ATTRIBUTEUPDATER_0200
+ * @tc.desc AttributeUpdater属性更新Button构造参数(attribute测试)
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_BUTTON_ATTRIBUTEUPDATER_0200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonButtonAttributeUpdater/UIComponentButtonButtonAttributeUpdater0200");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const c20: Component = await driver.findComponent(ON.id('c20'));
+ const c21: Component = await driver.findComponent(ON.id('c21'));
+ const c22: Component = await driver.findComponent(ON.id('c22'));
+ await c20.click();
+ await Utils.sleep(1000);
+ await c21.click();
+ await Utils.sleep(1000);
+ await c22.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/UIComponentButtonCalendarPickerDialogInterfaceTest/UIComponentButtonCalendarPickerDialogInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonCalendarPickerDialogInterfaceTest/UIComponentButtonCalendarPickerDialogInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..07c115385a23bfd6f3975a54ac117429df5d1309
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonCalendarPickerDialogInterfaceTest/UIComponentButtonCalendarPickerDialogInterface.test.ets
@@ -0,0 +1,258 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { 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 UIComponentButtonCalendarPickerDialogInterface() {
+ describe('UIComponentButtonCalendarPickerDialogInterface', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0180
+ * @tc.desc 验证CalendarPickerDialog的hintRadius为"dsfsfsf时底板样式的形状
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0180");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let clickButton = await driver.findComponent(ON.id('ComponentCalendarPickerDialog'));
+ await clickButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0210
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0210
+ * @tc.desc 验证CalendarPickerDialog的onCancelt接口是否正常
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0210', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0210");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let clickButton = await driver.findComponent(ON.id('ComponentCalendarPickerDialog'));
+ await clickButton.click();
+ await Utils.sleep(1000);
+ let clickOnCancel = await driver.findComponent(ON.text('取消'))
+ await clickOnCancel.click()
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0160
+ * @tc.desc 验证CalendarPickerDialog的hintRadius为48时底板样式的形状
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0160");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let clickButton = await driver.findComponent(ON.id('ComponentCalendarPickerDialog'));
+ await clickButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0140
+ * @tc.desc 验证CalendarPickerDialog的hintRadius为0时底板样式的形状
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0140");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let clickButton = await driver.findComponent(ON.id('ComponentCalendarPickerDialog'));
+ await clickButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0150
+ * @tc.desc 验证CalendarPickerDialog的hintRadius为16时底板样式的形状
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0150");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let clickButton = await driver.findComponent(ON.id('ComponentCalendarPickerDialog'));
+ await clickButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0130
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0130
+ * @tc.desc 验证CalendarPickerDialog的hintRadius为-1时底板样式的形状
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0130', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0130");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let clickButton = await driver.findComponent(ON.id('ComponentCalendarPickerDialog'));
+ await clickButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0170
+ * @tc.desc 验证CalendarPickerDialog的hintRadius为6时底板样式的形状
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0170");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let clickButton = await driver.findComponent(ON.id('ComponentCalendarPickerDialog'));
+ await clickButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0190
+ * @tc.desc 验证CalendarPickerDialog的hintRadius为默认值时底板样式的形状
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0190', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0190");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let clickButton = await driver.findComponent(ON.id('ComponentCalendarPickerDialog'));
+ await clickButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0010
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0010
+ * @tc.desc 验证CalendarPickeDialog日期格式不符合规范
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0010");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let clickButton = await driver.findComponent(ON.id('ComponentCalendarPickerDialog'));
+ await clickButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0200
+ * @tc.desc 验证CalendarPickerDialog的onAccept接口是否正常
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0200");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let clickButton = await driver.findComponent(ON.id('ComponentCalendarPickerDialog'));
+ await clickButton.click();
+ await Utils.sleep(1000);
+ let clickOnCancel = await driver.findComponent(ON.text('确定'))
+ await clickOnCancel.click()
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0020
+ * @tc.desc 验证CalendarPickerDialog的selected为系统当前时间
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0020")
+ const driver: Driver = Driver.create();
+ await Utils.sleep(1000);
+ const button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0220
+ * @tc.desc 验证CalendarPickerDialog的onChange接口是否正常
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_CalendarPickerDialog_INTERFACE_0220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0220");
+ const driver: Driver = Driver.create();
+ await Utils.sleep(1000);
+ const button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(10,10);
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(10,10);
+ await Utils.sleep(1000);
+ await button.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/UIComponentButtonCommonButtonTest/UIComponentButtonCommonButton.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonCommonButtonTest/UIComponentButtonCommonButton.test.ets
index f0efa3c97bfacd96c3d9e5e209bda39d486bd476..e860b764c64349444a750db332e0cadea488f70f 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
@@ -40,6 +40,23 @@ export default function UIComponentButtonCommonButton() {
describe('UIComponentButtonCommonButton', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0330
* @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0330
@@ -55,6 +72,118 @@ export default function UIComponentButtonCommonButton() {
done()
})
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0010 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0010");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0010 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0020 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0020");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0020 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0030");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0030 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0040");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0040 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0060");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0060 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0070");
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await driver.delayMs(100)
+ await button1.click()
+ await driver.delayMs(100)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0070 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0090 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0090");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0090 finish.`);
+ done()
+ })
+
/*
* @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0340
* @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0340
@@ -70,6 +199,21 @@ export default function UIComponentButtonCommonButton() {
done()
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0100
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0100
+ * @tc.desc test CheckBoxGroup modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0100 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0100")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0100 finish.`);
+ done()
+ })
+
/*
* @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0350
* @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0350
@@ -85,6 +229,21 @@ export default function UIComponentButtonCommonButton() {
done()
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0110
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0110
+ * @tc.desc test CheckBoxGroup modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0110 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0110")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0110 finish.`);
+ done()
+ })
+
/*
* @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0360
* @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0360
@@ -100,6 +259,21 @@ export default function UIComponentButtonCommonButton() {
done()
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0120
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0120
+ * @tc.desc test CheckBoxGroup modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0120 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0120")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0120 finish.`);
+ done()
+ })
+
/*
* @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0370
* @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0370
@@ -115,6 +289,21 @@ export default function UIComponentButtonCommonButton() {
done()
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0130
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0130
+ * @tc.desc test CheckBoxGroup modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0130 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0130")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0130 finish.`);
+ done()
+ })
+
/*
* @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0380
* @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0380
@@ -130,6 +319,21 @@ export default function UIComponentButtonCommonButton() {
done()
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0140
+ * @tc.desc test CheckBoxGroup modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0140 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0140")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0140 finish.`);
+ done()
+ })
+
/*
* @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0390
* @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0390
@@ -145,6 +349,21 @@ export default function UIComponentButtonCommonButton() {
done()
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0150
+ * @tc.desc test CheckBoxGroup modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0150 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0150")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0150 finish.`);
+ done()
+ })
+
/*
* @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_1
* @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_1
@@ -165,6 +384,21 @@ export default function UIComponentButtonCommonButton() {
done()
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0160
+ * @tc.desc test CheckBoxGroup modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0160 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0160")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0160 finish.`);
+ done()
+ })
+
/*
* @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_2
* @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_2
@@ -185,6 +419,21 @@ export default function UIComponentButtonCommonButton() {
done()
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0170
+ * @tc.desc test CheckBoxGroup modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0170', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0170 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0170")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0170 finish.`);
+ done()
+ })
+
/*
* @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_1
* @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_1
@@ -205,6 +454,21 @@ export default function UIComponentButtonCommonButton() {
done()
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0180
+ * @tc.desc test CheckBoxGroup modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0180 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0180")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0180 finish.`);
+ done()
+ })
+
/*
* @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_2
* @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_2
@@ -224,5 +488,217 @@ export default function UIComponentButtonCommonButton() {
Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_2 finish.`);
done()
})
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0190
+ * @tc.desc test Counter modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0190 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0190")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0190 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0200
+ * @tc.desc test Counter modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0200', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0200 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0200")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0200 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0210
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0210
+ * @tc.desc test Counter modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0210 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0210")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0210 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0220
+ * @tc.desc test Counter modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0220', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0220 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0220")
+ await Utils.sleep(1000)
+ windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0220 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0230
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0230
+ * @tc.desc test Counter modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0230 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0230")
+ await Utils.sleep(1000)
+ windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0230 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0240
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0240
+ * @tc.desc test Counter modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0240 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0240")
+ await Utils.sleep(1000)
+ windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0240 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0250
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0250
+ * @tc.desc test Counter modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0250 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0250")
+ await Utils.sleep(1000)
+ windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0250 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0260
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0260
+ * @tc.desc test Counter modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0260 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0260")
+ await Utils.sleep(1000)
+ windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0260 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0270
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0270
+ * @tc.desc test Counter modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0270 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0270")
+ await Utils.sleep(1000)
+ windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0270 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0280
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0280
+ * @tc.desc test DatePicker modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0280 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0280")
+ await Utils.sleep(1000)
+ windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0280 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0290
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0290
+ * @tc.desc test DatePicker modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0290', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0290 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0290")
+ await Utils.sleep(1000)
+ windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0290 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0300
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0300
+ * @tc.desc test DatePicker modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0300', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0300 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0300")
+ await Utils.sleep(1000)
+ windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0300 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0310
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0310
+ * @tc.desc test DatePicker modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0310 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0310")
+ await Utils.sleep(1000)
+ windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0310 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0320
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0320
+ * @tc.desc test DatePicker modifier
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0320', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0320 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0320")
+ await Utils.sleep(1000)
+ windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0320 finish.`);
+ done()
+ })
+
+
})
-}
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonDatePickerInterfaceTest/UIComponentButtonDatePickerInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonDatePickerInterfaceTest/UIComponentButtonDatePickerInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..81b591bfa4b788be43cca80f75e3c58b198ad3c0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonDatePickerInterfaceTest/UIComponentButtonDatePickerInterface.test.ets
@@ -0,0 +1,336 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+import { Component, Driver, On, ON } from '@ohos.UiTest'
+
+export default function UIComponentButtonDatePickerInterface() {
+ describe('UIComponentButtonDatePickerInterface', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0250 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0250")
+ await Utils.sleep(2000)
+ await windowSnap.snapShot();
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0250 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0150 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0150")
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ await Utils.sleep(1000)
+
+ let picker = await driver.findComponent(ON.id('DatePicker'))
+ await Utils.sleep(100)
+ let centerPoint = await picker.getBoundsCenter()
+ await Utils.sleep(100)
+
+ //第一列
+ await driver.swipe(centerPoint.x-100,centerPoint.y,centerPoint.x-100,centerPoint.y+100)
+ await Utils.sleep(500)
+
+ await driver.swipe(centerPoint.x-100,centerPoint.y,centerPoint.x-100,centerPoint.y-100)
+ await Utils.sleep(500)
+
+ //第二列
+ await driver.swipe(centerPoint.x,centerPoint.y,centerPoint.x,centerPoint.y+100)
+ await Utils.sleep(500)
+
+ await driver.swipe(centerPoint.x,centerPoint.y,centerPoint.x,centerPoint.y-100)
+ await Utils.sleep(500)
+
+ //第三列
+ await driver.swipe(centerPoint.x+100,centerPoint.y,centerPoint.x+100,centerPoint.y+100)
+ await Utils.sleep(500)
+
+ await driver.swipe(centerPoint.x+100,centerPoint.y,centerPoint.x+100,centerPoint.y-100)
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0150 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0050")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0050 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0070")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0070 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0230 start.`);
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0230")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0230 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0160
+ * @tc.desc 在Datepicker组件中,验证滑动响应时间
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0160");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let scrollBar = await driver.findComponent(ON.id('datePicker'));
+ await scrollBar.scrollToTop();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0170
+ * @tc.desc 在Datepicker组件中,验证通用属性constraintsize 为minWidth大于maxWidth
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0170");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0260
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0260
+ * @tc.desc 在Datepicker组件中,验证通用属性padding默认值
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0260', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0260");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0090
+ * @tc.desc DatePicker组件,验证参数start.end.selected配署data类型
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0090', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0090");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0020
+ * @tc.desc Datepicker组件,验证参数end错误数据情况
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0240
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0240
+ * @tc.desc 在Datepicker组件中。验证通用属性padding为Lenoth行
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0240', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0240");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0180
+ * @tc.desc 在Datepicker组件中,验证通用属性constraintsize为百分比
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0180");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0200
+ * @tc.desc 在Datepicker组件中,验证通用属性height子父组件设置正常
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0200");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0100
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0100
+ * @tc.desc DatePicker组件,验证属性lunar配置flase
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0100', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0100");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0110
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0110
+ * @tc.desc DatePicker组件,验证属性lunar配置true
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0110', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0110");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0080
+ * @tc.desc DatePicker组件,验证参数start,end,selected不配置
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0040
+ * @tc.desc DatePicker组件,验证参数selected错误数据情况,selected配置2023-04-31
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0210
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0210
+ * @tc.desc 在Datepicker组件中,验证通用属性margin为length行
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0210', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0210");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0280
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0280
+ * @tc.desc 在Datepicker组件中,验证通用属性margin为length行
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0280', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0280");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0290
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0290
+ * @tc.desc 在Datepicker组件中,验证通用属性margin为length行
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0290', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0290");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0220
+ * @tc.desc 在Datepicker组件中,验证通用属性margin为length行
+ */
+ it('SUB_ACE_UI_COMPONENT_BUTTON_DATEPICKER_INTERFACE_0220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0220");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionSpecialCDCMOptimizationTest/UIComponentFunctionSpecialCDCMOptimization.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionSpecialCDCMOptimizationTest/UIComponentFunctionSpecialCDCMOptimization.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bdde50ad4db1badeb8906d833803406add331bbd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionSpecialCDCMOptimizationTest/UIComponentFunctionSpecialCDCMOptimization.test.ets
@@ -0,0 +1,718 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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'
+import { KeyCode } from '@kit.InputKit'
+
+/*
+ * ARKUIComponentFunctionSpecialComponentsDialogCustomInputMethodOptimization:验证openCustomDialog对输入法的避让
+ *
+ * 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 UIComponentFunctionSpecialCDCMOptimization() {
+
+ describe('UIComponentFunctionSpecialCDCMOptimization', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0080
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0080
+ * @tc.desc (alignment: Top, showInSubWindwow: true, height: 600)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0080");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(500);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(500);
+ await button2.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await Utils.sleep(500);
+ await button3.click();
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await Utils.sleep(500);
+ await button4.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await Utils.sleep(500);
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(500);
+ await Utils.sleep(1000);
+ let button6 = await driver.findComponent(ON.id('button6'));
+ await Utils.sleep(500);
+ await button6.click();
+ await Utils.sleep(1000);
+ let button5 = await driver.findComponent(ON.id('button5'));
+ await Utils.sleep(500);
+ await button5.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button4 = await driver.findComponent(ON.id('button4'));
+ await Utils.sleep(500);
+ await button4.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await Utils.sleep(500);
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0020
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0020
+ * @tc.desc (alignment: Top, showInSubWindwow: true, height: 100)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0020");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button6 = await driver.findComponent(ON.id('button6'));
+ await button6.click();
+ await Utils.sleep(1000);
+ let button5 = await driver.findComponent(ON.id('button5'));
+ await button5.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0050
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0050
+ * @tc.desc (alignment: Bottom, showInSubWindwow: false, height: 100)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0050");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button6 = await driver.findComponent(ON.id('button6'));
+ await button6.click();
+ await Utils.sleep(1000);
+ let button5 = await driver.findComponent(ON.id('button5'));
+ await button5.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0030
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0030
+ * @tc.desc (alignment: Bottom, showInSubWindwow: true, height: 600)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0030");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button6 = await driver.findComponent(ON.id('button6'));
+ await button6.click();
+ await Utils.sleep(1000);
+ let button5 = await driver.findComponent(ON.id('button5'));
+ await button5.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0060
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0060
+ * @tc.desc (alignment: Bottom, showInSubWindwow: false, height: 100)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0060");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0100
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0100
+ * @tc.desc (alignment: Top, showInSubWindwow: true, height: 600)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0100', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0100");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0090
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0090
+ * @tc.desc (alignment: Bottom, showInSubWindwow: false, height: 600)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0090', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0090");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0040
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0040
+ * @tc.desc (alignment: Bottom, showInSubWindwow: true, height: 100)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0040");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button6 = await driver.findComponent(ON.id('button6'));
+ await button6.click();
+ await Utils.sleep(1000);
+ let button5 = await driver.findComponent(ON.id('button5'));
+ await button5.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0110
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0110
+ * @tc.desc (alignment: Top, showInSubWindwow: false, height: 100)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0110', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0110");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button6 = await driver.findComponent(ON.id('button6'));
+ await button6.click();
+ await Utils.sleep(1000);
+ let button5 = await driver.findComponent(ON.id('button5'));
+ await button5.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0140
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0140
+ * @tc.desc (alignment: Top, showInSubWindwow: false, height: 100)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0140");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0150
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0150
+ * @tc.desc (alignment: Bottom, showInSubWindwow: true, height: 100)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0150");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0120
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0120
+ * @tc.desc (alignment: Top, showInSubWindwow: true, height: 100)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0120', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0120");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0070
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0070
+ * @tc.desc (alignment: Top, showInSubWindwow: false, height: 600)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0070");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000)
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0130
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0130
+ * @tc.desc (alignment: Top, showInSubWindwow: false, height: 600)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0130', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0130");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button6 = await driver.findComponent(ON.id('button6'));
+ await button6.click();
+ await Utils.sleep(1000);
+ let button5 = await driver.findComponent(ON.id('button5'));
+ await button5.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ });
+
+ /*
+ * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0160
+ * @tc.name ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0160
+ * @tc.desc (alignment: Bottom, showInSubWindwow: true, height: 600)
+ */
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_CUSTOM_INPUTMETHODOPTIMIZATION_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0160");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ let input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ await Utils.sleep(1000);
+ let button6 = await driver.findComponent(ON.id('button6'));
+ await button6.click();
+ await Utils.sleep(1000);
+ let button5 = await driver.findComponent(ON.id('button5'));
+ await button5.click(); //切换到横屏
+ await Utils.sleep(1000);
+ button4 = await driver.findComponent(ON.id('button4'));
+ await button4.click();
+ await Utils.sleep(1000);
+ input = await driver.findComponent(ON.id('textInput'));
+ await input.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER); //关闭输入法
+ 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/UIComponentFunctionSpecialComponentsDialogSelectInterfaceTest/UIComponentFunctionSpecialComponentsDialogSelectInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionSpecialComponentsDialogSelectInterfaceTest/UIComponentFunctionSpecialComponentsDialogSelectInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..87f7f54b6de74d2166977798bdcc84cece62e987
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionSpecialComponentsDialogSelectInterfaceTest/UIComponentFunctionSpecialComponentsDialogSelectInterface.test.ets
@@ -0,0 +1,2209 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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'
+
+/*
+ * SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0010:设置文本颜色
+ *
+ * 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 UIComponentFunctionSpecialComponentsDialogSelectInterface() {
+
+ describe('UIComponentFunctionSpecialComponentsDialogSelectInterface', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0060");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0060_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0060_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0060 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0490', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0490 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0490");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0490_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0490_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0490 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0990', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0990 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0990");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0990_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0990_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0990 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0450', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0450 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0450");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0450_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0450_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0450 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0940', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0940 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0940");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0940_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0940_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0940 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0100 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0100");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0100_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0100_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0100 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0530', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0530 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0530");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0530_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0530_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0530 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0430', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0430 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0430");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0430_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0430_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0430 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0930', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0930 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0930");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0930_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0930_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0930 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0020 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0020");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0020_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0020_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0020 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0480', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0480 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0480");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0480_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0480_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0480 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0410', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0410 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0410");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0410_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0410_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0410 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0980', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0980 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0980");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0980_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0980_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0980 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0920', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0920 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0920");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0920_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0920_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0920 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0150_1', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0150_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0150");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0150_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0150_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.text('aaa'));
+ await Utils.sleep(100);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0150_1 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0150_2', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0150_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0150");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0150_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0150_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.text('aaa'));
+ await Utils.sleep(100);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0150_2 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0550', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0550 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0550");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0550_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0550_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0550 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0390', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0390 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0390");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0390_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0390_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0390 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0520', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0520 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0520");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0520_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0520_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0520 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0960', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0960 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0960");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0960_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0960_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0960 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0110 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0110");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0110_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0110_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0110 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0500', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0500 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0500");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0500_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0500_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0500 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1000', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1000 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1000");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface1000_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface1000_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1000 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0400', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0400 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0400");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0400_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0400_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0400 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0090 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0090");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0090_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0090_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0090 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0910', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0910 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0910");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0910_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0910_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0910 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0460', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0460 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0460");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0460_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0460_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0460 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0970', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0970 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0970");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0970_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0970_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0970 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0070");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0070_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0070_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0070 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0510', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0510 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0510");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0510_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0510_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0510 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0190 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0190");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0190_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0190_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0190 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0540', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0540 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0540");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0540_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0540_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0540 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0010 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0010");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0010_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0010_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0010 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0600', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0600 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0600");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0600_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0600_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0600 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0130 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0130");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0130_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0130_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0130 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0560', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0560 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0560");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0560_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0560_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0560 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0170', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0170 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0170");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0170_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0170_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0170 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0580', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0580 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0580");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0580_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0580_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0580 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0180 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0180");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0180_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0180_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0180 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0610', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0610 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0610");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0610_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0610_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0610 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0140', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0140 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0140");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0140_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0140_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0140 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0590', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0590 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0590");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0590_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0590_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0590 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0160 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0160");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0160_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0160_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0160 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0120 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0120");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0120_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0120_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0120 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0640', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0640 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0640");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0640_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0640_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0640 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0660', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0660 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0660");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0660_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0660_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0660 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0200', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0200 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0200");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0200_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0200_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0200 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0620_1', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0620_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0620");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0620_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0620_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.text('aaa'));
+ await Utils.sleep(100);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0620_1 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0620_2', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0620_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0620");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0620_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0620_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.text('aaa'));
+ await Utils.sleep(100);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0620_2 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0220', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0220 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0220");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0220_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0220_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0220 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0670', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0670 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0670");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0670_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0670_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0670 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1020', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1020 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1020");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface1020_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface1020_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1020 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0650', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0650 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0650");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0650_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0650_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0650 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0260 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0260");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0260_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0260_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0260 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0680', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0680 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0680");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0680_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0680_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0680 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0320', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0320 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0320");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0320_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0320_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0320 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0690', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0690 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0690");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0690_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0690_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0690 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0230 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0230");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0230_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0230_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0230 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0700', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0700 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0700");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0700_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0700_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0700 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0270 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0270");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0270_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0270_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0270 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0720', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0720 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0720");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0720_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0720_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0720 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1040', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1040 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1040");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface1040_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface1040_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1040 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0760', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0760 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0760");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0760_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0760_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0760 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0280 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0280");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0280_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0280_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0280 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0740', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0740 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0740");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0740_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0740_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0740 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0210 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0210");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0210_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0210_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0210 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0750_1', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0750_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0750");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0750_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0750_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.text('aaa'));
+ await Utils.sleep(100);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0750_1 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0750_2', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0750_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0750");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0750_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0750_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.text('aaa'));
+ await Utils.sleep(100);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0750_2 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1030', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1030 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1030");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface1030_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface1030_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1030 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0770', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0770 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0770");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0770_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0770_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0770 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1050', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1050 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1050");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface1050_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface1050_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1050 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0780', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0780 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0780");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0780_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0780_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0780 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1010', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1010 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1010");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface1010_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface1010_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_1010 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0810', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0810 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0810");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0810_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0810_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0810 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0340', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0340 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0340");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0340_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0340_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0340 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0800', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0810 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0800");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0800_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0800_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0800 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0350_1', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0350_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0350");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0350_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0350_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.text('aaa'));
+ await Utils.sleep(100);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0350_1 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0350_2', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0350_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0350");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0350_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0350_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.text('aaa'));
+ await Utils.sleep(100);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0350_2 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0790', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0790 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0790");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0790_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0790_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0790 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0360', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0360 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0360");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0360_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0360_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0360 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0820', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0820 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0820");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0820_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0820_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0820 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0330', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0330 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0330");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0330_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0330_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0330 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0830', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0830 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0830");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0830_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0830_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0830 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0290', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0290 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0290");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0290_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0290_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0290 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0870', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0870 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0870");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0870_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0870_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0870 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0240 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0240");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0240_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0240_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0240 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0850', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0850 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0850");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0850_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0850_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0850 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0370', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0370 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0370");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0370_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0370_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0370 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0880', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0880 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0880");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0880_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0880_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0880 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0420', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0420 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0420");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0420_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0420_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0420 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0890', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0890 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0890");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0890_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0890_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0890 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0900', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0900 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0900");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0900_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0900_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0900 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0440', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0440 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0440");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0440_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0440_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0440 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0040");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0040_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0040_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0040 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0030");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0030_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0030_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0030 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0950', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0950 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0950");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0950_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0950_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0950 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0470', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0470 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0470");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0470_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0470_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0470 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0050");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0050_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0050_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0050 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0570', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0570 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0570");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0570_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0570_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0570 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0080_1', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0080_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0080");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0080_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0080_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.text('aaa'));
+ await Utils.sleep(100);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0080_1 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0080_2', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0080_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0080");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0080_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0080_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.text('aaa'));
+ await Utils.sleep(100);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0080_2 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0630', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0630 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0630");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0630_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0630_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0630 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0310 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0310");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0310_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0310_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0310 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0710', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0710 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0710");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0710_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0710_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0710 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0300', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0300 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0300");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0300_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0300_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0300 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0730', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0730 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0730");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0730_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0730_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0730 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0840', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0840 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0840");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0840_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0840_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0840 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0380', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0380 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0380");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0380_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0380_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0380 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0860', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0860 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0860");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0860_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0860_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0860 finish.`);
+ done();
+ });
+
+ it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0250 start.`);
+ Settings.createWindow("testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0250");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0250_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentFunctionSpecialComponentsDialogSelectInterface0250_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_DIALOG_SELECT_INTERFACE_0250 finish.`);
+ done();
+ });
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterFlowAddTest/UIComponentListAndGridWaterFlowAdd.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterFlowAddTest/UIComponentListAndGridWaterFlowAdd.test.ets
index 60f88eae7f2cd19c24f4b358609875b5c652dbe9..51989ca4b6ebe8ba25f6b5f0839b3bf8801e2b24 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterFlowAddTest/UIComponentListAndGridWaterFlowAdd.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterFlowAddTest/UIComponentListAndGridWaterFlowAdd.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterSectionsTest/UIComponentListAndGridWaterSections.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterSectionsTest/UIComponentListAndGridWaterSections.test.ets
index 0bd9f7c778dbe844413096c0c1d2d53ffcbd3ec4..8862a9c3605050dc5d479ae31f8ea656c8285b3e 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterSectionsTest/UIComponentListAndGridWaterSections.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterSectionsTest/UIComponentListAndGridWaterSections.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavModifierTest/UIComponentNavModifier.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavModifierTest/UIComponentNavModifier.test.ets
index 12e9b46a299fc7bf8c4a3c3f58caf88fc3e9c9d5..6ea4b87b9f5a76c06735369ede8ae1a8c6a624d8 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavModifierTest/UIComponentNavModifier.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavModifierTest/UIComponentNavModifier.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsActionTest/UIComponentNavTabsAction.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsActionTest/UIComponentNavTabsAction.test.ets
index 9c7a17f444b30e9d3ddceef1830970449312938a..6ca7337473217b1e5cc6c62b92f1edad4dcdeec9 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsActionTest/UIComponentNavTabsAction.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsActionTest/UIComponentNavTabsAction.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsBlurStyleTest/UIComponentNavTabsBlurStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsBlurStyleTest/UIComponentNavTabsBlurStyle.test.ets
index e5dabdb4539a51fcdee9aad9e8d08db5c89be36e..f92440884f9c72b1aa4ad3cc95a4704601230a98 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsBlurStyleTest/UIComponentNavTabsBlurStyle.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsBlurStyleTest/UIComponentNavTabsBlurStyle.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsCachedCountTest/UIComponentNavTabsCachedCount.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsCachedCountTest/UIComponentNavTabsCachedCount.test.ets
index 764434b8c2b2c931b4e999d6ff9f380ce62b05fb..fb2e0ec07c77d6671b4ea900b73878d232af452e 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsCachedCountTest/UIComponentNavTabsCachedCount.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsCachedCountTest/UIComponentNavTabsCachedCount.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsContentAdaptTest/UIComponentNavTabsContentAdapt.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsContentAdaptTest/UIComponentNavTabsContentAdapt.test.ets
index 2cf0a074255dab4bb0c450dc5eb0aca3e305bd01..d7fc8ce0396466336374bd4c352698d080416d8c 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsContentAdaptTest/UIComponentNavTabsContentAdapt.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsContentAdaptTest/UIComponentNavTabsContentAdapt.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsHeightTest/UIComponentNavTabsHeight.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsHeightTest/UIComponentNavTabsHeight.test.ets
index aad3189a1be0291fbf0d0170441db0c00781eb86..15ecc436e5c00580ad20dff16ed2cbc1bce941ca 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsHeightTest/UIComponentNavTabsHeight.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsHeightTest/UIComponentNavTabsHeight.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsImproTraceTest/UIComponentNavTabsImproTrace.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsImproTraceTest/UIComponentNavTabsImproTrace.test.ets
index ebabf71df0bd7811fd4ea809df34b7dce2e32766..d44f6e16c8566965693ee6cee1057416cb080967 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsImproTraceTest/UIComponentNavTabsImproTrace.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsImproTraceTest/UIComponentNavTabsImproTrace.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterceptionTest/UIComponentNavTabsInterception.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterceptionTest/UIComponentNavTabsInterception.test.ets
index e30fe0a5afa1508c0979cc14c8e1a4cf22feb6db..03f4111281bf6773fed18c7a9a61a38c7451a3fd 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterceptionTest/UIComponentNavTabsInterception.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterceptionTest/UIComponentNavTabsInterception.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterfaceTest/UIComponentNavTabsInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterfaceTest/UIComponentNavTabsInterface.test.ets
index 826714182f47bfdb0b6470b6407a34dc0c625ce6..82e88f0e4de9f2eb5b567ea335786d655cbdd3bf 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterfaceTest/UIComponentNavTabsInterface.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterfaceTest/UIComponentNavTabsInterface.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsMirrorTest/UIComponentNavTabsMirror.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsMirrorTest/UIComponentNavTabsMirror.test.ets
index 66e339f31b8f9cc6d50f0b85ff6ea41ee5e74db9..5093d30204ca6a2b38804e54ae479a28294e4bba 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsMirrorTest/UIComponentNavTabsMirror.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsMirrorTest/UIComponentNavTabsMirror.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsOnWillShowTest/UIComponentNavTabsOnWillShow.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsOnWillShowTest/UIComponentNavTabsOnWillShow.test.ets
index acfc595c35a3fcee873ac41bd734968ed43fc563..701dcc0ad8756460c2c424fbba9970f2ebe3db61 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsOnWillShowTest/UIComponentNavTabsOnWillShow.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsOnWillShowTest/UIComponentNavTabsOnWillShow.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsSubTabbarStyleTest/UIComponentNavTabsSubTabbarStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsSubTabbarStyleTest/UIComponentNavTabsSubTabbarStyle.test.ets
index 577359a2b716e31c682a93610342017ec229f0fc..24075ff9787396e4eb652afc7e586a8d55fbc902 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsSubTabbarStyleTest/UIComponentNavTabsSubTabbarStyle.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsSubTabbarStyleTest/UIComponentNavTabsSubTabbarStyle.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsWidthTest/UIComponentNavTabsWidth.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsWidthTest/UIComponentNavTabsWidth.test.ets
index 54b79ec31f3f5ba9066214dd83618a1c419187a7..280fdb8e3fdee99fefb378ffabe920ab679bab73 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsWidthTest/UIComponentNavTabsWidth.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsWidthTest/UIComponentNavTabsWidth.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshAbilityTest/UIComponentOtherRefreshAbility.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshAbilityTest/UIComponentOtherRefreshAbility.test.ets
index a86014eb02d477754646809d0d45533d8da4a822..dd05da6e73704a05842bc4172edae1b0d288150a 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshAbilityTest/UIComponentOtherRefreshAbility.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshAbilityTest/UIComponentOtherRefreshAbility.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterActionTest/UIComponentOtherRefreshInterAction.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterActionTest/UIComponentOtherRefreshInterAction.test.ets
index 5982175f3a3a9ba4c186c19b9337d12d3bae81f1..657977460be43ac0a387fc7bb248c25b8d617033 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterActionTest/UIComponentOtherRefreshInterAction.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterActionTest/UIComponentOtherRefreshInterAction.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterfaceTest/UIComponentOtherRefreshInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterfaceTest/UIComponentOtherRefreshInterface.test.ets
index 5243db1f0b868ca6b54197d73bfb65d499e168e5..420a2ff63b1fb1fe6a8d64bbe1bb8231c4615b4c 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterfaceTest/UIComponentOtherRefreshInterface.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterfaceTest/UIComponentOtherRefreshInterface.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshPromptTextTest/UIComponentOtherRefreshPromptText.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshPromptTextTest/UIComponentOtherRefreshPromptText.test.ets
index f1c73b54f9e9d514fe6d425f5bc1449316efd3d7..2ce26aa889e754d4db62bda9610e5affc6b1afa9 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshPromptTextTest/UIComponentOtherRefreshPromptText.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshPromptTextTest/UIComponentOtherRefreshPromptText.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxActionSheetScenariosTest/UIComponentPopupBoxActionSheetScenarios.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxActionSheetScenariosTest/UIComponentPopupBoxActionSheetScenarios.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fe2278f1bde2652ca35002038ec66953a3b1b32e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxActionSheetScenariosTest/UIComponentPopupBoxActionSheetScenarios.test.ets
@@ -0,0 +1,143 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+import { Component, Driver, ON } from '@ohos.UiTest'
+
+export default function UIComponentPopupBoxActionSheetScenarios() {
+
+ describe('UIComponentPopupBoxActionSheetScenarios', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0070
+ * @tc.desc 列表选择弹窗ActionSheet,参数title设置多个字符串
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0070")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0070 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0060
+ * @tc.desc 列表选择弹窗ActionSheet,参数在列表弹窗中title为string类型"title"
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0060")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0050
+ * @tc.desc 列表选择弹窗ActionSheet,参数在列表弹窗中title为Resource类型$r("app.string.title")
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0050")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0050 finish.`);
+ done();
+ })
+
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0080
+ * @tc.desc 列表选择弹窗ActionSheet,参数在列表弹窗中title设置设置多个title
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0080 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0080")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0080 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0110
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0110
+ * @tc.desc 列表选择弹窗ActionSheet,弹出子窗口列表选择弹窗后,点击确认退出子窗口
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0110 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0110")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ let confirm: Component = await driver.findComponent(ON.text('Confirm'));
+ confirm.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_SCENARIOS_0110 finish.`);
+ done();
+ })
+
+
+ })
+}
\ No newline at end of file
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..f2f75e055497e3e67e977e306dbc566447122867
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxButtonStyleTest/UIComponentPopupBoxButtonStyle.test.ets
@@ -0,0 +1,124 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+
+import { Component, Driver ,ON } from '@ohos.UiTest'
+
+/*
+ * UIComponentPopupBoxButtonStyle
+ *
+ * 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 UIComponentPopupBoxButtonStyle() {
+
+ describe('UIComponentPopupBoxButtonStyle', () => {
+ afterEach(async (done: Function) => {
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ afterEach(async (done: Function) => {
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0090
+ * @tc.desc 验证datePickerDialog中acceptButtonStyle、cancelButtonStyle对象下的所有参数设置为异常值,textPickerDialog展示的效果是否以默认值的效果展示
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0090_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxButtonStyle/UIComponentPopupBoxButtonStyle0090");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('btn1'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0090
+ * @tc.desc 验证datePickerDialog中acceptButtonStyle、cancelButtonStyle对象下的所有参数设置为异常值,textPickerDialog展示的效果是否以默认值的效果展示
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0090_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxButtonStyle/UIComponentPopupBoxButtonStyle0090");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('btn2'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0080
+ * @tc.desc 验证datePickerDialog中acceptButtonStyle、cancelButtonStyle对象中设置了所有的参数,cancel和accept按钮以设置的属性值展示
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_BUTTONSTYLE_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxButtonStyle/UIComponentPopupBoxButtonStyle0080");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('btn1'));
+ 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/UIComponentPopupBoxCustomDialogInterfaceTest/UIComponentPopupBoxCustomDialogInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxCustomDialogInterfaceTest/UIComponentPopupBoxCustomDialogInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..79343f9c81135c346cd859279a2e4d021671188d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxCustomDialogInterfaceTest/UIComponentPopupBoxCustomDialogInterface.test.ets
@@ -0,0 +1,450 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIComponentPopupBoxCustomDialogInterface(){
+
+ describe('UIComponentPopupBoxCustomDialogInterface', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0090
+ * @tc.desc SafeAreaEdges扩展方向-TOP,BOTTOM
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0090', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0090");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0020
+ * @tc.desc SafeAreaEdges扩展方向-BOTTOM
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0020");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0050
+ * @tc.desc SafeAreaEdges 扩展方向-END
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0050");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0060
+ * @tc.desc SafeAreaEdges 扩展方向-START
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0060");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0110
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0110
+ * @tc.desc SafeAreaEdges避让方向-TOP,START
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0110', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0110");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0030
+ * @tc.desc SafeAreaEdges 避让方向-BOTTOM, END
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0030");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0040
+ * @tc.desc SafeAreaEdges避让方向-BOTTOM, START
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0040");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0220
+ * @tc.desc SafeAreaType 扩展类型-无
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0220");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ const textInput:Component = await driver.findComponent(ON.id("textInput"));
+ await textInput.inputText("test");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0100
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0100
+ * @tc.desc SafeAreaEdges避让方向-TOP,END
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0100', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0100");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0160
+ * @tc.desc SafeAreaType 避让类型-KEYBOARD
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0160");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ const textInput:Component = await driver.findComponent(ON.id("textInput"));
+ await textInput.inputText("test");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0010
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0010
+ * @tc.desc SafeAreaEdges 扩展方向-ALL
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0010");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0180
+ * @tc.desc SafeAreaType避让类型-SYSTEM
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0180");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0120
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0120
+ * @tc.desc SafeAreaEdges 扩展方向-undefined
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0120', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0120");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0170
+ * @tc.desc SafeAreaType 避让类型-NONE
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0170");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0070
+ * @tc.desc SafeAreaEdges扩展方向-START, END
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0070");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0130
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0130
+ * @tc.desc SafeAreaType避让类型-all
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0130', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0130");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0140
+ * @tc.desc SafeAreaType 避让类型-CUTOUT
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0140");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0150
+ * @tc.desc SafeAreaType 避让类型-CUTOUT, KEYBOARD
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0150");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0200
+ * @tc.desc SafeAreaType 避让类型-SYSTEM, KEYBOARD
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0200");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0080
+ * @tc.desc SafeAreaEdges 避让方向-TOP
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0080");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0190
+ * @tc.desc SafeAreaType 避让类型-SYSTEM, CUTOUT
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0190', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0190");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0210
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0210
+ * @tc.desc SafeAreaType 避让类型-undefined
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0210', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0210");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0230
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0230
+ * @tc.desc SafeArea参数动态改变
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_INTERFACE_0230', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0230");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open: Component = await driver.findComponent(ON.id('open'));
+ const group1:Component = await driver.findComponent(ON.id("group1"));
+ const group2:Component = await driver.findComponent(ON.id("group2"));
+ await open.click();
+ await Utils.sleep(1000);
+ await driver.click(10,10);
+ await Utils.sleep(2000);
+ await group1.click()
+ await Utils.sleep(1000);
+ await group2.click()
+ await Utils.sleep(1000);
+ await open.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxCustomDialogScenariosTest/UIComponentPopupBoxCustomDialogScenarios.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxCustomDialogScenariosTest/UIComponentPopupBoxCustomDialogScenarios.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..364058714e53f2993241a632e0ff9f3e22d3c658
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxCustomDialogScenariosTest/UIComponentPopupBoxCustomDialogScenarios.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'
+import { KeyCode } from '@kit.InputKit'
+
+/*
+ * SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0010:设置文本颜色
+ *
+ * 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 UIComponentPopupBoxCustomDialogScenarios() {
+
+ describe('UIComponentPopupBoxCustomDialogScenarios', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0580', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0580 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0580");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0580_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0580_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_V);
+ await Utils.sleep(100);
+ await driver.triggerKey(KeyCode.KEYCODE_V);
+ await Utils.sleep(100);
+ await driver.triggerKey(KeyCode.KEYCODE_V);
+ await Utils.sleep(100);
+ await driver.screenCapture('/data/storage/el2/base/haps/entry_test/files/IMG_test.png', {
+ left: 0,
+ top: 100,
+ right: 1260,
+ bottom: 2720
+ })
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0580 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0640', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0640 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0640");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0640_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0640_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.screenCapture('/data/storage/el2/base/haps/entry_test/files/IMG_test.png', {
+ left: 0,
+ top: 100,
+ right: 1260,
+ bottom: 2720
+ })
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0640 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0600', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0600 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0600");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0600_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0600_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.screenCapture('/data/storage/el2/base/haps/entry_test/files/IMG_test.png', {
+ left: 0,
+ top: 100,
+ right: 1260,
+ bottom: 2720
+ })
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0600 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0070");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0070_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ let buttonClose = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0070_002'));
+ await Utils.sleep(1000);
+ await buttonClose.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ let buttonOnceMore = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0070_002'));
+ await buttonOnceMore.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0070 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0570', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0570 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0570");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0570_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0570_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.screenCapture('/data/storage/el2/base/haps/entry_test/files/IMG_test.png', {
+ left: 0,
+ top: 100,
+ right: 1260,
+ bottom: 2720
+ })
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0570 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0630', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0630 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0630");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0630_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0630_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.screenCapture('/data/storage/el2/base/haps/entry_test/files/IMG_test.png', {
+ left: 0,
+ top: 100,
+ right: 1260,
+ bottom: 2720
+ })
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0630 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0510', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0510 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0510");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0510_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_CUSTOMDIALOG_SCENARIOS_0510 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0060_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0060_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0060");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0060_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0060_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0060_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0060_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0060");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0060_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0060_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0550', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0550 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0550");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0550_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0550_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.screenCapture('/data/storage/el2/base/haps/entry_test/files/IMG_test.png', {
+ left: 0,
+ top: 100,
+ right: 1260,
+ bottom: 2720
+ })
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0550 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0520', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0520 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0520");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0520_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_CUSTOMDIALOG_SCENARIOS_0520 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0590', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0590 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0590");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0590_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0590_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.screenCapture('/data/storage/el2/base/haps/entry_test/files/IMG_test.png', {
+ left: 0,
+ top: 100,
+ right: 1260,
+ bottom: 2720
+ })
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0590 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0500', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0500 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0500");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0500_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_CUSTOMDIALOG_SCENARIOS_0500 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0620', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0620 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0620");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0620_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_CUSTOMDIALOG_SCENARIOS_0620 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0540', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0540 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0540");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0540_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0540_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0540 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0610', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0610 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0610");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0610_001'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UIComponentPopupBoxCustomDialogScenarios0610_002'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.screenCapture('/data/storage/el2/base/haps/entry_test/files/IMG_test.png', {
+ left: 0,
+ top: 100,
+ right: 1260,
+ bottom: 2720
+ })
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0610 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0560', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0560 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0560");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+
+ let button1 = await driver.findComponent(ON.id('input'));
+ await Utils.sleep(100);
+ await button1.inputText('输入法测试');
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0560 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0050");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(100);
+ await button.click();
+ await Utils.sleep(1000);
+
+ let button1 = await driver.findComponent(ON.id('input'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CUSTOMDIALOG_SCENARIOS_0050 finish.`);
+ done();
+ });
+
+
+
+
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxModalTransitionAnimationTest/UIComponentPopupBoxModalTransitionAnimation.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxModalTransitionAnimationTest/UIComponentPopupBoxModalTransitionAnimation.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f25eab2a6cf7d5c893240990fddc42e8e261d124
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxModalTransitionAnimationTest/UIComponentPopupBoxModalTransitionAnimation.test.ets
@@ -0,0 +1,81 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+
+import { Component, Driver ,ON } from '@ohos.UiTest'
+import { util } from '@kit.ArkTS'
+
+/*
+ * UIComponentPopupBoxModalTransitionAnimation
+ *
+ * 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 UIComponentPopupBoxModalTransitionAnimation() {
+
+ describe('UIComponentPopupBoxModalTransitionAnimation', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_ANIMATION_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_ANIMATION_0020
+ * @tc.desc 打开半模态弹窗的过程中左滑关闭/关闭按钮关闭/点击蒙层关闭/下拉关闭
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_ANIMATION_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionAnimation/UIComponentPopupBoxModalTransitionAnimation0020");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('button'));
+ await showButton.click();
+ await Utils.sleep(500);
+ await driver.pressBack();
+ 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/UIComponentPopupBoxModalTransitionModeTest/UIComponentPopupBoxModalTransitionMode.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxModalTransitionModeTest/UIComponentPopupBoxModalTransitionMode.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d03ee84ace0f0a483af57d4e641abb2345c5459d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxModalTransitionModeTest/UIComponentPopupBoxModalTransitionMode.test.ets
@@ -0,0 +1,473 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { afterEach, describe, it } from '@ohos/hypium';
+import Settings from '../model/Settings';
+import Utils from '../model/Utils';
+import windowSnap from '../model/snapShot';
+import { Driver, ON } from '@ohos.UiTest';
+import { window } from '@kit.ArkUI';
+import Logger from '../model/Logger';
+
+export default function UIComponentPopupBoxModalTransitionModeTest() {
+ describe('UIComponentPopupBoxModalTransitionModeTest', () => {
+
+ afterEach(async (done:Function)=>{
+ if (Settings.windowClass == undefined) {
+ return
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`)
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0050
+ * @tc.desc BindSheet挂载在Page下且mode设置为EMBEDDED,半模态弹窗在页面内顶层展示
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050A");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bottom = await driver.findComponent(ON.id('Bottom'));
+ await bottom.click();
+ await Utils.sleep(1000);
+ const input1 = await driver.findComponent(ON.id("textInput1"));
+ await input1.inputText("textInput1")
+ await Utils.sleep(1000);
+ const router = await driver.findComponent(ON.id('router'));
+ await router.click();
+ await Utils.sleep(1000);
+ const back = await driver.findComponent(ON.id('back'));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0010
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0010
+ * @tc.desc BindSheet挂载在Bindsheet内的navDestination下且mode设置为EMBEDDED.半模态弹窗在页面内顶层展示
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010A");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const open = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ const router1 = await driver.findComponent(ON.id("router1"));
+ await router1.click();
+ await Utils.sleep(1000);
+ const navDestination = await driver.findComponent(ON.id('navDestination'));
+ await navDestination.click();
+ await Utils.sleep(1000);
+ const button = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ const router2 = await driver.findComponent(ON.id('router2'));
+ await router2.click();
+ await Utils.sleep(1000);
+ const back = await driver.findComponent(ON.id('back'));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0040
+ * @tc.desc BindSheet挂载在navDestination下且不设置mode
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0040");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const navDestination = await driver.findComponent(ON.id('navDestination'));
+ await navDestination.click();
+ await Utils.sleep(1000);
+ const bottom = await driver.findComponent(ON.id('open'));
+ await bottom.click();
+ await Utils.sleep(1000);
+ const input1 = await driver.findComponent(ON.id("textInput1"));
+ await input1.inputText("textInput1")
+ await Utils.sleep(1000);
+ const router = await driver.findComponent(ON.id('router1'));
+ await router.click();
+ await Utils.sleep(1000);
+ const back = await driver.findComponent(ON.id('back'));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0060
+ * @tc.desc BindSheet挂载在Page下且mode设置为OVERLAY
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0060A");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('push'));
+ await bt.click();
+ await Utils.sleep(1000);
+ const center = await driver.findComponent(ON.id('Center'));
+ await center.click();
+ await Utils.sleep(1000);
+ const pop = await driver.findComponent(ON.id('pop'));
+ await pop.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0030
+ * @tc.desc BindSheet挂载在navDestination下且mode设置为OVERLAY
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0030");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const navDestination = await driver.findComponent(ON.id('navDestination'));
+ await navDestination.click();
+ await Utils.sleep(1000);
+ const center = await driver.findComponent(ON.id('Center'));
+ await center.click();
+ await Utils.sleep(1000);
+ const bt = await driver.findComponent(ON.id('push'));
+ await bt.click();
+ await Utils.sleep(1000);
+ const back = await driver.findComponent(ON.id('back'));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0070
+ * @tc.desc BindSheet挂载在Page下且不设置mode
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0070");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bottom = await driver.findComponent(ON.id('open'));
+ await bottom.click();
+ await Utils.sleep(1000);
+ const input1 = await driver.findComponent(ON.id("textInput1"));
+ await input1.inputText("textInput1")
+ await Utils.sleep(1000);
+ const router = await driver.findComponent(ON.id('router1'));
+ await router.click();
+ await Utils.sleep(1000);
+ const back = await driver.findComponent(ON.id('back'));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0280
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0280
+ * @tc.desc 验证mode属性不支持动态改变
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0280', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0280");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const open = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ const router1 = await driver.findComponent(ON.id("router1"));
+ await router1.click()
+ await Utils.sleep(1000);
+ const back1 = await driver.findComponent(ON.id('back'));
+ await back1.click();
+ await Utils.sleep(1000);
+ const change = await driver.findComponent(ON.id('change'));
+ await change.click();
+ await Utils.sleep(1000);
+ await open.click();
+ await Utils.sleep(1000);
+ const router2 = await driver.findComponent(ON.id("router1"));
+ await router2.click()
+ await Utils.sleep(1000);
+ const back2 = await driver.findComponent(ON.id('back'));
+ await back2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0210
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0210
+ * @tc.desc 验证BindSheet中mode设置为OVERLAY符合半模态原有的导航条规格
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0210', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0210");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const open = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await driver.swipe(192,664,192,83)
+ await Utils.sleep(2000);
+ await driver.swipe(192,664,192,83)
+ await Utils.sleep(4000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0190
+ * @tc.desc 验证BindSheet中mode设置为EMBEDDED符合半模态原有的导航条规格
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0190', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0190");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const open = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ await driver.swipe(192,664,170,83,3000)
+ await Utils.sleep(500);
+ await driver.swipe(192,664,170,83,3000)
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0250
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0250
+ * @tc.desc 验证BindSheet设置了mode属性后,弹出半模态拉走输入法后跳转到新的页面后再退出,半模态此时页面显示正常
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0250', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0250");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const open = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ const input = await driver.findComponent(ON.id("textInput1"));
+ await input.inputText("text")
+ await Utils.sleep(500);
+ const router = await driver.findComponent(ON.id("router1"));
+ await router.click();
+ await Utils.sleep(1000);
+ const back = await driver.findComponent(ON.id("back"));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0230
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0230
+ * @tc.desc 验证BindSheet设置了mode属性不影响半模态其他属性的渲染
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0230', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0230");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const open = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ const router = await driver.findComponent(ON.id("router1"));
+ await router.click();
+ await Utils.sleep(1000);
+ const back = await driver.findComponent(ON.id("back"));
+ await back.click();
+ await Utils.sleep(500);
+ await driver.click(10,10);
+ await Utils.sleep(1000);
+ const title = await driver.findComponent(ON.id("title"));
+ const height = await driver.findComponent(ON.id("height"));
+ const switch1 = await driver.findComponent(ON.id("switch"));
+ await title.inputText("new")
+ await Utils.sleep(1000);
+ await height.inputText("200");
+ await Utils.sleep(1000);
+ await switch1.click()
+ await Utils.sleep(1000);
+ await open.click();
+ await Utils.sleep(1000);
+ const router2 = await driver.findComponent(ON.id("router1"));
+ await router2.click();
+ await Utils.sleep(1000);
+ const back2 = await driver.findComponent(ON.id("back"));
+ await back2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0170
+ * @tc.desc 验证BindSheet中mode设置为EMBEDDED在沉浸模式下,蒙层包含状态栏和导航条【设置为EMBEDDED,半模态默认为非沉浸式】。注意:测试之前需要前往ability的windowStage中将窗口设置为全屏
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0170");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const open = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ const router = await driver.findComponent(ON.id("router1"));
+ await router.click();
+ await Utils.sleep(1000);
+ const back = await driver.findComponent(ON.id("back"));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0180
+ * @tc.desc 验证BindSheet中mode设置为EMBEDDED挂载在非全屏下的navDestination下,拉起半模态后显示的页面正常
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0180");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const navDestination = await driver.findComponent(ON.id("navDestination"));
+ await navDestination.click();
+ await Utils.sleep(1000);
+ const open = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ const text = await driver.findComponent(ON.id("textInput1"));
+ await text.inputText("test")
+ await Utils.sleep(1000);
+ const router = await driver.findComponent(ON.id("router1"));
+ await router.click();
+ await Utils.sleep(1000);
+ const back = await driver.findComponent(ON.id("back"));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0080
+ * @tc.desc BindSheet挂载在sheet内的navDestination下且mode设置为OVERLAY
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080A");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const open = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ const router1 = await driver.findComponent(ON.id('router1'));
+ await router1.click();
+ await Utils.sleep(1000);
+ const navDestination = await driver.findComponent(ON.id('navDestination'));
+ await navDestination.click();
+ await Utils.sleep(1000);
+ const open2 = await driver.findComponent(ON.id('open'));
+ await open2.click();
+ await Utils.sleep(1000);
+ const router2 = await driver.findComponent(ON.id('router2'));
+ await router2.click();
+ await Utils.sleep(1000);
+ const back = await driver.findComponent(ON.id("back"));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0110
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0110
+ * @tc.desc 平板设备下验证BindSheet中mode设置为EMBEDDED符合半模态原有的软键盘规格
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0110', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0110");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const open = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ const textInput1 = await driver.findComponent(ON.id('textInput1'));
+ await textInput1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0120
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0120
+ * @tc.desc 平板设备下验证BindSheet中mode设置为OVERLAY符合半模态原有的软键盘规格
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_MODE_0120', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0120");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const open = await driver.findComponent(ON.id('open'));
+ await open.click();
+ await Utils.sleep(1000);
+ const textInput1 = await driver.findComponent(ON.id('textInput1'));
+ await textInput1.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/UIComponentPopupBoxModalTransitionStrongTest/UIComponentPopupBoxModalTransitionStrong.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxModalTransitionStrongTest/UIComponentPopupBoxModalTransitionStrong.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0efe32efb1fcdcfc139a4a779e5080cd1181312e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxModalTransitionStrongTest/UIComponentPopupBoxModalTransitionStrong.test.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 { 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 UIComponentPopupBoxModalTransitionStrong() {
+ describe('UIComponentPopupBoxModalTransitionStrong', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_STRONG_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_STRONG_0160
+ * @tc.desc 验证全模态退出过程中点击按钮可响应点击事件【duration设置为5000ms】
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_STRONG_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxModalTransitionStrong/UIComponentPopupBoxModalTransitionStrong0160");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('BindContentCover'));
+ await button.click();
+ await Utils.sleep(5000);
+ let button1 = await driver.findComponent(ON.text('Exit'));
+ await button1.click();
+ await Utils.sleep(5000);
+ done();
+ })
+ })
+}
\ No newline at end of file
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..587615c2cf3eb622d9ca8b921187bccc37fb2626
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPickerOldTest/UIComponentPopupBoxPickerOld.test.ets
@@ -0,0 +1,137 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+
+import { Component, Driver ,ON } from '@ohos.UiTest'
+
+export default function UIComponentPopupBoxPickerOld() {
+
+ describe('UIComponentPopupBoxPickerOld', () => {
+
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0620
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0620
+ * @tc.desc DatePicker组件验证设置宽度为undefined,高度为undefined的情况下,DatePicker的宽高取值
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0620', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0620");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0600
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0600
+ * @tc.desc DatePicker组件验证设置宽度为250vp.高度为180vp的情况下,DatePicker的宽高取值
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0600', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0600");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0610
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0610
+ * @tc.desc DatePicker组件验证设置宽度为400vp,高度为400vp的情况下,DatePicker的宽高取值
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0610', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0610");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0270
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0270
+ * @tc.desc CalendarPicker组件验证设置宽度为400vp,高度为50vp的情况下,CalendarPicker入口区的宽高取值
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0270', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0270");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let clickCalendarPicker = await driver.findComponent(ON.id('ComponentCalendarPicker'));
+ await clickCalendarPicker.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0280
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0280
+ * @tc.desc CalendarPicker组件验证设置宽度为undefined,高度为undefined的情况下,CalendarPicker入口区的宽高取值
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0280', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0280");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let clickCalendarPicker = await driver.findComponent(ON.id('ComponentCalendarPicker'));
+ await clickCalendarPicker.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0260
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0260
+ * @tc.desc CalendarPicker组件验证设置宽度为300vp,高度为30vp的情况下,CalendarPicker入口区的宽高取值
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_PICKEROLD_0260', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0260_1");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('click'));
+ 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/UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test.ets
index d1ef9fb3eb5b5fd0fd601ff3a9108f0bbdf14aec..e6e8742b6f1c48fc2a44381cdd83b6ec7ef8a3e0 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test.ets
@@ -18,7 +18,7 @@ import Logger from '../model/Logger'
import Settings from '../model/Settings'
import Utils from '../model/Utils'
import windowSnap from '../model/snapShot'
-import { Driver, ON } from '@ohos.UiTest'
+import { Driver, ON, Component, Point, Rect } from '@ohos.UiTest'
/*
* Settings.createWindow(config.url):
@@ -36,7 +36,22 @@ import { Driver, ON } from '@ohos.UiTest'
export default function UIComponentPopupBoxSpecificationsShadow() {
describe('UIComponentPopupBoxSpecificationsShadow', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
/*
@@ -59,6 +74,223 @@ export default function UIComponentPopupBoxSpecificationsShadow() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0550
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0550
+ * @tc.desc test DatePickerDialog shadow
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0550', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0550 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow055")
+ 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_0550 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0470
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0470
+ * @tc.desc test DatePickerDialog shadow
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0470', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0470 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow047")
+ 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_0470 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0480
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0480
+ * @tc.desc test DatePickerDialog shadow
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0480', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0480 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow048")
+ 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_0480 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0490
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0490
+ * @tc.desc test DatePickerDialog shadow
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0490', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0490 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow049")
+ 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_0490 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0930
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0930
+ * @tc.desc test DatePickerDialog shadow
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0930', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0930 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow093")
+ 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_0930 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0450
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0450
+ * @tc.desc test DatePickerDialog shadow
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0450', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0450 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow045")
+ 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_0450 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0520
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0520
+ * @tc.desc test DatePickerDialog shadow
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0520', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0520 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow052")
+ 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_0520 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0530
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0530
+ * @tc.desc test DatePickerDialog shadow
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0530', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0530 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow053")
+ 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_0530 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0570
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0570
+ * @tc.desc test DatePickerDialog shadow
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0570', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0570 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow057")
+ 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_0570 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0860
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0860
+ * @tc.desc test DatePickerDialog shadow
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0860', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0860 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow086")
+ 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_0860 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0440
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0440
+ * @tc.desc CalendarPickerDialog配置shadow ({radius: 引用$r("app.integer.integer30")30vp, type:Shadow Type. 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_0440', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0440");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ComponentCalendarPicker'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0170
* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0170
@@ -79,6 +311,23 @@ export default function UIComponentPopupBoxSpecificationsShadow() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0420
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0420
+ * @tc.desc CalendarPickerDialog配置shadow({radius:引用$r("app.integer.integer100")100vp, type:ShadowType.COLOR, color:ColoringStrategy.PRIMARYoffsetX:$r("app.integer.string30”)30vp, offsety:$r("app.integer.string30”)30vp,fill: false})
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0420', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0420");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ComponentCalendarPicker'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0120
* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0120
@@ -99,6 +348,23 @@ export default function UIComponentPopupBoxSpecificationsShadow() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0430
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0430
+ * @tc.desc CalendarPickerDialog配置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_0430', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0430");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ComponentCalendarPicker'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0180
* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0180
@@ -119,6 +385,23 @@ export default function UIComponentPopupBoxSpecificationsShadow() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0990
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0990
+ * @tc.desc 设置默认值CalendarPickerDialog配置shadow(ShadowStyle.OUTER_DEFAULT_MD)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0990', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0990");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ComponentCalendarPicker'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0130
* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0130
@@ -139,6 +422,23 @@ export default function UIComponentPopupBoxSpecificationsShadow() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0400
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0400
+ * @tc.desc CalendarPickerDialog配置shadow({radius:引用$r("app.integer.integer100”)100vp, type:ShadowType.COLOR, color:ColoringStrategy.AVERAGEoffsetX:$r("app.integer.string30")30vp, offsety:$r("app.integer.string30")30vp,fill: false})
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0400', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0400");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ComponentCalendarPicker'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0140
* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0140
@@ -159,6 +459,23 @@ export default function UIComponentPopupBoxSpecificationsShadow() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0390
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0390
+ * @tc.desc CalendarPickerDialog配置shadow ({radius: 30vp, type:ShadowType.COLOR, color:Color.Black, offsetX:30vp,offsety:30vp,fill:true})
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0390', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0390");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ComponentCalendarPicker'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0160
* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0160
@@ -179,6 +496,23 @@ export default function UIComponentPopupBoxSpecificationsShadow() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0340
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0340
+ * @tc.desc CalendarPickerDialog配置shadow(ShadowStyle.OUTER_DEFAULTLG)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0340', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0340");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ComponentCalendarPicker'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0210
* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0210
@@ -199,6 +533,23 @@ export default function UIComponentPopupBoxSpecificationsShadow() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0360
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0360
+ * @tc.desc CalendarPickerDialog配置shadow(ShadowStyle.OUTER_DEFAULT_XS)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0360', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0360");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ComponentCalendarPicker'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0220
* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0220
@@ -219,6 +570,23 @@ export default function UIComponentPopupBoxSpecificationsShadow() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0850
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0850
+ * @tc.desc undefind: CalendarPickerDialog配置shadow (undefind)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0850', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0850");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ComponentCalendarPicker'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0830
* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0830
@@ -238,5 +606,153 @@ export default function UIComponentPopupBoxSpecificationsShadow() {
Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0830 finish.`);
done();
})
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0370
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0370
+ * @tc.desc CalendarPickerDialog配置shadow(ShadowStyle.OUTER_FLOATING_MD)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0370', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0370");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ComponentCalendarPicker'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0920
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0920
+ * @tc.desc 不配置:CalendarPickerDialog不配置shadow
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0920', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0920");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ComponentCalendarPicker'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0560
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0560
+ * @tc.desc null:CalendarPickerDialog配置shadow(null)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0560', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0560 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0560")
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('CalendarPickerDialog'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0560 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1000
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1000
+ * @tc.desc 设置默认值:DatePickerDialog配置shadow(ShadowStyle.OUTER_DEFAULTMD)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1000', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1000 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow1000")
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('DatePickerDialog'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_1000 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0380
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0380
+ * @tc.desc CalendarPickerDialog配置shadow(ShadowStyle.OUTER_FLOATING_SM)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0380', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0380 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0380")
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('CalendarPickerDialog'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0380 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0350
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0350
+ * @tc.desc CalendarPickerDialog配置shadow(ShadowStyle.OUTER_FLOATING_SM)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0350', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0350 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0350")
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('CalendarPickerDialog'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0350 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0500
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0500
+ * @tc.desc CalendarPickerDialog配置shadow(ShadowStyle.OUTER_FLOATING_SM)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0500', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0500 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0500")
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('button'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0500 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0510
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0510
+ * @tc.desc CalendarPickerDialog配置shadow(ShadowStyle.OUTER_FLOATING_SM)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0510', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0510 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0510")
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('button'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0500 finish.`);
+ done()
+ })
})
}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxActionSheetInterfaceTest/UIComponentPopupboxActionSheetInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxActionSheetInterfaceTest/UIComponentPopupboxActionSheetInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..438858dccbab5c7b879dedf73736e46e2fbc8bc2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxActionSheetInterfaceTest/UIComponentPopupboxActionSheetInterface.test.ets
@@ -0,0 +1,796 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+
+import { Component, Driver ,ON } from '@ohos.UiTest'
+
+export default function UIComponentPopupboxActionSheetInterface() {
+
+ describe('UIComponentPopupboxActionSheetInterface', () => {
+
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0260
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0260
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheets,参数message设置超长
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0260 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0260")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0260 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0220_1
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0220_1
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheetsconfirm,参数confirm设置value(string类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0220_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0220_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0220")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0220_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0220_2
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0220_2
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheetsconfirm,参数confirm设置value(string类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0220_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0220_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0220")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ let confirm: Component = await driver.findComponent(ON.text('Confirm'));
+ confirm.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0220_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0080_1
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0080_1
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheets、confrirm、 alignment、offset,参数offset设置(dx,dy} 偏移量string类型.
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0080_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0080_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0080")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0080_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0080_2
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0080_2
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheets、confrirm、 alignment、offset,参数offset设置(dx,dy} 偏移量string类型.
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0080_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0080_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0080")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ let confirm: Component = await driver.findComponent(ON.text('Confirm'));
+ confirm.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0080_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0050_1
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0050_1
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheets、confrm、alignment、ofset,参数offset设置{dx,dy} 偏移量number类型(默认单位为vp)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0050_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0050_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0050")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0050_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0050_2
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0050_2
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheets、confrirm、 alignment、offset,参数offset设置(dx,dy} 偏移量string类型.
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0050_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0050_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0050")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ let confirm: Component = await driver.findComponent(ON.text('Confirm'));
+ confirm.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0050_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0350
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0350
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheets,参数title设置超长
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0350', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0350 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0350")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0350 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0070_1
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0070_1
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheets、confirm、alignment、offset, 参数offset设置{dx,dy} 偏移量string类型
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0070_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0070_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0070")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0070_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0070_2
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0070_2
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheets、confirm、alignment、offset, 参数offset设置{dx,dy} 偏移量string类型
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0070_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0070_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0070")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ let confirm: Component = await driver.findComponent(ON.text('Confirm'));
+ confirm.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0070_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0210_1
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0210_1
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheets、confirm,参数confirm设置value(Resource类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0210_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0210_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0210")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0210_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0210_2
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0210_2
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheets、confirm,参数confirm设置value(Resource类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0210_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0210_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0210")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ let confirm: Component = await driver.findComponent(ON.text('Confirm'));
+ confirm.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0210_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0200_1
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0200_1
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheets、confirm、autoCancel(true)、cancel
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0200_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0200_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0200")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0200_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0200_2
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0200_2
+ * @tc.desc 列表选择弹窗ActionSheet,配置参数title、message、sheets、confirm、autoCancel(true)、cancel
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0200_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0200_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0200")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ let maskClick: Component = await driver.findComponent(ON.id('maskClick'));
+ maskClick.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0200_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0520
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0520
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUlContext()获取uniconten 对象,调用showActionSheet0方法,创建列表选择弹窗,设置内容message、confirm. autoCancel(true)、cancel,设置弹窗在竖直方向上的对齐方式DialogAlignment(TopEnd)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0520', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0520 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0520")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0520 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0500
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0500
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUlContext()获取uniconten 对象,调用showActionSheet0方法,创建列表选择弹窗,设置内容message、confirm、 autoCancel(true)、cancel,设置弹窗在竖直方向上的对齐方式DialogAlignment(Center)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0500', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0500 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0500")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0500 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0400
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0400
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUlContext0获取uniconten 对象,调用showActionSheet0方法,创建列表选择弹窗,设置内容message、confirm、 autoCancel(true)、cancel,设置弹窗列表项sheets[a.b.c..]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0400', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0400 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0400")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0400 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0550_1
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0550_1
+ * @tc.desc 通过 getUlContext()获取unicontent 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm、confirm设置value及action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0550_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0550_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0550")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0550_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0550_2
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0550_2
+ * @tc.desc 通过 getUlContext()获取unicontent 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm、confirm设置value及action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0550_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0550_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0550")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ let confirmOK: Component = await driver.findComponent(ON.text('OK'));
+ await confirmOK.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0550_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0530
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0530
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUlContext()获取uniconten 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm、 autoCancel(true)、cancel,设置弹窗在竖直方向上的对齐方式DialogAlignment(TopStart)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0530', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0530 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0530")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0530 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0410_1
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0410_1
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUIContext()获取unicontent 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel,设置弹窗列表项sheets[a,b,...],列表项设置title、icon、action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0410_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0410_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0410")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0410_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0410_2
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0410_2
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUIContext()获取unicontent 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel,设置弹窗列表项sheets[a,b,...],列表项设置title、icon、action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0410_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0410_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0410")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ let actionSheetItem: Component = await driver.findComponent(ON.text('apples'));
+ await actionSheetItem.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0410_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0370_1
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0370_1
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUlContext()获取unicontent 对象,调用showActionSheet0方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0370_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0370_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0370")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0370_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0370_2
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0370_2
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUlContext()获取unicontent 对象,调用showActionSheet0方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0370_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0370_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0370")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ let maskClick: Component = await driver.findComponent(ON.id('maskClick'));
+ await maskClick.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0370_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0390
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0390
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUlContext()获取uniconten 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel,设置弹窗列表项sheets(undefined)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0390', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0390 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0390")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0390 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0490
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0490
+ * @tc.desc 通过 getUlContext()获取uniconten 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)cancel,设置弹窗在竖直方向上的对齐方式DialogAlignment(CenterStart)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0490', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0490 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0490")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0490 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0510
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0510
+ * @tc.desc 通过 getUlContext()获取uniconten 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)cancel,设置弹窗在竖直方向上的对齐方式DialogAlignment(CenterStart)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0510', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0510 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0510")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0510 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0360_1
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0360_1
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUlContext()获取unicontent 对象,调用showActionSheet0方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0360_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0360_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0360")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0360_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0360_2
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0360_2
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUIContext()获取unicontent 对象,调用showActionSheet0方法,创建列表选择弹窗,设置内容message、autoCancel(false)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0360_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0360_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0360")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ let maskClick: Component = await driver.findComponent(ON.id('maskClick'));
+ await maskClick.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0360_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0540
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0540
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUlContext()获取uniconten 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autocancel(true)、cancel,设置弹窗在竖直方向上的对齐方式DialogAlignment
+(Top)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0540', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0540 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0540")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0540 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0460
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0460
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUlContext()获取unicontent 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel,设置弹窗在竖直方向上的对齐方式DialogAlignment(BottomStart)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0460', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0460 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0460")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0460 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0450
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0450
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUlContext()获取unicontent 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel,设置弹窗在竖直方向上的对齐方式DialogAlignment(BottomEnd)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0450', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0450 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0450")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0450 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0470
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0470
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUlContext()获取uniconten 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel,设置弹窗在竖直方向上的对齐方式DialogAlignment(Bottom)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0470', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0470 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0470")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0470 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0430
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0430
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUIContext()获取unicontent 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel,设置弹窗在竖直方向上的对齐方式DialogAlignment、offset偏移
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0430', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0430 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0430")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0430 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0480
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0480
+ * @tc.desc 列表选择弹窗ActionSheet,通过 getUIContext()获取uniconten 对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel,设置弹窗在竖直方向上的对齐方式DialogAlignment
+(CenterEnd)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0480', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0480 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0480")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0480 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0440
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0440
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel,设置弹窗在竖直方向上的对齐方式DialogAlignment、offset偏移(px)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0440', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0440");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0380
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0380
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel,设置弹窗列表项sheets(null)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0380', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0380");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0420
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0420
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showActionSheet()方法,创建列表选择弹窗,设置内容message、confirm, autoCancel(true)、cancel,设置弹窗列表项sheets[]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ACTIONSHEET_INTERFACE_0420', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0420");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.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/UIComponentPopupboxAlertDialogInterfaceTest/UIComponentPopupboxAlertDialogInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxAlertDialogInterfaceTest/UIComponentPopupboxAlertDialogInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ace6c4778afff63f7a7ccc05d96a19dc6df7fd6b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxAlertDialogInterfaceTest/UIComponentPopupboxAlertDialogInterface.test.ets
@@ -0,0 +1,2320 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+import { Component, Driver, ON } from '@ohos.UiTest'
+
+/*
+ * UIComponentPopupboxAlertDialogInterface
+ *
+ * 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 UIComponentPopupboxAlertDialogInterface() {
+
+ describe('UIComponentPopupboxAlertDialogInterface', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0080
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWVithButtons参数alignment设置DialogAlignment.Top
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0080");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0040
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWVithButtons参数alignment设置DialogAlignment.Center
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0040");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0030
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWVithButtons参数alignment设置DialogAlignment.BottomStart
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0030");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0020
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWVithButtons参数alignment设置DialogAlignment.BottomEnd
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0020");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0070
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWVithButtons参数alignment设置DialogAlignment.Default
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0070");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0100
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0100
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWVithButtons参数alignment设置DialogAlignment.TopStart
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0100', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0100");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0060
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWVithButtons参数alignment设置DialogAlignment.CenterStart
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0060");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0090
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWVithButtons参数alignment设置DialogAlignment.TopEnd
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0090', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0090");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0050
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWVithButtons参数alignment设置DialogAlignment.CenterEnd
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0050");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0010
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0010
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWVithButtons参数alignment设置DialogAlignment.Bottom
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0010");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0220
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons参数offset设置{dx.dy} 偏移量number类型(默认单位为vp)。
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0220");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0740
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0740
+ * @tc.desc 确认按钮类型的警告弹窗AlertDialogParamWithConfirm,参数offset设置(dx,dy} 偏移量number类型(默认单位为vp)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0740', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0740");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0400
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0400
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数title设置Resource类型
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0400', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0400");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0190
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数message设置内容超长
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0190', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0190");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0120
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0120
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数autoCancel设置true
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0120_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0120");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0120
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0120
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数autoCancel设置true
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0120_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0120");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await driver.click(100, 100);
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0210
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0210
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数offset设置{dx,dy} 偏移量number类型(默认单位为vp).
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0210', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0210");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0670
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0670
+ * @tc.desc 确认按钮类型的警告弹窗AlertDialogParamWithConfirm,参数confirm设置value(string类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0670_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0670");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0670
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0670
+ * @tc.desc 确认按钮类型的警告弹窗AlertDialogParamWithConfirm,参数confirm设置value(string类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0670_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0670");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ let confirmButton = await driver.findComponent(ON.text('Confirm'));
+ await confirmButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0170
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数message设置Resource类型
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0170");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0250
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0250
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数offset设置(dx,dy} 偏移量string类型.
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0250', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0250");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0380
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0380
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数primaryButton、secondaryButton设置value(Resource类型)。
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0380_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0380");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0380
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0380
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数primaryButton、secondaryButton设置value(Resource类型)。
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0380_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0380");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ let confirmButton = await driver.findComponent(ON.text('Secondary'));
+ await confirmButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0830
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0830
+ * @tc.desc 确认按钮类型的警告弹窗AlertDialogParamWithConfrm,参数title设置内容超长
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0830', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0830");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0750
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0750
+ * @tc.desc 确认按钮类型的警告弹窗AlertDialogParamWithConfirm,参数offset设置{dx,dy} 偏移量number类型(默认单位为vp).
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0750', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0750");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0110
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0110
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数autoCancel设置false
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0110_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0110");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0110
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0110
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数autoCancel设置false
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0110_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0110");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await driver.click(100, 100);
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0200
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数offset设置{dx.dy} 偏移量number类型(默认单位为vp)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0200");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0660
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0660
+ * @tc.desc 确认按钮类型的警告弹窗AlertDialogParamWithConfirm,参数confirm设置value(Resource类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0660_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0660");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0660
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0660
+ * @tc.desc 确认按钮类型的警告弹窗AlertDialogParamWithConfirm,参数confirm设置value(Resource类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0660_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0660");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ let confirmButton = await driver.findComponent(ON.text('Secondary'));
+ await confirmButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0730
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0730
+ * @tc.desc 确认按钮类型的警告弹窗AlertDialogParamWithConfrm参数message设置内容超长
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0730', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0730");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0770
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0770
+ * @tc.desc 确认按钮类型的警告弹窗AlertDialogParamWithConfrm,参数offset设置(dx,dy} 偏移量Resource类型
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0770', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0770");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0790
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0790
+ * @tc.desc 确认按钮类型的警告弹窗AlertDialogParamWithConfrm,参数offset设置{dx,dy} 偏移量string类型.
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0790', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0790");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0270
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0270
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数primaryButton、secondaryButton设置value(Resource类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0270_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0270");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0270
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0270
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数primaryButton、secondaryButton设置value(Resource类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0270_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0270");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ let confirmButton = await driver.findComponent(ON.text('Primary'));
+ await confirmButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0150
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数gridCount设置默认值4
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0150");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0260
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0260
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数offset设置{dx,dy} 偏移量string类型。
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0260', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0260");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0180
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数message设置string类型
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0180");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1160
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1160
+ * @tc.desc 通过getUIContext0)获取uniconten对象,调用showAlertDialog0方法,创建确认按钮类型警告弹窗,设置secondButton,为其配置value、fontColor(string)、backgroundColor(string)、action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1160_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1160");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1160
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1160
+ * @tc.desc 通过getUIContext0)获取uniconten对象,调用showAlertDialog0方法,创建确认按钮类型警告弹窗,设置secondButton,为其配置value、fontColor(string)、backgroundColor(string)、action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1160_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1160");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ let confirmButton = await driver.findComponent(ON.text('button'));
+ await confirmButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1290
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1290
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置弹商在竖直方向上的对齐方式DialogAlignment (Default)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1290', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1290");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1090
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1090
+ * @tc.desc 通过getUlContext0)获取uniconten对象,调用showAlertDialog0方法,创建确认按钮类型警告弹窗,设置primaryButton、secondButton
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1090', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1090");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1380
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1380
+ * @tc.desc 通过getUlContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置确认按钮confrm,为其配置value、fontColor(Resource)、backgroundColor(Resource)、action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1380_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1380");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1380
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1380
+ * @tc.desc 通过getUlContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置确认按钮confrm,为其配置value、fontColor(Resource)、backgroundColor(Resource)、action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1380_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1380");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ let confirmButton = await driver.findComponent(ON.text('button'));
+ await confirmButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1130
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1130
+ * @tc.desc 通过getUlContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置primaryButton,为其配置value、fontColor(枚举)、backgroundColor(枚举)、action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1130_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1130");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1130
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1130
+ * @tc.desc 通过getUlContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置primaryButton,为其配置value、fontColor(枚举)、backgroundColor(枚举)、action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1130_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1130");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ let confirmButton = await driver.findComponent(ON.text('button'));
+ await confirmButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1400
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1400
+ * @tc.desc 通过getUContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置确认按钮confirm,为其配置value、fontColor(枚举)、backgroundColor(枚举)、action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1400_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1400");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1400
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1400
+ * @tc.desc 通过getUContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置确认按钮confirm,为其配置value、fontColor(枚举)、backgroundColor(枚举)、action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1400_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1400");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ let confirmButton = await driver.findComponent(ON.text('button'));
+ await confirmButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1210
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1210
+ * @tc.desc 通过getUlContext0获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置内容message (undefined)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1210', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1210");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1150
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1150
+ * @tc.desc 通过getUlContext()获取uniconten对象,调用showAlertDialog(方法,创建确认按钮类型警告弹窗,设置secondButton,为其配置value、fontColor(Resource)、backgroundColor(Resource)、action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1150_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1150");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1150
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1150
+ * @tc.desc 通过getUlContext()获取uniconten对象,调用showAlertDialog(方法,创建确认按钮类型警告弹窗,设置secondButton,为其配置value、fontColor(Resource)、backgroundColor(Resource)、action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1150_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1150");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ let confirmButton = await driver.findComponent(ON.text('button'));
+ await confirmButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1140
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1140
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置secondButton,为其配置value、fontColor(number)、backgroundColor(number).action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1140_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1140");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1140
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1140
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置secondButton,为其配置value、fontColor(number)、backgroundColor(number).action:()=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1140_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1140");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ let confirmButton = await driver.findComponent(ON.text('button'));
+ await confirmButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1190
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1190
+ * @tc.desc 通过getUlContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置内容message (null)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1190', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1190");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1350
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1350
+ * @tc.desc 迪过getUlContext0获取uniconten对象,调用showAlertDialog0方法,创建确认按钮类型警告弹窗,设置标题title(Resource类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1350', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1350");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1340
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1340
+ * @tc.desc 通过getUlContext0获取uniconten对象,调用showAlertDialog0方法,创建确认按钮类型警告弹窗,设置弹窗栅格数异常值
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1340', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1340");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1330
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1330
+ * @tc.desc 通过getUlContext0获取uniconten对象,调用showAlertDialog0方法,创建确认按钮类型警告弹窗,设置弹窗栅格数
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1330', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1330");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1310
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1310
+ * @tc.desc 通过getUlContext0)获取uniconten对象,调用showAlertDialog0)方法,创建确认按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment(TopStart)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1310', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1310");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1320
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1320
+ * @tc.desc 通过getUIContext0获取uniconten对象,调用showAlertDialog0)方法,创建确认按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment (Top)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1320', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1320");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1300
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1300
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment (TopEnd)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1300', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1300");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1080
+ * @tc.desc 通过getUlContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置cancel
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1080_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1080");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1080
+ * @tc.desc 通过getUlContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置cancel
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1080_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1080");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await driver.click(100, 100);
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0890
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0890
+ * @tc.desc 通过getUlContext()获取uniconten对象,调用showAlertDialog()方法,创建多按钮类型警告弹窗,设置内容message (Resource类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0890', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0890");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1240
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1240
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment(BottomStart)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1240', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1240");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1230
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1230
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment(BottomEnd)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1230', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1230");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1250
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1250
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment(Bottom)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1250', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1250");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0970
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0970
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment(Center)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0970', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0970");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1220
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1220
+ * @tc.desc 通过getUlContext0获取uniconten对象,调用showAlertDialog0方法,创建确认按钮类型警告弹窗,设置弹窗偏移offset
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1220");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1260
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1260
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment(CenterEnd)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1260', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1260");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0880
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0880
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建多按钮类型警告弹窗,设置内容message (null)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0880', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0880");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1050
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1050
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog0方法,创建多按钮类型警告弹窗,设置标题title(string类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1050");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1010
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1010
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建多按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment (Top)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1010");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0900
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0900
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建多按钮类型警告弹窗,设置内容message (undefined)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0900', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0900");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0940
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0940
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建多按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment(Bottom)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0940', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0940");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0990
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0990
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog0方法,创建多按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment(TopEnd)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0990', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0990");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0860
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0860
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建多按钮类型警告弹窗,设置cancel
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0860_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0860");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0860
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0860
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建多按钮类型警告弹窗,设置cancel
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0860_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0860");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await driver.click(100, 100);
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1040
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1040
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建多按钮类型警告弹窗,设置标题title(Resource类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1040");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1030
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1030
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建多按钮类型警告弹窗,设置弹窗栅格数异常值
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1030");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0840
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0840
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建多按钮类型警告弹窗,设置autoCancel(false)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0840_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0840");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0840
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0840
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建多按钮类型警告弹窗,设置autoCancel(false)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0840_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0840");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await driver.click(100, 100);
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0850
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0850
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建多按钮类型警告弹窗,设置autoCancel(true)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0850', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0850");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await driver.click(200, 500);
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0980
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0980
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建多按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment(Default)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0980', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0980");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1000
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1000
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建多按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment(TopStart)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1000', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1000");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1180
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1180
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置内容message("空串)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1180");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0950
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0950
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建多按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment(CenterEnd)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0950', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0950");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0930
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0930
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建多按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment(BottomStart)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0930', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0930");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1060
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置autoCancel(false)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1060_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1060");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1060
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置autoCancel(false)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1060_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1060");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await driver.click(100, 100);
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0920
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0920
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建多按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式DialogAlignment(BottomEnd)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0920', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0920");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1360
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1360
+ * @tc.desc 通过getUIContext()获取showAlertDialog()方法,创建确认按钮类型警告弹窗,设置标题title (string类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1360', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1360");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0960
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0960
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建多按钮类型警告弹窗,设置弹窗在竖直方向上的对齐方式
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0960', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0960");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1020
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1020
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建多按钮类型警告弹窗,设置弹窗栅格数4
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1020");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1070
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1070
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建确认按钮类型警告弹窗,设置autoCancel(true)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1070_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1070");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1070
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1070
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建确认按钮类型警告弹窗,设置autoCancel(true)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1070_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1070");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await driver.click(100, 100);
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1110
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1110
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置primaryButton,为其配置value、fontColor(Resource)、backgroundColor(Resource)、action:0=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1110_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1110");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1110
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1110
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog()方法,创建确认按钮类型警告弹窗,设置primaryButton,为其配置value、fontColor(Resource)、backgroundColor(Resource)、action:0=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1110_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1110");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ let confirmButton = await driver.findComponent(ON.text('button'));
+ await confirmButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1100
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1100
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建确认按钮类型警告弹窗,设置primaryButton,为其配置value、fontColor(number)、backgroundColor(number)、action:0=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1100_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1100");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1100
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1100
+ * @tc.desc 通过getUIContext()获取uniconten对象,调用showAlertDialog(方法,创建确认按钮类型警告弹窗,设置primaryButton,为其配置value、fontColor(number)、backgroundColor(number)、action:0=>void
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1100_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1100");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ let confirmButton = await driver.findComponent(ON.text('button'));
+ await confirmButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0390
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0390
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons参数primaryButton、secondaryButton设置value(string类型)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0390', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0390");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0690
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0690
+ * @tc.desc 3-1.弹出弹窗,显示弹窗标题title、弹窗内容message、确认按钮弹窗默认对齐,弹窗宽度占系统最大栅格宽度(最大栅格数为系统最大栅格数)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0690', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0690");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0240
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0240
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数offset设置{dx,dy}偏移量string类型
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0240', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0240");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0230
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0230
+ * @tc.desc 两个按钮类型的警告弹窗AlertDialogParamWithButtons,参数offset设置{dx,dy}偏移量Resource类型
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0230', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0230");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0140
+ * @tc.desc 、弹窗内容message、两个按钮,弹窗默认对齐,弹窗宽度占4个栅格宽度(gridCount为异常值时,按默认值处理)
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0140");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0780
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0780
+ * @tc.desc 、3-1.弹出弹窗,显示弹窗标题title、弹窗内容message、确认按钮,弹窗默认对齐,弹窗不偏移
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0780', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0780");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0800
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0800
+ * @tc.desc 、弹窗内容message、确认按钮,弹窗默认对齐,弹窗左移10vp,上移10vp
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0800', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0800");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0410
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0410
+* @tc.desc 3-1.弹出弹窗,显示弹窗标题title以及弹窗内容message
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0410', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0410");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0420
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0420
+* @tc.desc 3-1.弹出弹窗,显示弹窗标题title以及弹窗内容message
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0420', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0420");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1170
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1170
+* @tc.desc 3-1.弹出弹窗,secondButton按钮背景色为灰色,字体为蓝色 4-1.退出弹窗,并触发回调
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1170");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ let alterButton=await driver.findComponent(ON.text('button'))
+ await Utils.sleep(1000);
+ alterButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1270
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1270
+* @tc.desc 3-1.弹出弹窗,弹窗左中对齐
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1270', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1270");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1280
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1280
+* @tc.desc 3-1.弹出弹窗,弹窗居中对齐
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1280', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1280");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1390
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1390
+* @tc.desc 3-1.弹出弹窗,secondButton按钮背景色为灰色,字体为蓝色 4-1.退出弹窗,并触发回调
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1390', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1390");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ let alterButton=await driver.findComponent(ON.text('TestConfirm'))
+ await Utils.sleep(1000);
+ await alterButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0870
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0870
+* @tc.desc 3-1.弹出弹窗,不显示message不占位
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0870', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0870");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1370
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1370
+* @tc.desc 3-1.弹出弹窗,确认按钮背景色为灰色,字体为蓝色4-1.触发回调,打印日志
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1370', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1370");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ let alterButton=await driver.findComponent(ON.text('button'))
+ await Utils.sleep(1000);
+ await alterButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0910
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0910
+* @tc.desc 3-1.弹出弹窗,弹窗垂直底部对齐,左偏移10vp。上偏移10vp
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_0910', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0910");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1120
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1120
+* @tc.desc 3-1.弹出弹窗,primaryButton按钮背景色为灰色,字体为蓝色4-1.退出弹窗,并触发回调
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_INTERFACE_1120', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1120");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ let alterButton=await driver.findComponent(ON.text('button'))
+ await Utils.sleep(1000);
+ await alterButton.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/UIComponentPopupboxAlertDialogScenariosTest/UIComponentPopupboxAlertDialogScenarios.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxAlertDialogScenariosTest/UIComponentPopupboxAlertDialogScenarios.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a42ab7a106c38adc2b636a44ec8da147e515b23a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxAlertDialogScenariosTest/UIComponentPopupboxAlertDialogScenarios.test.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 { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+
+import { Component, Driver ,ON } from '@ohos.UiTest'
+
+/*
+ * UIComponentPopupboxAlertDialogScenarios
+ *
+ * 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 UIComponentPopupboxAlertDialogScenarios() {
+
+ describe('UIComponentPopupboxAlertDialogScenarios', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_SCENARIOS_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_SCENARIOS_0070
+ * @tc.desc 在警告弹窗中验证title设置超长字符串显示..
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_SCENARIOS_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogScenarios/UIComponentPopupboxAlertDialogScenarios0070");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_SCENARIOS_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_SCENARIOS_0060
+ * @tc.desc 在警告弹窗中验证message超长字符串可进行滚动
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ALERTDIALOG_SCENARIOS_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxAlertDialogScenarios/UIComponentPopupboxAlertDialogScenarios0060");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.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/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..e1dda81196b14bd0f20232e24697032bec659492
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxEnterTest/UIComponentPopupboxEnter.test.ets
@@ -0,0 +1,310 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+
+import { Component, Driver ,ON } from '@ohos.UiTest'
+
+/*
+ * UIComponentPopupboxEnter
+ *
+ * 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 UIComponentPopupboxEnter() {
+
+ describe('UIComponentPopupboxEnter', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0020
+ * @tc.desc ActionSheet多种弹窗对齐,右上对齐
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0020");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0030
+ * @tc.desc ActionSheet多种弹窗对齐,右中对齐
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0030");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0140
+ * @tc.desc AlertDialog多种弹窗对齐,左移30px
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0140");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0050
+ * @tc.desc ActionSheet多种弹窗对齐,左移30px
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0050");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0040
+ * @tc.desc ActionSheet多种弹窗对齐,右移30px
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0040");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0130
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0130
+ * @tc.desc AlertDialog多种弹窗对齐,右移30px
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0130', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0130");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0120
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0120
+ * @tc.desc AlertDialog多种弹窗对齐,右中对齐
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0120', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0120");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0110
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0110
+ * @tc.desc AlertDialog多种弹窗对齐,右上齐
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0110', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0110");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0060
+ * @tc.desc ActionSheet多重弹窗
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0060");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await driver.click(200,700);
+ await Utils.sleep(1000);
+ await driver.triggerKey(2049);
+ await Utils.sleep(1000);
+ await driver.triggerKey(2054);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0070
+ * @tc.desc ActionSheet组件showinSubWindow设置为true
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0070");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0150
+ * @tc.desc AlertDialog多重弹窗
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0150");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await driver.click(200,200);
+ await Utils.sleep(1000);
+ await driver.triggerKey(2049);
+ await Utils.sleep(1000);
+ await driver.triggerKey(2054);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0090
+ * @tc.desc ActionSheet默认响应ENTER键
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0090', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0090");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(2054);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0160
+ * @tc.desc AlertDialog组件showinSubWindow设置为true
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_ENTER_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0160");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.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/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..6cb654c23b3e44e809f2c0b595eb4bc9acfcb5da
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuMenutestTest/UIComponentPopupboxMenuMenutest.test.ets
@@ -0,0 +1,114 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 { display } from '@kit.ArkUI';
+
+export default function UIComponentPopupboxMenuMenutest() {
+ describe('UIComponentPopupboxMenuMenutest', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1130
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1130
+ * @tc.desc 菜单项中内容信息的字体样式,字体粗细正常
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1130 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest1130");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await bt1.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_1130 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_2130
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_2130
+ * @tc.desc 菜单位于组件下侧,与组件右侧边缘对齐
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_2130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_2130 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest1130");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await bt1.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_2130 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_2010
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_2010
+ * @tc.desc 根据资源引用类型偏移
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_2010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_2010 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest2010");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await bt1.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_2010 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0530
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0530
+ * @tc.desc 不显示结束标签信息
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0530', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0530 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest0530");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const bt1 = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await bt1.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_MENUTEST_0530 finish.`);
+ done();
+ })
+
+
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModalTransitionOverrunsUIExtensionTest/UIComponentPopupboxModalTransitionOverrunsUIExtension.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModalTransitionOverrunsUIExtensionTest/UIComponentPopupboxModalTransitionOverrunsUIExtension.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..53d68bcb233e59065765bc263203ae93b0d08dc2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModalTransitionOverrunsUIExtensionTest/UIComponentPopupboxModalTransitionOverrunsUIExtension.test.ets
@@ -0,0 +1,209 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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, DisplayRotation, Driver, ON } from '@ohos.UiTest'
+import { window } from '@kit.ArkUI'
+import { GlobalThis } from '../model/globalThis'
+
+export default function UIComponentPopupboxModalTransitionOverrunsUIExtension() {
+ describe('UIComponentPopupboxModalTransitionOverrunsUIExtension', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0060
+ * @tc.desc 手机:(底部弹窗)bindSheet配置detents [SheetSize.MEDIUM,SheetSize LARGE,50]、preferType(SheetType.BOTTOM)UIExtension中不设置自定义子窗
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/UIComponentPopupboxModalTransitionOverrunsUIExtension0060");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.text('Show BindSheet01'));
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.text('Show BindSheet02'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ await driver.setDisplayRotation(1);
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ await button2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ await driver.setDisplayRotation(0);
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_01
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_01
+ * @tc.desc 动态切换:手机:(底部弹窗)bindSheet配置detents [SheetSize.MEDIUM,SheetSize LARGE,50]、preferType(SheetType.BOTTOM)、UIExtension中创建自定义子窗subWindow?.resize(720,1200)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_01', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_01 start.`);
+ Settings.createWindow('testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/UIComponentPopupboxModalTransitionOverrunsUIExtension0040', 100, 132, 720, 1200);
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.text('Show BindSheet01'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_01 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_02
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_02
+ * @tc.desc 动态切换:手机:(底部弹窗)bindSheet配置detents [SheetSize.MEDIUM,SheetSize LARGE,50]、preferType(SheetType.BOTTOM)、UIExtension中创建自定义子窗subWindow?.resize(720,1200)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_02', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_02 start.`);
+ Settings.createWindow('testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/UIComponentPopupboxModalTransitionOverrunsUIExtension0040', 100, 132, 720, 1200);
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.text('Show BindSheet01'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ Settings.changeWindowSize(Settings.windowClass!, 500, 800);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_02 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_03
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_03
+ * @tc.desc 动态切换:手机:(底部弹窗)bindSheet配置detents [SheetSize.MEDIUM,SheetSize LARGE,50]、preferType(SheetType.BOTTOM)、UIExtension中创建自定义子窗subWindow?.resize(720,1200)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_03', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_03 start.`);
+ Settings.createWindow('testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/UIComponentPopupboxModalTransitionOverrunsUIExtension0040', 100, 132, 720, 1200);
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.text('Show BindSheet01'));
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ Settings.changeWindowSize(Settings.windowClass!, 500, 800);
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ let landscapeButton = await driver.findComponent(ON.id('button'));
+ await landscapeButton.click();
+ await Utils.sleep(1000);
+ Settings.changeWindowSize(Settings.windowClass!, 720, 1200);
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let verticalButton = await driver.findComponent(ON.id('button'));
+ await verticalButton.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_03 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_04
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_04
+ * @tc.desc 动态切换:手机:(底部弹窗)bindSheet配置detents [SheetSize.MEDIUM,SheetSize LARGE,50]、preferType(SheetType.BOTTOM)、UIExtension中创建自定义子窗subWindow?.resize(720,1200)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_04', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_04 start.`);
+ Settings.createWindow('testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/UIComponentPopupboxModalTransitionOverrunsUIExtension0040', 100, 132, 720, 1200);
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.text('Show BindSheet01'));
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ Settings.changeWindowSize(Settings.windowClass!, 500, 800);
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ let landscapeButton = await driver.findComponent(ON.id('button'));
+ await landscapeButton.click();
+ await Utils.sleep(1000);
+ Settings.changeWindowSize(Settings.windowClass!, 720, 1200);
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ Settings.changeWindowSize(Settings.windowClass!, 500, 800);
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ let verticalButton = await driver.findComponent(ON.id('button'));
+ await verticalButton.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_OVERRUNSUIEXTENSION_0040_04 finish.`);
+ done();
+ })
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModaltransitionBindcontentcoveretTest/UIComponentPopupboxModaltransitionBindcontentcoveret.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModaltransitionBindcontentcoveretTest/UIComponentPopupboxModaltransitionBindcontentcoveret.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..31b0140e59b25ce3f0ca193e9b0370d78f99dd02
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModaltransitionBindcontentcoveretTest/UIComponentPopupboxModaltransitionBindcontentcoveret.test.ets
@@ -0,0 +1,424 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 Logger from '../model/Logger';
+import Settings from '../model/Settings';
+import Utils from '../model/Utils';
+import windowSnap from '../model/snapShot';
+import { Driver, ON } from '@ohos.UiTest';
+import { Component } from '@kit.TestKit';
+import { window } from '@kit.ArkUI';
+
+export default function UIComponentPopupboxModaltransitionBindcontentcoveretTest() {
+ describe('UIComponentPopupboxModaltransitionBindcontentcoveretTest', () => {
+
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0230
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0230
+ * @tc.desc 设置全屏模态转场bindContentCover接口的options参数的modalTransition值为ALPHA
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0230 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0230");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0230 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0260
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0260
+ * @tc.desc 设置全屏模态转场bindContentCover接口的options参数的onAppea为ALPHA
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0260 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0260");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0260 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0240
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0240
+ * @tc.desc 设置全屏模态转场bindContentCover接口的options参数的modalTransition值为DEFAULT
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0240 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0240");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0240 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0270
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0270
+ * @tc.desc 设置全屏模态转场bindContentCover接口的options参数的onAppea为DEFAULT
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0270 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0270");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0270 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0910
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0910
+ * @tc.desc 进入一个二级页面,弹出1个半模态页面后,通过向下拖动或滑动控制条使半模态页面消失,在下方的控制条没完全消失前点击页面中的CallBack
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0910', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0910");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button'));
+ await bt.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0410
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0410
+ * @tc.desc 设置半模态转场bindSheet接口的builder参数为可切换为主页面3
+ */
+ it("SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0410", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0410");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open1:Component = await driver.findComponent(ON.id("open1"));
+ await open1.click();
+ await Utils.sleep(1000);
+ const home:Component = await driver.findComponent(ON.id("home"));
+ await home.click();
+ await Utils.sleep(1000);
+ const open2:Component = await driver.findComponent(ON.id("open2"));
+ await open2.click();
+ await Utils.sleep(1000);
+ const open3:Component = await driver.findComponent(ON.id("open3"));
+ await open3.click();
+ await Utils.sleep(1000);
+ const back:Component = await driver.findComponent(ON.id("back"));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0440
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0440
+ * @tc.desc 设置半模态转场bindSheet接口的builder参数为可切换到主页面5
+ */
+ it("SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0440", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0440");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open1:Component = await driver.findComponent(ON.id("open1"));
+ await open1.click();
+ await Utils.sleep(1000);
+ const home:Component = await driver.findComponent(ON.id("home"));
+ await home.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0430
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0430
+ * @tc.desc 设置半模态转场bindSheet接口的builder参数为可切换到主页面4
+ */
+ it("SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0430", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0430");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open1:Component = await driver.findComponent(ON.id("open1"));
+ await open1.click();
+ await Utils.sleep(1000);
+ const open2:Component = await driver.findComponent(ON.id("open2"));
+ await open2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0420
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0420
+ * @tc.desc 设置半模态转场bindSheet接口的builder参数为可切换主页面
+ */
+ it("SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0420", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0420");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open1:Component = await driver.findComponent(ON.id("open1"));
+ await open1.click();
+ await Utils.sleep(1000);
+ const home:Component = await driver.findComponent(ON.id("home"));
+ await home.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0480
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0480
+ * @tc.desc 设置半模态转场bindSheet接口的builder参数为可切换导第一个全模态页面
+ */
+ it("SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0480", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0480");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open1:Component = await driver.findComponent(ON.id("open1"));
+ await open1.click();
+ await Utils.sleep(1000);
+ const home:Component = await driver.findComponent(ON.id("home"));
+ await home.click();
+ await Utils.sleep(1000);
+ const open2:Component = await driver.findComponent(ON.id("open2"));
+ await open2.click();
+ await Utils.sleep(1000);
+ const open3:Component = await driver.findComponent(ON.id("open3"));
+ await open3.click();
+ await Utils.sleep(1000);
+ const back:Component = await driver.findComponent(ON.id("back"));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0400
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0400
+ * @tc.desc 设置半模态转场bindSheet接口的builder参数为可切换为主页面2
+ */
+ it("SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0400", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0400");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open1:Component = await driver.findComponent(ON.id("open1"));
+ await open1.click();
+ await Utils.sleep(1000);
+ const home:Component = await driver.findComponent(ON.id("home"));
+ await home.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0940
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0940
+ * @tc.desc 验证button组件绑定bindContentCover可以切换主页面
+ */
+ it("SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0940", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0940");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open2:Component = await driver.findComponent(ON.id("open2"));
+ await open2.click();
+ await Utils.sleep(1000);
+ const open3:Component = await driver.findComponent(ON.id("open3"));
+ await open3.click();
+ await Utils.sleep(1000);
+ const back:Component = await driver.findComponent(ON.id("back"));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0950
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0950
+ * @tc.desc 验证button组件绑定bindContentCover可以切换主页面2
+ */
+ it("SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0950", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0950");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open2:Component = await driver.findComponent(ON.id("open2"));
+ await open2.click();
+ await Utils.sleep(1000);
+ const open3:Component = await driver.findComponent(ON.id("open3"));
+ await open3.click();
+ await Utils.sleep(1000);
+ const back:Component = await driver.findComponent(ON.id("back"));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0960
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0960
+ * @tc.desc 验证button组件绑定bindContentCover可以切换主页面3
+ */
+ it("SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0960", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0960");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open1:Component = await driver.findComponent(ON.id("open1"));
+ await open1.click();
+ await Utils.sleep(1000);
+ const open11:Component = await driver.findComponent(ON.id("open11"));
+ await open11.click();
+ await Utils.sleep(1000);
+ const back:Component = await driver.findComponent(ON.id("back"));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0980
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0980
+ * @tc.desc 验证button组件绑定bindContentCover可以切换主页面5
+ */
+ it("SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0980", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0980");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open2:Component = await driver.findComponent(ON.id("open2"));
+ await open2.click();
+ await Utils.sleep(1000);
+ const open3:Component = await driver.findComponent(ON.id("open3"));
+ await open3.click();
+ await Utils.sleep(1000);
+ const back:Component = await driver.findComponent(ON.id("back"));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0990
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0990
+ * @tc.desc 验证button组件绑定bindContentCover可以切换导第一个全模态页面
+ */
+ it("SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0990", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0990");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open1:Component = await driver.findComponent(ON.id("open1"));
+ await open1.click();
+ await Utils.sleep(1000);
+ const home:Component = await driver.findComponent(ON.id("home"));
+ await home.click();
+ await Utils.sleep(1000);
+ const open2:Component = await driver.findComponent(ON.id("open2"));
+ await open2.click();
+ await Utils.sleep(1000);
+ const open3:Component = await driver.findComponent(ON.id("open3"));
+ await open3.click();
+ await Utils.sleep(1000);
+ const back:Component = await driver.findComponent(ON.id("back"));
+ await back.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0970
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0970
+ * @tc.desc 验证button组件绑定bindContentCover可以切换主页面4
+ */
+ it("SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_BINDCONTENTCOVERET_0970", 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0970");
+ await Utils.sleep(1000);
+ const driver: Driver = Driver.create();
+ const open2:Component = await driver.findComponent(ON.id("open2"));
+ await open2.click();
+ await Utils.sleep(1000);
+ const open3:Component = await driver.findComponent(ON.id("open3"));
+ await open3.click();
+ await Utils.sleep(1000);
+ const back:Component = await driver.findComponent(ON.id("back"));
+ await back.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/UIComponentPopupboxModaltransitionImperativeTest/UIComponentPopupboxModaltransitionImperative.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModaltransitionImperativeTest/UIComponentPopupboxModaltransitionImperative.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f13232607b21ff67496f146fcb4885672f390268
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModaltransitionImperativeTest/UIComponentPopupboxModaltransitionImperative.test.ets
@@ -0,0 +1,361 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 { display } from '@kit.ArkUI';
+import { KeyCode } from '@kit.InputKit';
+
+export default function UIComponentPopupboxModaltransitionImperativeTest () {
+ describe('UIComponentPopupboxModaltransitionImperativeTest', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0190
+ * @tc.desc updateBindSheet中传递(content,{},true)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0190 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0190");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0190 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0170
+ * @tc.desc updateBindSheet中传递(content,undefined)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0170', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0170 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0170");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0170 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0220
+ * @tc.desc 全量刷新
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0220', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0220 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0220");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0220 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0180
+ * @tc.desc updateBindSheet中传递(content,undefined,true)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0180 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0180");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0180 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0230
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0230
+ * @tc.desc 增量刷新
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0230 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0230");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(3000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0230 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0100
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0100
+ * @tc.desc openBindSheet中传递ComponentContent、sheetOptions、targetld且sheetMode设置为OVERLAY
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0100 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0100");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ const bt3 = await driver.findComponent(ON.id('button3'));
+ await Utils.sleep(200);
+ await bt3.click();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0100 finish.`);
+ done();
+ })
+
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0060
+ * @tc.desc openBindSheet中传递(contentundefined)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0060");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0050
+ * @tc.desc openBindSheet中传递(content,options(OVERLAY模式),非page子节点的targetld)
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0050");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0050 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310
+ * @tc.desc 验证在UIAbility里以命令式启动半模态,半模态是否可以正常弹出
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0310");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot('1');
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310
+ * @tc.desc 验证在UIAbility里以命令式启动半模态,半模态是否可以正常弹出
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0310");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot('2');
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310
+ * @tc.desc 验证在UIAbility里以命令式启动半模态,半模态是否可以正常弹出
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310_3 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0310");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button3'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot('3');
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0310_3 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0290
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0290
+ * @tc.desc 验证命令式打开的半模态下的导航条的避让是否符合规格
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0290_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0290_1 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0290");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 600, 4000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot('1');
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0290_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0290
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0290
+ * @tc.desc 验证命令式打开的半模态下的导航条的避让是否符合规格
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0290_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0290_2 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0290");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot('2');
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0290_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0300
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0300
+ * @tc.desc 验证命令式打开的半模态弹窗符合走焦规格
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0300', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0300 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0300");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await driver.triggerKey(KeyCode.KEYCODE_TAB);
+ await Utils.sleep(500);
+ await driver.triggerKey(KeyCode.KEYCODE_TAB);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await driver.triggerKey(KeyCode.KEYCODE_ENTER);
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_IMPERATIVE_0300 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModaltransitionSubwindowTest/UIComponentPopupboxModaltransitionSubwindow.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModaltransitionSubwindowTest/UIComponentPopupboxModaltransitionSubwindow.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ad4f5d7cde970af5955b7b622d0a6462fb37370d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModaltransitionSubwindowTest/UIComponentPopupboxModaltransitionSubwindow.test.ets
@@ -0,0 +1,223 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIComponentPopupboxModaltransitionSubwindowTest () {
+ describe('UIComponentPopupboxModaltransitionSubwindowTest', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0070
+ * @tc.desc 不设置子窗口大小,在子窗口里拉起居中弹窗
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0070");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0070 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0050
+ * @tc.desc 不设置子窗口大小,在子窗口里拉起跟手弹窗
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0050");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0050 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0040
+ * @tc.desc 设置子窗口大小resize(720,2000),在子窗口里拉起居中弹窗,设置3个档位
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0040 start.`);
+ Settings.createWindow(
+ "testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0040",
+ 0,100,720,2000
+ );
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0090
+ * @tc.desc 设置子窗口大小resize(720,1200),在子窗口里拉起居中弹窗
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0090 start.`);
+ Settings.createWindow(
+ "testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0090",
+ 0,100,720,1200
+ );
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0090 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0060
+ * @tc.desc 设置子窗口大小resize(720,1200),在子窗口里拉起底部弹窗
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0060 start.`);
+ Settings.createWindow(
+ "testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0060",
+ 0,100,720,1200
+ );
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0080
+ * @tc.desc 设置子窗口大小resize(720,2000),在子窗口里拉起跟手弹窗,设置3个档位
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0080 start.`);
+ Settings.createWindow(
+ "testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0080",
+ 0,100,720,2000
+ );
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0080 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0030
+ * @tc.desc 不设置子窗口大小,在子窗口里拉起底部弹窗
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0030");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ const bt2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1500);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SUBWINDOW_0030 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModaltransitionSwipetorefreshTest/UIComponentPopupboxModaltransitionSwipetorefresh.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModaltransitionSwipetorefreshTest/UIComponentPopupboxModaltransitionSwipetorefresh.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8aeee6790cdf7012ad234b2e992aecd7f4a40560
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxModaltransitionSwipetorefreshTest/UIComponentPopupboxModaltransitionSwipetorefresh.test.ets
@@ -0,0 +1,305 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 { display } from '@kit.ArkUI';
+
+export default function UIComponentPopupboxModaltransitionSwipetorefreshTest () {
+ describe('UIComponentPopupboxModaltransitionSwipetorefreshTest', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0070
+ * @tc.desc 半模态设置ScrollSizeMode (CONTINUOUS) detents:[SheetSize.MEDIUM, SheetSize.LARGE,200]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0070");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 600);
+ await Utils.sleep(500);
+ await driver.swipe(dis.width / 2, dis.height - 800, dis.width / 2, dis.height - 100, 3000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(200);
+ const bt2 = await driver.findComponent(ON.type('SymbolGlyph'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0070 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0060
+ * @tc.desc 半模态设置ScrollSizeMode (FOLLOW_DETENT) detents:[SheetSize.MEDIUM, SheetSize.LARGE,200]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0060");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 600);
+ await Utils.sleep(500);
+ await driver.swipe(dis.width / 2, dis.height - 800, dis.width / 2, dis.height - 100, 3000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(200);
+ const bt2 = await driver.findComponent(ON.type('SymbolGlyph'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0030
+ * @tc.desc 半模态设置ScrollSizeMode(null)、detents:[200,400,600]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0030");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 300);
+ await Utils.sleep(500);
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 400, 3000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(200);
+ const bt2 = await driver.findComponent(ON.type('SymbolGlyph'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0030 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0020
+ * @tc.desc 半模态设置detents:[200,400,600]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0020 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0020");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 300);
+ await Utils.sleep(500);
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 400, 3000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(200);
+ const bt2 = await driver.findComponent(ON.type('SymbolGlyph'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0020 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0100
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0100
+ * @tc.desc 半模态设置ScrollSizeMode(CONTINUOUS)detents:[200,400,600]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0100 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0100");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 300);
+ await Utils.sleep(500);
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 400, 3000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(200);
+ const bt2 = await driver.findComponent(ON.type('SymbolGlyph'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0100 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0050
+ * @tc.desc 半模态设置ScrollSizeMode (undefined) detents:[SheetSize.MEDIUM, SheetSize.LARGE,200]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0050");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 600);
+ await Utils.sleep(500);
+ await driver.swipe(dis.width / 2, dis.height - 800, dis.width / 2, dis.height - 100, 3000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(200);
+ const bt2 = await driver.findComponent(ON.type('SymbolGlyph'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0050 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0040
+ * @tc.desc 半模态设置detents:[SheetSize.MEDIUM,SheetSize.LARGE,200]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0040");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 600);
+ await Utils.sleep(500);
+ await driver.swipe(dis.width / 2, dis.height - 800, dis.width / 2, dis.height - 100, 3000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(200);
+ const bt2 = await driver.findComponent(ON.type('SymbolGlyph'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0090
+ * @tc.desc 半模态设置ScrollSizeMode(FOLLOW_DETENT)detents:[200,400,600]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0090 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0090");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 300);
+ await Utils.sleep(500);
+ await driver.swipe(dis.width / 2, dis.height - 100, dis.width / 2, dis.height - 400, 3000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(200);
+ const bt2 = await driver.findComponent(ON.type('SymbolGlyph'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0090 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0080
+ * @tc.desc 半模态设置ScrollSizeMode(null)detents:[SheetSize.MEDIUM,SheetSize.LARGE,200]
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0080 start.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0080");
+ await Utils.sleep(200);
+ const driver = Driver.create();
+ const bt = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(200);
+ await bt.click();
+ await Utils.sleep(1000);
+ const dis = display.getDefaultDisplaySync();
+ await driver.swipe(dis.width / 2, dis.height - 160, dis.width / 2, dis.height - 600);
+ await Utils.sleep(500);
+ await driver.swipe(dis.width / 2, dis.height - 800, dis.width / 2, dis.height - 100, 3000);
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(200);
+ const bt2 = await driver.findComponent(ON.type('SymbolGlyph'));
+ await Utils.sleep(200);
+ await bt2.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_SWIPETOREFRESH_0080 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ed5a5ac057e70c1ad0067ab2f8f545229d94c5cb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment.test.ets
@@ -0,0 +1,649 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+import { Component, Driver, ON } from '@ohos.UiTest'
+import { window } from '@kit.ArkUI'
+
+/*
+ * UIComponentPopupboxAlertDialogInterface
+ *
+ * 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 UIComponentPopupboxSpecificationsAlignment() {
+
+ describe('UIComponentPopupboxSpecificationsAlignment', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ await done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0010
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0010
+ * @tc.desc 2、弹窗的高度为(主窗口-安全区域)的100%
+ * 3、弹窗的高度为(UIExtension窗口-安全区域)的100%
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0010");
+ await Utils.sleep(2000);
+ let driver = Driver.create();
+ let showDialogButton = await driver.findComponent(ON.id('UIComponentPopupboxSpecificationsAlignment0010_1_001'));
+ await showDialogButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0040
+ * @tc.desc 2、打开自定义弹窗
+ * 3、UIExtension区域和弹窗消失
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0040");
+ await Utils.sleep(2000);
+ let driverOne = Driver.create();
+ let showDialogButton =
+ await driverOne.findComponent(ON.id('UIComponentPopupboxSpecificationsAlignment0040_1_001'));
+ let showOtherDialogButton =
+ await driverOne.findComponent(ON.id('UIComponentPopupboxSpecificationsAlignment0040_1_002'));
+ await Utils.sleep(1000);
+ await showDialogButton.click();
+ await Utils.sleep(2000);
+ await showOtherDialogButton.click();
+ await Utils.sleep(1000);
+ let driverTwo = Driver.create();
+ await (await (driverTwo.findComponent(ON.id('UIComponentPopupboxSpecificationsAlignment0040_1_003')))).click(); // 关闭弹窗窗口
+ await Utils.sleep(2000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0180
+ * @tc.desc 2、子窗弹窗显示正常,全自由窗口覆盖蒙层;自由窗口中可以点击button关闭子窗弹窗;
+ * 自由窗口中可以点击click for dialog再次弹出子窗弹窗3、子窗弹窗显示正常,全屏覆盖蒙层
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0180");
+ await Utils.sleep(2000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await Utils.sleep(1000);
+ await showButton.click();
+ await Utils.sleep(1000);
+ Settings.windowClass?.resize(500, 500)
+ await Utils.sleep(2000);
+ let alertButton = await driver.findComponent(ON.text('alertbutton'));
+ await alertButton.click();
+ await Utils.sleep(1000);
+ await showButton.click();
+ await Utils.sleep(1000);
+ Settings.windowClass?.resize(720, 1250)
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0200
+ * @tc.desc 2、子窗弹窗显示正常,全自由窗口覆盖蒙层;自由窗口中可以点击button关闭子窗弹窗;
+ * 自由窗口中可以点击click for dialog再次弹出子窗弹窗3、子窗弹窗显示正常,全屏覆盖蒙层
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0200");
+ await Utils.sleep(2000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ await Utils.sleep(1000);
+ await showButton.click();
+ await Utils.sleep(1000);
+ Settings.windowClass?.resize(500, 500)
+ await Utils.sleep(2000);
+ let alertButton = await driver.findComponent(ON.text('alertbutton'));
+ await alertButton.click();
+ await Utils.sleep(1000);
+ await showButton.click();
+ await Utils.sleep(1000);
+ Settings.windowClass?.resize(720, 1250)
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0220
+ * @tc.desc 2、使用方界面中会出现:UIExtension区域和弹窗消失
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0220")
+ await Utils.sleep(2000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('UIComponentPopupboxSpecificationsAlignment0220_1_001'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOx_SPECIFICATIONS_ALIGNMENT_0230
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOx_SPECIFICATIONS_ALIGNMENT_0230
+ * @tc.desc 2、自定义弹窗正常弹出,且基于主窗口对齐,蒙层大小为全屏,遮罩层未发生偏移,maskRect设置不生效
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOx_SPECIFICATIONS_ALIGNMENT_0230', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0230")
+ await Utils.sleep(2000);
+ let driverOne = Driver.create()
+ let showButton = await driverOne.findComponent(ON.id('UIComponentPopupboxSpecificationsAlignment0230_1_001'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ let driverTwo = Driver.create();
+ let showButtontow = await driverTwo.findComponent(ON.id('UIComponentPopupboxSpecificationsAlignment0230_1_001_002'));//关闭弹窗窗口
+ await showButtontow.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0240
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0240
+ * @tc.desc 2.自定义弹窗正常弹出,且基于主窗口对齐,蒙层大小为全屏,遮罩层未发生偏移,maskRect设置不生效
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0240', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0240");
+ await Utils.sleep(2000);
+ let driverOne = Driver.create();
+ let showButton = await driverOne.findComponent(ON.id('UIComponentPopupboxSpecificationsAlignment0240_1_001'));
+ await Utils.sleep(1000);
+ await showButton.click();
+ await Utils.sleep(1000);
+ let driverTwo = Driver.create();
+ await (await (driverTwo.findComponent(ON.id('UIComponentPopupboxSpecificationsAlignment0240_1_002')))).click(); //关闭弹窗窗口
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0250
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0250
+ * @tc.desc 2、对话框正常弹出,且基于主窗口对齐,蒙层大小为全屏,遮罩层未发生偏移,maskRect设置不生效
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0250', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0250");
+ await Utils.sleep(2000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('UIComponentPopupboxSpecificationsAlignment0250_1_001'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0260
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0260
+ * @tc.desc 2、列表选择弹窗正常弹出,且基于主窗口对齐,蒙层大小为全屏,遮罩层未发生偏移,maskRect设置不生效
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0260', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0260");
+ await Utils.sleep(2000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('UIComponentPopupboxSpecificationsAlignment0260_1_001'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0270
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0270
+ * @tc.desc 2、警告弹窗正常弹出,且基于主窗口对齐,蒙层大小为全屏,遮罩层未发生偏移,maskRect设置不生效
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0270', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0270");
+ await Utils.sleep(2000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('UIComponentPopupboxSpecificationsAlignment0270_1_001'));
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0280
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0280
+ * @tc.desc 2、操作菜单正常弹出,且基于主窗口居中对齐,大小全屏
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0280', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0280");
+ await Utils.sleep(2000);
+ let driverOne = Driver.create();
+ let showButton = await driverOne.findComponent(ON.id('UIComponentPopupboxSpecificationsAlignment0280_1_001'));
+ await Utils.sleep(1000);
+ await showButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0290
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0290
+ * @tc.desc 验证在UIExtension中,设置showInSubWindow为true,
+ * 设置对齐方式alignment的ActionSheet可以正常弹出且基于主窗口对齐,大小是全屏的
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0290', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0290");
+ await Utils.sleep(2000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ let Top = await driver.findComponent(ON.id('Top'));
+ let Center = await driver.findComponent(ON.id('Center'));
+ let Bottom = await driver.findComponent(ON.id('Bottom'));
+ let Default = await driver.findComponent(ON.id('Default'));
+ let TopStant = await driver.findComponent(ON.id('TopStant'));
+ let TopEnd = await driver.findComponent(ON.id('TopEnd'));
+ let CenterStart = await driver.findComponent(ON.id('CenterStart'));
+ let CenterEnd = await driver.findComponent(ON.id('CenterEnd'));
+ let BottomStart = await driver.findComponent(ON.id('BottomStart'));
+ let BottomEnd = await driver.findComponent(ON.id('BottomEnd'));
+ await Utils.sleep(800);
+ await showButton.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click() //关闭弹窗窗口
+ await Utils.sleep(800);
+ await Top.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await Center.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await Bottom.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await Default.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await TopStant.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await TopEnd.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await CenterStart.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await CenterEnd.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await BottomStart.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await BottomEnd.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0300
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0300
+ * @tc.desc 2、警告弹窗正常弹出,且基于主窗口垂直顶部对齐,大小全屏
+ 3、点击button/蒙层警告弹窗关"闭;点击click for dialog,警告弹窗正常弹出,且基于主窗口垂直居"中对齐,大小全屏
+ 4、点击button/蒙层警告弹窗关闭;点击click for dialog,警告弹窗正常弹出,且基于主窗口垂直底部对齐,大小全屏
+ 5、点击button/蒙层警告弹窗关闭;点击click for dialog,警告弹窗正常弹出,且基于主窗口默认对齐,大小全屏
+ 6、点击button/蒙层警告弹窗关闭;点击click for dialog,警告弹窗正常弹出,且基于主窗口左上对齐,大小全屏
+ 7、点击button/蒙层警告弹窗关闭;点击click for dialog,警告弹窗正常弹出,且基于主窗口右上对齐,大小全屏
+ 8、点击button/蒙层警告弹窗关闭;点击click for dialog,警告弹窗正常弹出,且基于主窗口左中对
+ 9、点击button/蒙层警告弹窗关闭;点击click for dialog,警告弹窗正常弹出,且基于主窗口左中对
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0300', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0300");
+ await Utils.sleep(2000);
+ let driverOne = Driver.create();
+ let showButton = await driverOne.findComponent(ON.id('showButtons'));
+ let Top = await driverOne.findComponent(ON.id('Top'));
+ let Center = await driverOne.findComponent(ON.id('Center'));
+ let Bottom = await driverOne.findComponent(ON.id('Bottom'));
+ let Default = await driverOne.findComponent(ON.id('Default'));
+ let TopStart = await driverOne.findComponent(ON.id('TopStart'));
+ let TopEnd = await driverOne.findComponent(ON.id('TopEnd'));
+ let CenterStart = await driverOne.findComponent(ON.id('CenterStart'));
+ let CenterEnd = await driverOne.findComponent(ON.id('CenterEnd'));
+ let BottomStart = await driverOne.findComponent(ON.id('BottomStart'));
+ let BottomEnd = await driverOne.findComponent(ON.id('BottomEnd'));
+ await Utils.sleep(800);
+ await showButton.click();
+ await Utils.sleep(800);
+ let driverTwo = Driver.create();
+ await (await (driverTwo.findComponent(ON.id('button')))).click() //关闭弹窗窗口
+ await Utils.sleep(800);
+ await Top.click();
+ await Utils.sleep(800);
+ await (await (driverOne.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await Center.click();
+ await Utils.sleep(800);
+ await (await (driverOne.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await Bottom.click();
+ await Utils.sleep(800);
+ await (await (driverOne.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await Default.click();
+ await Utils.sleep(800);
+ await (await (driverTwo.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await TopStart.click();
+ await Utils.sleep(800);
+ await (await (driverTwo.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await TopEnd.click();
+ await Utils.sleep(800);
+ await (await (driverTwo.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await CenterStart.click();
+ await Utils.sleep(800);
+ await (await (driverTwo.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await CenterEnd.click();
+ await Utils.sleep(800);
+ await (await (driverTwo.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await BottomStart.click();
+ await Utils.sleep(800);
+ await (await (driverTwo.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await BottomEnd.click();
+ await Utils.sleep(800);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0310
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0310
+ * @tc.desc 2、自定义弹窗正常弹出,且基于主窗口垂直顶部对齐,大小全屏
+ 3、点击cancel/confirm/蒙层/蒙层自定义弹窗关闭;点击click for dialog,自定义弹窗正常弹出,且基于主窗口垂直居中对齐,大小全屏
+ 4、点击cancel/confirm/蒙层/蒙层自定义弹窗关闭;点击click for dialog,自定义弹窗正常弹出,且基于主窗口垂直底部对齐,大小全屏
+ 5、点击cancel/confirm/蒙层/蒙层自定义弹窗关闭;点击click for dialog. 自定义弹窗正常弹出,且基于主窗口默认对齐,大小全屏
+ 6、点击cancel/confirm/蒙层/蒙层自定义弹窗关闭;点击click for dialog. 自定义弹窗正常弹出,且基于主窗口左上对齐,大小全屏
+ 7、点击cancel/confirm/蒙层/蒙层自定义弹窗关闭;点击click for dialog. 自定义弹窗正常弹出,且基于主窗口右上对齐,大小全屏
+ 8、点击cancel/confirm/蒙层/蒙层自定义弹窗关闭;点击click for dialog,自定义弹窗正常弹出,且基于主窗口左中对齐对齐,大小全
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0310', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0310");
+ await Utils.sleep(2000);
+ let driverOne = Driver.create();
+ let showButton = await driverOne.findComponent(ON.id('showButtons'));
+ let Top = await driverOne.findComponent(ON.id('Top'));
+ let Center = await driverOne.findComponent(ON.id('Center'));
+ let Bottom = await driverOne.findComponent(ON.id('Bottom'));
+ let Default = await driverOne.findComponent(ON.id('Default'));
+ let TopStart = await driverOne.findComponent(ON.id('TopStart'));
+ let TopEnd = await driverOne.findComponent(ON.id('TopEnd'));
+ let CenterStart = await driverOne.findComponent(ON.id('CenterStart'));
+ let CenterEnd = await driverOne.findComponent(ON.id('CenterEnd'));
+ let BottomStart = await driverOne.findComponent(ON.id('BottomStart'));
+ let BottomEnd = await driverOne.findComponent(ON.id('BottomEnd'));
+ await Utils.sleep(800);
+ await showButton.click();
+ await Utils.sleep(800);
+ let driverTwo = Driver.create();
+ await (await (driverTwo.findComponent(ON.id('button')))).click() //关闭弹窗窗口
+ await Utils.sleep(800);
+ await Top.click();
+ await Utils.sleep(800);
+ await (await (driverOne.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await Center.click();
+ await Utils.sleep(800);
+ await (await (driverOne.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await Bottom.click();
+ await Utils.sleep(800);
+ await (await (driverOne.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await Default.click();
+ await Utils.sleep(800);
+ await (await (driverTwo.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await TopStart.click();
+ await Utils.sleep(800);
+ await (await (driverTwo.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await TopEnd.click();
+ await Utils.sleep(800);
+ await (await (driverTwo.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await CenterStart.click();
+ await Utils.sleep(800);
+ await (await (driverTwo.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await CenterEnd.click();
+ await Utils.sleep(800);
+ await (await (driverTwo.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await BottomStart.click();
+ await Utils.sleep(800);
+ await (await (driverTwo.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await BottomEnd.click();
+ await Utils.sleep(800);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0320
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0320
+ * @tc.desc 验证在UIExtension中,设置showinSubWindow为true,设置对齐方式alignment的openCustomDialog可以正常弹出且基于主窗口对齐,大小是全屏的
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0320', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0320");
+ await Utils.sleep(2000);
+ let driver = Driver.create();
+ let driver1 = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ let Top = await driver.findComponent(ON.id('Top'));
+ let Center = await driver.findComponent(ON.id('Center'));
+ let Bottom = await driver.findComponent(ON.id('Bottom'));
+ let Default = await driver.findComponent(ON.id('Default'));
+ let TopStant = await driver.findComponent(ON.id('TopStant'));
+ let TopEnd = await driver.findComponent(ON.id('TopEnd'));
+ let CenterStart = await driver.findComponent(ON.id('CenterStart'));
+ let CenterEnd = await driver.findComponent(ON.id('CenterEnd'));
+ let BottomStart = await driver.findComponent(ON.id('BottomStart'));
+ let BottomEnd = await driver.findComponent(ON.id('BottomEnd'));
+ await Utils.sleep(800);
+ await showButton.click();
+ await Utils.sleep(800);
+ await (await (driver1.findComponent(ON.id('button')))).click() //关闭弹窗窗口
+ await Utils.sleep(800);
+ await Top.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await Center.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await Bottom.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await Default.click();
+ await Utils.sleep(800);
+ await (await (driver1.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await TopStant.click();
+ await Utils.sleep(800);
+ await (await (driver1.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await TopEnd.click();
+ await Utils.sleep(800);
+ await (await (driver1.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await CenterStart.click();
+ await Utils.sleep(800);
+ await (await (driver1.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await CenterEnd.click();
+ await Utils.sleep(800);
+ await (await (driver1.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await BottomStart.click();
+ await Utils.sleep(800);
+ await (await (driver1.findComponent(ON.id('button')))).click()
+ await Utils.sleep(800);
+ await BottomEnd.click();
+ await Utils.sleep(800);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0330
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0330
+ * @tc.desc 验证在UIExtension中,设置showInSubWindow为true,
+ * 设置对齐方式alignment的showDialog可以正常弹出且基于主窗口对齐,大小是全屏的
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_ALIGNMENT_0330', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0330");
+ await Utils.sleep(2000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtons'));
+ let Top = await driver.findComponent(ON.id('Top'));
+ let Center = await driver.findComponent(ON.id('Center'));
+ let Bottom = await driver.findComponent(ON.id('Bottom'));
+ let Default = await driver.findComponent(ON.id('Default'));
+ let TopStant = await driver.findComponent(ON.id('TopStant'));
+ let TopEnd = await driver.findComponent(ON.id('TopEnd'));
+ let CenterStart = await driver.findComponent(ON.id('CenterStart'));
+ let CenterEnd = await driver.findComponent(ON.id('CenterEnd'));
+ let BottomStart = await driver.findComponent(ON.id('BottomStart'));
+ let BottomEnd = await driver.findComponent(ON.id('BottomEnd'));
+ await Utils.sleep(800);
+ await showButton.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click() //关闭弹窗窗口
+ await Utils.sleep(800);
+ await Top.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await Center.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await Bottom.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await Default.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await TopStant.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await TopEnd.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await CenterStart.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await CenterEnd.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await BottomStart.click();
+ await Utils.sleep(800);
+ await (await (driver.findComponent(ON.text('button')))).click()
+ await Utils.sleep(800);
+ await BottomEnd.click();
+ await Utils.sleep(800);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+ })
+}
\ No newline at end of file
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..d3ac94ac212e523ae3eb3175a354e7ba153c2cfd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxStyleStrongTest/UIComponentPopupboxStyleStrong.test.ets
@@ -0,0 +1,684 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+
+import { Component, Driver ,ON } from '@ohos.UiTest'
+
+/*
+ * UIComponentPopupboxStyleStrong
+ *
+ * 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 UIComponentPopupboxStyleStrong() {
+
+ describe('UIComponentPopupboxStyleStrong', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0080.`);
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0080")
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100)
+ await Utils.sleep(100)
+ let AlertDialog40: Component = await driver.findComponent(ON.id('AlertDialog1'));
+ await driver.delayMs(100)
+ await AlertDialog40.click()
+ await driver.delayMs(600)
+ await Utils.sleep(600)
+ await AlertDialog40.click()
+ await driver.delayMs(600)
+ await Utils.sleep(600)
+
+ let AlertDialog100: Component = await driver.findComponent(ON.id('AlertDialog2'));
+ await driver.delayMs(100)
+ await AlertDialog100.click()
+ await driver.delayMs(600)
+ await Utils.sleep(600)
+ await AlertDialog40.click()
+ await driver.delayMs(600)
+ await Utils.sleep(600)
+
+ let AlertDialog10000: Component = await driver.findComponent(ON.id('AlertDialog3'));
+ await driver.delayMs(100)
+ await AlertDialog10000.click()
+ await driver.delayMs(600)
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0080 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0170
+ * @tc.desc CustomDialog当customStyle=trueCustomDialog默认效果
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0170");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0160
+ * @tc.desc CustomDialog当customStyle=falseCustomDialog默认效果
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0160");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0040
+ * @tc.desc actionSheet默认效果
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0040");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0030
+ * @tc.desc actionSheet配置模糊材质和分别为默认值,验证和不配置保持一致
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0030_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0030");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtonDefault'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0030
+ * @tc.desc actionSheet配置模糊材质和分别为默认值,验证和不配置保持一致
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0030_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0030");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtonBlur'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0190
+ * @tc.desc DatePickerDialog配置模糊材质和分别为默认值,验证和不配置保持一致
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0190_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0190");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtonDefault'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0190
+ * @tc.desc DatePickerDialog配置模糊材质和分别为默认值,验证和不配置保持一致
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0190_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0190");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtonBlur'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0060
+ * @tc.desc AlertDailog默认效果
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0060");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0140
+ * @tc.desc CustomDialog当customStyle=false,CustomDialog配置模糊材质和分别为默认值,验证和不配置保持一致
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0140_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0140");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtonDefault'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0140
+ * @tc.desc CustomDialog当customStyle=false,CustomDialog配置模糊材质和分别为默认值,验证和不配置保持一致
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0140_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0140");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtonBlur'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0230
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0230
+ * @tc.desc PromptAction.OpenCustomDialog配置模糊材质和分别为默认值,验证和不配置保持一致
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0230_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0230");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtonDefault'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0230
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0230
+ * @tc.desc PromptAction.OpenCustomDialog配置模糊材质和分别为默认值,验证和不配置保持一致
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0230_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0230");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtonBlur'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0150
+ * @tc.desc CustomDialog当customStyle=trueCustomDialog配置模糊材质和分别为默认值,验证和不配置保持一致
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0150_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0150");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtonBlur'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0150
+ * @tc.desc CustomDialog当customStyle=trueCustomDialog配置模糊材质和分别为默认值,验证和不配置保持一致
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0150_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0150");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtonDefault'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0130
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0130
+ * @tc.desc CustomDialog在不同设备上高度自适应
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0130_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0130");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton1'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0130
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0130
+ * @tc.desc CustomDialog在不同设备上高度自适应
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0130_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0130");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton2'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0130
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0130
+ * @tc.desc CustomDialog在不同设备上高度自适应
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0130_3', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0130");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButton3'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0050
+ * @tc.desc AlertDailog配置模糊材质和分别为默认值,验证和不配置保持一致
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0050_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0050");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtonBlur'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0050
+ * @tc.desc AlertDailog配置模糊材质和分别为默认值,验证和不配置保持一致
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0050_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0050");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('showButtonDefault'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0200
+ * @tc.desc DataPickerDialog默认效果
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0200_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0200");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('btn'));
+ await btn.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0200
+ * @tc.desc DataPickerDialog默认效果
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0200_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0200");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('btn'));
+ await btn.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0020
+ * @tc.desc actionSheet在不同设备上高度自适应
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0020_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0020");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('Action1'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0020
+ * @tc.desc actionSheet在不同设备上高度自适应
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0020_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0020");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('Action2'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0020
+ * @tc.desc actionSheet在不同设备上高度自适应
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0020_3', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0020");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('Action3'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0080
+ * @tc.desc AlterDailog在不同设备上高度自适应
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0080_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0080");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('AlertDialog1'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0080
+ * @tc.desc AlterDailog在不同设备上高度自适应
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0080_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0080");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('AlertDialog2'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0080
+ * @tc.desc AlterDailog在不同设备上高度自适应
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0080_3', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0080");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('AlertDialog3'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0220
+ * @tc.desc PromptAction.OpenCustomDialog在不同设备上高度自适应
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0220_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0220");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('openCustomDialog1'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0220
+ * @tc.desc PromptAction.OpenCustomDialog在不同设备上高度自适应
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0220_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0220");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('openCustomDialog2'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0220
+ * @tc.desc PromptAction.OpenCustomDialog在不同设备上高度自适应
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0220_3', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0220");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('openCustomDialog3'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0240
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0240
+ * @tc.desc PromptAction.OpenCustomDialog默认效果
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0240_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0240");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('openCustomDialog'));
+ await showButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0240
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0240
+ * @tc.desc PromptAction.OpenCustomDialog默认效果
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_STYLESTRONG_0240_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0240");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let showButton = await driver.findComponent(ON.id('openCustomDialog'));
+ await showButton.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/UIComponentScrollSwiperAcrossTest/UIComponentScrollSwiperAcross.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAcrossTest/UIComponentScrollSwiperAcross.test.ets
index 77c7949e6e7fe062286012c99cf86d77ba3f1087..eec99394e5c0864e5ebec2e2c1e79a3caba2e062 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAcrossTest/UIComponentScrollSwiperAcross.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAcrossTest/UIComponentScrollSwiperAcross.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperArrowHeadTest/UIComponentScrollSwiperArrowHead.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperArrowHeadTest/UIComponentScrollSwiperArrowHead.test.ets
index 1169f15bc574347f786ff4b08e067cb9c29150c0..929078bd350a063f0df5acd942ed7ce29d9af58a 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperArrowHeadTest/UIComponentScrollSwiperArrowHead.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperArrowHeadTest/UIComponentScrollSwiperArrowHead.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplaycountTest/UIComponentScrollSwiperDisplaycount.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplaycountTest/UIComponentScrollSwiperDisplaycount.test.ets
index d814c97a0e1cfcd9e1d41e2ad91f718b472128da..7c6c6bcd06726ca0e660871340e19e9ed723953e 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplaycountTest/UIComponentScrollSwiperDisplaycount.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplaycountTest/UIComponentScrollSwiperDisplaycount.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfaceTest/UIComponentScrollSwiperInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfaceTest/UIComponentScrollSwiperInterface.test.ets
index 3611b9713ea70203d241ba3138eefe536e5adbcd..df705d1391a50d8fbc557d999387f7814270d122 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfaceTest/UIComponentScrollSwiperInterface.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfaceTest/UIComponentScrollSwiperInterface.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperLayoutTest/UIComponentScrollSwiperLayout.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperLayoutTest/UIComponentScrollSwiperLayout.test.ets
index 445abeb08c950163382684dac11f370114b09185..a23228aa1bfdfd3eccac8b1552c1e1ed2e3df417 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperLayoutTest/UIComponentScrollSwiperLayout.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperLayoutTest/UIComponentScrollSwiperLayout.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperTeaceTest/UIComponentScrollSwiperTeace.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperTeaceTest/UIComponentScrollSwiperTeace.test.ets
index 45774daa06b73cc24a86ec09b5236769d0be1526..e31a127fa9e6f84d2373e519bb2218bfa622a251 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperTeaceTest/UIComponentScrollSwiperTeace.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperTeaceTest/UIComponentScrollSwiperTeace.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperUxTest/UIComponentScrollSwiperUx.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperUxTest/UIComponentScrollSwiperUx.test.ets
index 47cb0da7dbf8ad263f98c1a06e64617a281db99f..3789bea5f284cd5cfd056926c35fbcbf5580deca 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperUxTest/UIComponentScrollSwiperUx.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperUxTest/UIComponentScrollSwiperUx.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTabTabBarSymbolTest/UIComponentTabTabBarSymbol.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTabTabBarSymbolTest/UIComponentTabTabBarSymbol.test.ets
index 17371bd33b6103d8cb1a19d02cc62a1ef53345e1..196c98bc5f77b63a0730087f4f25ce82e1efb1e6 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTabTabBarSymbolTest/UIComponentTabTabBarSymbol.test.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTabTabBarSymbolTest/UIComponentTabTabBarSymbol.test.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
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..ab597bc37dc34d5eb284c91599ff0d6f4b3f106a 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
@@ -21,26 +21,24 @@ 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)}`)
- * */
-
export default function UIComponentUISupportColor() {
-
describe('UIComponentUISupportColor', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1010
@@ -66,6 +64,135 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0210_01
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0210_01
+ * @tc.desc 验证CheckBoxGroup组件跟随系统深浅颜色变化
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0210_01', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0210");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0210_02
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0210_02
+ * @tc.desc 验证CheckBoxGroup组件跟随系统深浅颜色变化
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0210_02', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0210");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let changeColorMode = await driver.findComponent(ON.id('changeColorMode'));
+ await changeColorMode.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0170
+ * @tc.desc 验证CheckBoxGroup组件动态切换深色模式-浅色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0170");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0170_01
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0170_01
+ * @tc.desc 验证CheckBoxGroup组件动态切换深色模式-浅色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0170_01', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0170");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0170_02
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0170_02
+ * @tc.desc 验证CheckBoxGroup组件动态切换深色模式-浅色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0170_02', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0170");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let changeColorMode = await driver.findComponent(ON.id('changeColorMode'));
+ await changeColorMode.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0220
+ * @tc.desc 验证CheckBox组件动态切换浅色模式-浅色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0220");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let changeColorMode = await driver.findComponent(ON.id('changeColorMode'));
+ await changeColorMode.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0270
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0270
+ * @tc.desc 验证CheckBox组件固定使用深色模式
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0270', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0270");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0260
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0260
+ * @tc.desc 验证CheckBox组件固定使用浅色模式
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0260', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0260");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0240
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0240
+ * @tc.desc 验证CheckBox组件动态切换深色模式-浅色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0240', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0240");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050
@@ -90,6 +217,19 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0240_01
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0240_01
+ * @tc.desc 验证CheckBox组件动态切换深色模式-浅色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0240_01', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0240");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050_1
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050_1
@@ -114,6 +254,23 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0240_02
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0240_02
+ * @tc.desc 验证CheckBox组件动态切换深色模式-浅色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0240_02', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0240");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let changeColorMode = await driver.findComponent(ON.id('changeColorMode'));
+ await changeColorMode.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1020
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1020
@@ -138,6 +295,23 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0250
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0250
+ * @tc.desc 验证CheckBox组件动态切换深色模式-深色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0250', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0250");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let changeColorMode = await driver.findComponent(ON.id('changeColorMode'));
+ await changeColorMode.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1040
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1040
@@ -158,6 +332,19 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0280
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0280
+ * @tc.desc 验证CheckBox组件跟随系统深浅颜色变化
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0280', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0280");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1000
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1000
@@ -182,6 +369,19 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0280_01
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0280_01
+ * @tc.desc 验证CheckBox组件跟随系统深浅颜色变化
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0280_01', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0280");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1030
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1030
@@ -202,6 +402,23 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0280_02
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0280_02
+ * @tc.desc 验证CheckBox组件跟随系统深浅颜色变化
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0280_02', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0280");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let changeColorMode = await driver.findComponent(ON.id('changeColorMode'));
+ await changeColorMode.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0990
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0990
@@ -226,6 +443,19 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0230
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0230
+ * @tc.desc 验证CheckBox组件动态切换浅色模式-深色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0230', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0230");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0940
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0940
@@ -250,6 +480,23 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0230_01
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0230_01
+ * @tc.desc 验证CheckBox组件动态切换浅色模式-深色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0230_01', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0230");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let changeColorMode = await driver.findComponent(ON.id('changeColorMode'));
+ await changeColorMode.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0930
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0930
@@ -274,6 +521,23 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0230_02
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0230_02
+ * @tc.desc 验证CheckBox组件动态切换浅色模式-深色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0230_02', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0230");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let changeColorMode = await driver.findComponent(ON.id('changeColorMode'));
+ await changeColorMode.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0970
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0970
@@ -294,6 +558,19 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0160
+ * @tc.desc 验证CheckBoxGroup组件动态切换浅色模式-深色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0160");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0980
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0980
@@ -323,6 +600,19 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0160_01
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0160_01
+ * @tc.desc 验证CheckBoxGroup组件动态切换浅色模式-深色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0160_01', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0160");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0920
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0920
@@ -347,6 +637,23 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0160_02
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0160_02
+ * @tc.desc 验证CheckBoxGroup组件动态切换浅色模式-深色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0160_02', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0160");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let changeColorMode = await driver.findComponent(ON.id('changeColorMode'));
+ await changeColorMode.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0960
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0960
@@ -367,6 +674,19 @@ export default function UIComponentUISupportColor() {
done();
})
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0200
+ * @tc.desc 验证CheckBoxGroup组件固定使用深色模式
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0200");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
/*
* @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0950
* @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0950
@@ -390,5 +710,52 @@ export default function UIComponentUISupportColor() {
Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0950 finish.`);
done();
})
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0150
+ * @tc.desc 验证CheckBoxGroup组件动态切换浅色模式-浅色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0150");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let changeColorMode = await driver.findComponent(ON.id('changeColorMode'));
+ await changeColorMode.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0180
+ * @tc.desc 验证CheckBoxGroup组件动态切换深色模式-深色模式正常切换
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0180");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let changeColorMode = await driver.findComponent(ON.id('changeColorMode'));
+ await changeColorMode.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0190
+ * @tc.desc 验证CheckBoxGroup组件固定使用浅色模式
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0190', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0190");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
})
-}
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIDataPickerDialogTest/UIComponentPopupbxstyleStrong.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIDataPickerDialogTest/UIComponentPopupbxstyleStrong.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c622e2b2c4bb1cd94568ea61d07c941f0c5f6e87
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIDataPickerDialogTest/UIComponentPopupbxstyleStrong.test.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 { 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 UIComponentPopupbxstyleStrong() {
+
+ describe('UIComponentPopupbxstyleStrong', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIDataPickerTest/UIComponentPopupbxPickrold.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIDataPickerTest/UIComponentPopupbxPickrold.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..04e2b0fd51773cc3b4edd5ec514ae439964fe7cb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIDataPickerTest/UIComponentPopupbxPickrold.test.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+
+import { Component, Driver ,ON } from '@ohos.UiTest'
+
+export default function UIComponentPopupbxPickrold() {
+
+ describe('UIComponentPopupbxPickrold', () => {
+
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets
index c74ae272407cbf707ddcfaaacf42c1e132d5452d..55fb3228a27c974f061402dee1273ab762fbaa52 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
@@ -21,7 +21,9 @@ import { BusinessError } from '@ohos.base'
import Window from '@ohos.window'
import common from '@ohos.app.ability.common';
import { i18n } from '@kit.LocalizationKit';
-import { router } from '@kit.ArkUI';
+import { router, uiAppearance } from '@kit.ArkUI';
+import Utils from './Utils';
+import { ConfigurationConstant } from '@kit.AbilityKit';
import { systemDateTime } from '@kit.BasicServicesKit';
const TAG: string = '[TEST]';
@@ -36,14 +38,14 @@ async function sleep(time: number): Promise {
}
class Settings {
- isPhone: boolean = true;
+ isPhone: boolean = false;
windowClass: window.Window | undefined = undefined
windowCreateType: string = "changeWindow";
private static DEFAULT_WIDTH: number = 720;
- private static DEFAULT_HEIGHT: number = 1280;
+ private static DEFAULT_HEIGHT: number = 1412;
private static DEFAULT_DPI: number = 240;
- private static DEFAULT_OFFSET_X: number = 0;
- private static DEFAULT_OFFSET_Y: number = 60;
+ private static DEFAULT_OFFSET_X: number = 100;
+ private static DEFAULT_OFFSET_Y: number = 132;
private portrait: boolean = true
changeWindowPosition(windowClass: window.Window, X: number | undefined, Y: number | undefined) {
@@ -145,6 +147,29 @@ 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}`);
+ }
+
/*
* 窗口页面更新
* 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/testability/TestAbility.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets
index 5b2992dcb24394039f4c71907479c34895c1a73a..e605ef6c85de2e0535604686554f35d83763ad11 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
@@ -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/UIComponentPopupboxSpecificationsAlignment0010Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0010Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b3e86ad8b2c7154c02e62e35134d7a83a4b1eddb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0010Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = 'y_yang'
+
+export default class UIComponentPopupboxSpecificationsAlignment0010Ability extends EmbeddedUIExtensionAbility {
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0010_1',
+ storage);
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0040Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0040Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..524120a25cd13d5c2db5947f0895d5c6b8528aca
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0040Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = 'y_yang'
+
+export default class UIComponentPopupboxSpecificationsAlignment0040Ability extends EmbeddedUIExtensionAbility {
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0040_1',
+ storage);
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0220Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0220Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..eb4d1bebb446e26cbadd9160307e955790c909cc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0220Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = 'y_yang'
+
+export default class UIComponentPopupboxSpecificationsAlignment0220Ability extends EmbeddedUIExtensionAbility {
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0220_1',
+ storage);
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0230Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0230Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4f40a567b12fdbe24ab240bcf2c817bb8ea537a8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0230Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = 'y_yang'
+
+export default class UIComponentPopupboxSpecificationsAlignment0230Ability extends EmbeddedUIExtensionAbility {
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0230_1',
+ storage);
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0240Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0240Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ac891ee1d6dbf534093c72bc6cee078d3f637bd6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0240Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = 'y_yang'
+
+export default class UIComponentPopupboxSpecificationsAlignment0240Ability extends EmbeddedUIExtensionAbility {
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0240_1',
+ storage);
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0250Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0250Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..627da7c54968c1b8d0d13713fdff855c4cab8303
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0250Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = 'y_yang'
+
+export default class UIComponentPopupboxSpecificationsAlignment0250Ability extends EmbeddedUIExtensionAbility {
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0250_1',
+ storage);
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0260Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0260Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0b28a881936707eba8f5e9f005153d93cbb62f36
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0260Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = 'y_yang'
+
+export default class UIComponentPopupboxSpecificationsAlignment0260Ability extends EmbeddedUIExtensionAbility {
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0260_1',
+ storage);
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0270Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0270Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..459d123e99a56a9b381019f3f61a8773f2ac8b7c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0270Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = 'y_yang'
+
+export default class UIComponentPopupboxSpecificationsAlignment0270Ability extends EmbeddedUIExtensionAbility {
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0270_1',
+ storage);
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0280Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0280Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ab03e4bf57736fe9115987b3b0bb82bd75fb619f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0280Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = 'y_yang'
+
+export default class UIComponentPopupboxSpecificationsAlignment0280Ability extends EmbeddedUIExtensionAbility {
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0280_1',
+ storage);
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0290Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0290Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7d556bf6e5e0c72e4abbfe4c3a2dea032bcec13e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0290Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = '[ExampleEmbeddedAbility]'
+export default class ExampleEmbeddedAbility extends EmbeddedUIExtensionAbility {
+
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0290_1', storage);
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0300Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0300Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d85b8a0ead6d380a9a4c9279e74d90454160854b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0300Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = 'y_yang'
+
+export default class UIComponentPopupboxSpecificationsAlignment0300Ability extends EmbeddedUIExtensionAbility {
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0300_1',
+ storage);
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0310Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0310Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..583c88461580c1e5a43926f6f5470d088d4ef03c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0310Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = 'y_yang'
+
+export default class UIComponentPopupboxSpecificationsAlignment0310Ability extends EmbeddedUIExtensionAbility {
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0310_1',
+ storage);
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0320Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0320Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..12d1ef04f7de96aa5a0692ad286d0d307e85977e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0320Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = '[ExampleEmbeddedAbility]'
+export default class ExampleEmbeddedAbility extends EmbeddedUIExtensionAbility {
+
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0320_1', storage);
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0330Ability.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0330Ability.ets
new file mode 100644
index 0000000000000000000000000000000000000000..55f4a94012befc9a7d3d9d62cbf75857f4006bfb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UIComponentPopupboxSpecificationsAlignment0330Ability.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 { EmbeddedUIExtensionAbility, UIExtensionContentSession, Want } from '@kit.AbilityKit';
+
+const TAG: string = '[ExampleEmbeddedAbility]'
+export default class UIComponentPopupboxSpecificationsAlignment0330Ability extends EmbeddedUIExtensionAbility {
+
+ onCreate() {
+ console.info(TAG, `onCreate`);
+ }
+
+ onForeground() {
+ console.info(TAG, `onForeground`);
+ }
+
+ onBackground() {
+ console.info(TAG, `onBackground`);
+ }
+
+ onDestroy() {
+ console.info(TAG, `onDestroy`);
+ }
+
+ onSessionCreate(want: Want, session: UIExtensionContentSession) {
+ console.info(TAG, `onSessionCreate, want: ${JSON.stringify(want)}`);
+ let param: Record = {
+ 'session': session
+ };
+ let storage: LocalStorage = new LocalStorage(param);
+ session.loadContent('testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0330_1', storage);
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e89c15128bd78294d0223aa36d0a57da211d4f1e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0090.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0090 {
+
+ build() {
+ Column() {
+ Button('title_string_lam 弹窗标题按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'lam 弹窗标题',
+ subtitle:'',
+ message:'message',
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c1abe1640ce3f85459ea098f055b56e5dc37272f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0100.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0100 {
+
+ build() {
+ Column() {
+ Button('title_string_按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'',
+ subtitle:'',
+ message:'message',
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cff1151fe8651360a20bb5b33b74a2b3dacb7b57
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0110.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0110 {
+
+ build() {
+ Column() {
+ Button('title_Resource按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:$r('app.string.module_test_desc'),
+ subtitle:'',
+ message:'message',
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0f2f71f002365ab3f6b8383289c2d4d3c6d0cd01
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0120.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0120 {
+
+ build() {
+ Column() {
+ Button('subtitle_string_lam 弹窗副标题按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'lam 弹窗副标题',
+ message:'message',
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a3965715ca0676de1547c36905a05cc7f417e913
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0130.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0130 {
+
+ build() {
+ Column() {
+ Button('subtitle_string_按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'',
+ message:'message',
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7cbf1bdb6549f2aabc75c4f95a87d58e230a484d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0140.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0140 {
+
+ build() {
+ Column() {
+ Button('subtitle_string 超长字符串按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle ActionSheet subtitle ActionSheet subtitle ActionSheet subtitle ActionSheet subtitle ActionSheet subtitle',
+ message:'message',
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5299d419f7d234041bc6eb8a6c3ed3ba25be4fbb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0150.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0150 {
+
+ build() {
+ Column() {
+ Button('subtitle_string按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:$r('app.string.module_test_desc'),
+ message:'message',
+ backgroundBlurStyle:BlurStyle.COMPONENT_REGULAR,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..155e82a19b901d1006826edf603c1f9aa240d522
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0160.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0160 {
+
+ build() {
+ Column() {
+ Button('message_string_Iam superStar,我就是列表选择弹窗的弹窗内容本容按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'Iam superStar,我就是列表选择弹窗的弹窗内容本容',
+ backgroundBlurStyle:BlurStyle.COMPONENT_ULTRA_THICK,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4ab090c7758a3c01a8e429559fcf5797566c785d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0170.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0170 {
+
+ build() {
+ Column() {
+ Button('message_string按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'',
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ cancel: () => {
+ console.log('actionSheet canceled')
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8129b7c45e88e387a24085d5e2d1af94f6c158c0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0180.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0180 {
+ build() {
+ Column() {
+ Button('message_Resource按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: $r('app.string.module_test_desc'),
+ backgroundBlurStyle: BlurStyle.COMPONENT_REGULAR,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d0ddf6eeecb9885e7a49a748bdc88a4df28b1fb4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0190.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0190 {
+ build() {
+ Column() {
+ Button('offset_Resource按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ offset: { dx: $r('app.integer.actionsheetoffsetx'), dy: $r('app.integer.actionsheetoffsety') },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6aabe4ff6e0802e49e959d902260a756fc5933b7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0200.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0200 {
+
+ build() {
+ Column() {
+ Button('offset_string_按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ offset: { dx: '30%', dy: '-30%' },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8247637ebb360327cfa811980734afc993eeca97
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0210.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0210 {
+ build() {
+ Column() {
+ Button('offset_number按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ offset: { dx: 50.5, dy: 50.5 },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1ff817a2c79052a190f373931056f65d2429634b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0220.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0220 {
+
+ build() {
+ Column() {
+ Button('maskRect_maskRect{}按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ maskRect:{},
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c7040ad2d2c8c083940f66d8639ba387c0bc7363
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0230.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0230 {
+ build() {
+ Column() {
+ Button('maskRect_string_x:50px按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { x: '50px' },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9c846dd24985ff8de2d5b890668f9ab451948894
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0240.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0240 {
+ build() {
+ Column() {
+ Button('maskRect string_x:按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { x: '' },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5154e68f9ffd99e23eb872424c0c78f92aa3db63
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0250.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0250 {
+ build() {
+ Column() {
+ Button('maskRect_number_x:100按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { x: 100 },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..79351746ecaf0883c5068d61bb288fa0b6b22fa6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0260.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0260 {
+ build() {
+ Column() {
+ Button('maskRect Resource_x:$r(50%)按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { x: $r('app.string.action_sheet_maskrectx') },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f65ebc6eef9e26ce7d63f641a852654d9c78541b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0270.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0270 {
+ build() {
+ Column() {
+ Button('maskRect_x:NULL按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { x: null },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..76fc882c4d07938bb8ffe2926ae16603152cdcc9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0280.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0280 {
+ build() {
+ Column() {
+ Button('maskRect_string_y:60%按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { x: '60%' },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e63533d0ccdada0740a2849d5ddf78a2ea2a1bf6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0290.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0290 {
+ build() {
+ Column() {
+ Button('maskRect_string_y:按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { y: '' },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f9027be7e065dd9d9529fd3e9fb0ba23be7b664e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0300.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0300 {
+ build() {
+ Column() {
+ Button('maskRect_number_y:-100按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { y: -100 },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ebce5128c5c0ffec8371e4fd6bad4ca66072a33f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0310.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0310 {
+ build() {
+ Column() {
+ Button('maskRect_Resource_y:$r(200px)按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { y: $r('app.string.action_sheet_maskrecty') },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6f4bba6ae98d704c8842ff136a93943eccd3ec54
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0320.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0320 {
+ build() {
+ Column() {
+ Button('maskRect_y:undefined按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { y: undefined },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0330.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dee3711720f803199ec3898feb6954f9b3825820
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0330.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0330 {
+ build() {
+ Column() {
+ Button('maskRect _string_width: 40%按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { width: '40%' },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0340.ets
new file mode 100644
index 0000000000000000000000000000000000000000..174270dfc6bc701bfa97842e188e6e95f2ddc1c0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0340.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0340 {
+ build() {
+ Column() {
+ Button('maskRect_number_width:200按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { width: 200 },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0350.ets
new file mode 100644
index 0000000000000000000000000000000000000000..794f719dda618eb17b899dd37e2184fe50459f97
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0350.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0350 {
+ build() {
+ Column() {
+ Button('maskRect_Resource_width:$r( 300px)按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { width: $r('app.string.action_sheet_maskrectw') },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1615f67a627322a9c54226cee348131bc9b9d60e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0360.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0360 {
+ build() {
+ Column() {
+ Button('maskRect_width:-200按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { width: -200 },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0370.ets
new file mode 100644
index 0000000000000000000000000000000000000000..da2dfcca96b5ae5fcaa7bb8df396025032972e21
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0370.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0370 {
+ build() {
+ Column() {
+ Button('maskRect_string_height: 200px按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { height: '200px' },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4eac80d1d9746fc0385a00f00e1700e195ec15df
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0380.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0380 {
+ build() {
+ Column() {
+ Button('maskRect_number_height:200按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { height: 200 },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..538fdd7c7ab7582cafef99fa0c7a2fdda543e6da
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0390.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0390 {
+ build() {
+ Column() {
+ Button('maskRect Resource height:$r(60%)按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { height: $r('app.string.action_sheet_maskrecth') },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..019d4f2a551758d6e18d4390a43f2f8a9c25ae0e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0400.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0400 {
+ build() {
+ Column() {
+ Button('maskRect height:-60%按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ maskRect: { height: '-60%' },
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0410.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7716b36789bb78f149d9dace2b0289687b206c35
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0410.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0410 {
+ build() {
+ Column() {
+ Button('isModal_true按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ isModal: true,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0420.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b85c0b4b1687a37cf874125fb73ae64dd3e5f4dc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0420.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0420 {
+ build() {
+ Column() {
+ Button('isModal_false按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ isModal: false,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0430.ets
new file mode 100644
index 0000000000000000000000000000000000000000..368c00e7b7d27f3ccee98cbb57eece933c628b18
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0430.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0430 {
+ build() {
+ Column() {
+ Button('backgroundColor_Color.Red按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ backgroundColor: Color.Red,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0440.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3359580bb853058dab9eeaadabfacd58bd0f841b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0440.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0440 {
+ build() {
+ Column() {
+ Button('backgroundColor_number按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ backgroundColor: 0xFF0000,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0450.ets
new file mode 100644
index 0000000000000000000000000000000000000000..afe805006287479faba7bc5236a0859a0664ad88
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0450.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0450 {
+ build() {
+ Column() {
+ Button('backgroundColor_string按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ backgroundColor: ('rgb(0, 128, 0)'),
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0460.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5094e63eeb1da740e09446034f72416d17e89b64
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0460.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0460 {
+ build() {
+ Column() {
+ Button('backgroundColor_Resource按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ backgroundColor: $r('app.string.action_sheet_backgroundcolor'),
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0470.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6efc14f9d65b8ac1cc68bb35b1714836a485542e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0470.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0470 {
+
+ build() {
+ Column() {
+ Button('backgroundBlurStyle_Thin按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ backgroundBlurStyle:BlurStyle.Thin,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0480.ets
new file mode 100644
index 0000000000000000000000000000000000000000..43e888789d73d53f087b4dc48a781f74120d544f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0480.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0480 {
+
+ build() {
+ Column() {
+ Button('backgroundBlurStyle_Regular按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ backgroundBlurStyle:BlurStyle.Regular,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0490.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3f43814c371f22cf6e83a9a650cf9cb9ab48b463
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0490.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0490 {
+
+ build() {
+ Column() {
+ Button('backgroundBlurStyle_Thick按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ backgroundBlurStyle:BlurStyle.Thick,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0500.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f23d2aa50da280cd2c5d1947856886c754eb2fd1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0500.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0500 {
+
+ build() {
+ Column() {
+ Button('backgroundBlurStyle_BACKGROUND_THIN按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ backgroundBlurStyle:BlurStyle.BACKGROUND_THIN,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0510.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3cd8bfaa03dad174c9c29e3b999d40046f1e798c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0510.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0510 {
+
+ build() {
+ Column() {
+ Button('backgroundBlurStyle_BACKGROUND_REGULAR按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ backgroundBlurStyle:BlurStyle.BACKGROUND_REGULAR,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0520.ets
new file mode 100644
index 0000000000000000000000000000000000000000..083cbae760f330676842bef4313f47813317b90d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0520.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0520 {
+
+ build() {
+ Column() {
+ Button('backgroundBlurStyle_BACKGROUND_THICK按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ backgroundBlurStyle:BlurStyle.BACKGROUND_THICK,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0530.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bf952fcfedde69448ff10ddb7c763da15e06d839
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0530.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0530 {
+
+ build() {
+ Column() {
+ Button('backgroundBlurStyle_BACKGROUND_ULTRA_THICK按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ backgroundBlurStyle:BlurStyle.BACKGROUND_ULTRA_THICK,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0540.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2fa41797d8148c3d14e70c2ef6b772ad39ddbc7e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0540.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0540 {
+
+ build() {
+ Column() {
+ Button('backgroundBlurStyle_NONE按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ backgroundBlurStyle:BlurStyle.NONE,
+ confirm: {
+ defaultFocus: true,
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0550.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2eccb2196088f19a13cea2dedf9c9a43149a2115
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0550.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0550 {
+
+ build() {
+ Column() {
+ Button('backgroundBlurStyle_COMPONENT_ULTRA_THIN按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ backgroundBlurStyle:BlurStyle.COMPONENT_ULTRA_THIN,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0560.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cdee8951cd6e249c1f60e8213e256b924db342da
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0560.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0560 {
+
+ build() {
+ Column() {
+ Button('backgroundBlurStyle_COMPONENT_THIN按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ backgroundBlurStyle:BlurStyle.COMPONENT_THIN,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0570.ets
new file mode 100644
index 0000000000000000000000000000000000000000..777efc43f39af81d7881c8b589c2770cb9cd2585
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0570.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0570 {
+
+ build() {
+ Column() {
+ Button('backgroundBlurStyle_COMPONENT_REGULAR按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ backgroundBlurStyle:BlurStyle.COMPONENT_REGULAR,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0580.ets
new file mode 100644
index 0000000000000000000000000000000000000000..11599bbeb631a17b9fdd2d0c0632ca68bca82960
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0580.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0580 {
+
+ build() {
+ Column() {
+ Button('backgroundBlurStyle_COMPONENT_THICK按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ backgroundBlurStyle:BlurStyle.COMPONENT_THICK,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0590.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7ea5df79eb6fa60380855830be409310a1316894
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0590.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 ARKUIComponentFunctionSpecialComponentsDialogActionSheet0590 {
+
+ build() {
+ Column() {
+ Button('backgroundBlurStyle_COMPONENT_ULTRA_THICK按钮')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'ActionSheet title',
+ subtitle:'ActionSheet subtitle',
+ message:'message',
+ backgroundBlurStyle:BlurStyle.COMPONENT_ULTRA_THICK,
+ confirm: {
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: []
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..82d7b07b15d619097b2e875f96078a1eaa99f557
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0020.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { i18n } from '@kit.LocalizationKit';
+
+@Entry
+@Component
+struct ArkuiComponentfunctionSpecialcomponentsDialogMirror0020 {
+ @State language: string = "";
+
+ aboutToAppear(): void {
+ this.language = i18n.System.getAppPreferredLanguage();
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Flex({
+ direction: FlexDirection.Row,
+ wrap: FlexWrap.NoWrap,
+ justifyContent: FlexAlign.SpaceBetween,
+ alignItems: ItemAlign.Center
+ }) {
+ Text('1').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Red)
+ Text('2').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Green)
+ Text('3').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Blue)
+ }
+ .height(70)
+ .width('90%')
+ .backgroundColor("#ffe3e3e3")
+ Text("当前系统语言:" + this.language)
+ }
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c2bfd1afaba24a69bae8db1394a1a64b0df99786
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0030.ets
@@ -0,0 +1,80 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { i18n } from '@kit.LocalizationKit';
+import { LengthMetrics } from '@kit.ArkUI';
+
+@CustomDialog
+struct Dialog0030 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: Dialog0030()
+ });
+
+ build() {
+ Column() {
+ Flex({
+ direction: FlexDirection.Row,
+ wrap: FlexWrap.NoWrap,
+ justifyContent: FlexAlign.SpaceBetween,
+ alignItems: ItemAlign.Center
+ }) {
+ Text('1').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Red)
+ Text('2').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Green)
+ Text('3').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Blue)
+ }
+ .height(70)
+ .width('90%')
+ .backgroundColor("#ffe3e3e3")
+ }
+ .width("100%")
+ .height("80%")
+ .backgroundColor(Color.White)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .borderRadius({
+ topStart: LengthMetrics.vp(40),
+ topEnd: LengthMetrics.vp(20),
+ bottomStart: LengthMetrics.vp(40),
+ bottomEnd: LengthMetrics.vp(20)
+ })
+ }
+}
+
+@Entry
+@Component
+struct ArkuiComponentfunctionSpecialcomponentsDialogMirror0030 {
+ @State language: string = "";
+ expectLanguage: string = "ug-CN";
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: Dialog0030(),
+ customStyle: true
+ });
+
+ aboutToAppear(): void {
+ this.language = i18n.System.getAppPreferredLanguage();
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Text("当前系统语言:" + this.language)
+ Button("打开弹窗")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b9ef74c70649b0839e705d0a63133e9b705d8dc6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0040.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 { i18n } from '@kit.LocalizationKit';
+import { LengthMetrics } from '@kit.ArkUI';
+
+@CustomDialog
+struct Dialog0040 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: Dialog0040()
+ });
+ build() {
+ Column()
+ .width("100%")
+ .height("80%")
+ .backgroundColor(Color.White)
+ .borderWidth({
+ top: LengthMetrics.px(60),
+ end: LengthMetrics.px(30),
+ bottom: LengthMetrics.px(30),
+ start: LengthMetrics.px(60)
+ })
+ }
+}
+
+@Entry
+@Component
+struct ArkuiComponentfunctionSpecialcomponentsDialogMirror0040 {
+ @State language: string = "";
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: Dialog0040(),
+ customStyle: true
+ });
+ aboutToAppear(): void {
+ this.language = i18n.System.getAppPreferredLanguage();
+ }
+ build() {
+ Column({ space: 20 }) {
+ Text("当前系统语言:" + this.language)
+ Button("打开弹窗")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cda1c72ddd67ef39ffad5e818899068648dd0c26
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0050.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 { i18n } from '@kit.LocalizationKit';
+import { LengthMetrics } from '@kit.ArkUI';
+
+@CustomDialog
+struct Dialog0050 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: Dialog0050()
+ });
+
+ build() {
+ Column() {
+ }
+ .width("100%")
+ .height("80%")
+ .backgroundColor(Color.White)
+ .borderWidth({
+ top: LengthMetrics.px(60),
+ end: LengthMetrics.px(60),
+ bottom: LengthMetrics.px(60),
+ start: LengthMetrics.px(60)
+ })
+ .borderColor({
+ top: Color.Red,
+ end: Color.Green,
+ bottom: Color.Black,
+ start: Color.Brown
+ })
+ }
+}
+
+@Entry
+@Component
+struct ArkuiComponentfunctionSpecialcomponentsDialogMirror0050 {
+ @State language: string = "";
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: Dialog0050(),
+ customStyle: true
+ })
+
+ aboutToAppear(): void {
+ this.language = i18n.System.getAppPreferredLanguage();
+ }
+
+ build() {
+ Column({ space: 20 }) {
+
+ Text("当前系统语言:" + this.language)
+ Button("打开弹窗")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2f1380e57dce02f4495b45593ff7397287bf153e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0060.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 '@kit.LocalizationKit';
+
+@Entry
+@Component
+struct ArkuiComponentfunctionSpecialcomponentsDialogMirror0060 {
+ @State language: string = "";
+ expectLanguage: string = "zh-Hant-CN";
+
+ aboutToAppear(): void {
+ this.language = i18n.System.getAppPreferredLanguage();
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Flex({
+ direction: FlexDirection.Row,
+ wrap: FlexWrap.NoWrap,
+ justifyContent: FlexAlign.SpaceBetween,
+ alignItems: ItemAlign.Center
+ }) {
+ Text('1').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Red)
+ Text('2').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Green)
+ Text('3').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Blue)
+ }
+ .height(70)
+ .width('90%')
+ .backgroundColor("#ffe3e3e3")
+ Text("当前系统语言:" + this.language)
+ Button("改变系统语言:繁体中文")
+ .id("setLanguage")
+ .onClick(() => {
+ i18n.System.setAppPreferredLanguage(this.expectLanguage);
+ })
+ Button("获取当前系统语言")
+ .id("getLanguage")
+ .onClick(() => {
+ this.language = i18n.System.getAppPreferredLanguage();
+ })
+ }
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..de9ea74a9ca2c50da6a319d43d091f92e9d03fa6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0070.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 { i18n } from '@kit.LocalizationKit';
+
+@CustomDialog
+struct Dialog0070 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: Dialog0070
+ });
+ @State offsetX: number = 0;
+ @State offsetY: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Button("上偏移40px")
+ .id("up")
+ .onClick(() => {
+ this.offsetY = -40;
+ })
+ Button("下偏移40px")
+ .id("down")
+ .onClick(() => {
+ this.offsetY = 40;
+ })
+ Button("左偏移40px")
+ .id("left")
+ .onClick(() => {
+ this.offsetX = -40;
+ })
+ Button("右偏移40px")
+ .id("right")
+ .onClick(() => {
+ this.offsetX = 40;
+ })
+ }
+ .width(300)
+ .height(300)
+ .offset({
+ x: this.offsetX,
+ y: this.offsetY
+ })
+ .backgroundColor(Color.White)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Entry
+@Component
+struct ArkuiComponentfunctionSpecialcomponentsDialogMirror0070 {
+ @State language: string = "";
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: Dialog0070(),
+ customStyle: true
+ });
+ expectLanguage: string = "ug-CN";
+ aboutToAppear(): void {
+ this.language = i18n.System.getAppPreferredLanguage();
+ }
+ build() {
+ Column({space:10}) {
+ Text("当前系统语言:" + this.language)
+ Button("改变系统语言:维吾尔语")
+ .id("setLanguage")
+ .onClick(() => {
+ i18n.System.setAppPreferredLanguage(this.expectLanguage);
+ })
+ Button("获取当前系统语言")
+ .id("getLanguage")
+ .onClick(() => {
+ this.language = i18n.System.getAppPreferredLanguage();
+ })
+ Button("打开弹窗")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.open();
+ })
+ }
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..848fd1f51af37f7575af1a3141fe49ae8f04391d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0080.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 { i18n } from '@kit.LocalizationKit';
+
+@CustomDialog
+struct Dialog0080A {
+ dialogControllerA: CustomDialogController = new CustomDialogController({
+ builder: Dialog0080A({})
+ });
+ openDialogB:()=>void = ()=>{};
+ build() {
+ Column({space:10}) {
+ Text("一级弹窗")
+ .fontSize(20)
+ Button("打开二级弹窗")
+ .id("open2")
+ .onClick(() => {
+ this.openDialogB();
+ })
+ }
+ .id("A")
+ .width("100%")
+ .height("80%")
+ .backgroundColor(Color.White)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+@CustomDialog
+struct Dialog0080B {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: Dialog0080B()
+ });
+ openDialogC:()=>void = ()=>{};
+ build() {
+ Column() {
+ Text("二级弹窗")
+ .fontSize(20)
+ Button("打开三级弹窗")
+ .id("open3")
+ .onClick(() => {
+ this.openDialogC();
+ })
+ }
+ .id("B")
+ .width("100%")
+ .height("70%")
+ .backgroundColor(Color.White)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+@CustomDialog
+struct Dialog0080C {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: Dialog0080C()
+ });
+ build() {
+ Column({space:10}) {
+ Text("三级弹窗")
+ .fontSize(20)
+ Flex({
+ direction: FlexDirection.Row,
+ wrap: FlexWrap.NoWrap,
+ justifyContent: FlexAlign.SpaceBetween,
+ alignItems: ItemAlign.Center
+ }) {
+ Text('1').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Red)
+ Text('2').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Green)
+ Text('3').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Blue)
+ }
+ .height(70)
+ .width('90%')
+ .backgroundColor("#ffe3e3e3")
+ }
+ .width("100%")
+ .height("60%")
+ .backgroundColor(Color.White)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Entry
+@Component
+struct ArkuiComponentfunctionSpecialcomponentsDialogMirror0080 {
+ @State language: string = "";
+ expectLanguage: string = "ug-CN";
+ private dialogControllerA: CustomDialogController = new CustomDialogController({
+ builder: Dialog0080A({
+ openDialogB:()=>{
+ this.dialogControllerB.open();
+ }
+ }),
+ alignment:DialogAlignment.Bottom
+ });
+ private dialogControllerB: CustomDialogController = new CustomDialogController({
+ builder: Dialog0080B({
+ openDialogC:()=>{
+ this.dialogControllerC.open();
+ }
+ }),
+ alignment:DialogAlignment.Bottom
+ });
+
+ private dialogControllerC: CustomDialogController = new CustomDialogController({
+ builder: Dialog0080C(),
+ alignment:DialogAlignment.Bottom
+ });
+
+ aboutToAppear(): void {
+ this.language = i18n.System.getAppPreferredLanguage();
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Text("当前系统语言:" + this.language)
+ Button("改变系统语言:维吾尔语")
+ .id("setLanguage")
+ .onClick(() => {
+ i18n.System.setAppPreferredLanguage(this.expectLanguage);
+ })
+ Button("获取当前系统语言")
+ .id("getLanguage")
+ .onClick(() => {
+ this.language = i18n.System.getAppPreferredLanguage();
+ })
+ Button("打开一级弹窗")
+ .id("open1")
+ .onClick(() => {
+ this.dialogControllerA.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/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a348d87deab1efd8e452a660a5a8e003b349e6f7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0100.ets
@@ -0,0 +1,90 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { i18n } from '@kit.LocalizationKit';
+import { LengthMetrics } from '@kit.ArkUI';
+
+@CustomDialog
+struct Dialog0100 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: Dialog0100()
+ });
+
+ build() {
+ Column() {
+ Flex({
+ direction: FlexDirection.Row,
+ wrap: FlexWrap.NoWrap,
+ justifyContent: FlexAlign.SpaceBetween,
+ alignItems: ItemAlign.Center
+ }) {
+ Text('1').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Red)
+ Text('2').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Green)
+ Text('3').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Blue)
+ }
+ .height(70)
+ .width('90%')
+ .backgroundColor("#ffe3e3e3")
+ }
+ .width("100%")
+ .height("80%")
+ .backgroundColor(Color.White)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .borderRadius({
+ topStart: LengthMetrics.vp(40),
+ topEnd: LengthMetrics.vp(20),
+ bottomStart: LengthMetrics.vp(40),
+ bottomEnd: LengthMetrics.vp(20)
+ })
+ }
+}
+
+@Entry
+@Component
+struct ArkuiComponentfunctionSpecialcomponentsDialogMirror0100 {
+ @State language: string = "";
+ expectLanguage: string = "ug-CN";
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: Dialog0100(),
+ customStyle: true
+ });
+
+ aboutToAppear(): void {
+ this.language = i18n.System.getAppPreferredLanguage();
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Text("当前系统语言:" + this.language)
+ Button("改变系统语言:维吾尔语")
+ .id("setLanguage")
+ .onClick(() => {
+ i18n.System.setAppPreferredLanguage(this.expectLanguage);
+ })
+ Button("获取当前系统语言")
+ .id("getLanguage")
+ .onClick(() => {
+ this.language = i18n.System.getAppPreferredLanguage();
+ })
+ Button("打开弹窗")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e1abd74fcd4fc7da531bfe08ebb1f6a829b37e15
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0110.ets
@@ -0,0 +1,87 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 '@kit.LocalizationKit';
+import { LengthMetrics } from '@kit.ArkUI';
+
+@CustomDialog
+struct Dialog0110 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: Dialog0110()
+ });
+ build() {
+ Column() {
+ Flex({
+ direction: FlexDirection.Row,
+ wrap: FlexWrap.NoWrap,
+ justifyContent: FlexAlign.SpaceBetween,
+ alignItems: ItemAlign.Center
+ }) {
+ Text('1').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Red)
+ Text('2').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Green)
+ Text('3').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Blue)
+ }
+ .height(70)
+ .width('90%')
+ .backgroundColor("#ffe3e3e3")
+ }
+ .width("100%")
+ .height("80%")
+ .backgroundColor(Color.White)
+ .borderWidth({
+ top: LengthMetrics.px(60),
+ end: LengthMetrics.px(30),
+ bottom: LengthMetrics.px(30),
+ start: LengthMetrics.px(60)
+ })
+ }
+}
+
+@Entry
+@Component
+struct ArkuiComponentfunctionSpecialcomponentsDialogMirror0110 {
+ @State language: string = "";
+ expectLanguage: string = "ug-CN";
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: Dialog0110(),
+ customStyle: true
+ });
+
+ aboutToAppear(): void {
+ this.language = i18n.System.getAppPreferredLanguage();
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Text("当前系统语言:" + this.language)
+ Button("改变系统语言:维吾尔语")
+ .id("setLanguage")
+ .onClick(() => {
+ i18n.System.setAppPreferredLanguage(this.expectLanguage);
+ })
+ Button("获取当前系统语言")
+ .id("getLanguage")
+ .onClick(() => {
+ this.language = i18n.System.getAppPreferredLanguage();
+ })
+ Button("打开弹窗")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3b4ba1cd9af76b3c21de8dbab2b5d2ea9c8692bf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0120.ets
@@ -0,0 +1,80 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { i18n } from '@kit.LocalizationKit';
+import { LengthMetrics } from '@kit.ArkUI';
+
+@CustomDialog
+struct Dialog0120 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: Dialog0120()
+ });
+ build() {
+ Column() {
+ }
+ .width("100%")
+ .height("80%")
+ .backgroundColor(Color.White)
+ .borderColor({
+ top: Color.Red,
+ end: Color.Green,
+ bottom: Color.Black,
+ start: Color.Brown
+ })
+ .borderWidth({
+ top: LengthMetrics.px(60),
+ end: LengthMetrics.px(60),
+ bottom: LengthMetrics.px(60),
+ start: LengthMetrics.px(60)
+ })
+ }
+}
+
+@Entry
+@Component
+struct ArkuiComponentfunctionSpecialcomponentsDialogMirror0120 {
+ @State language: string = "";
+ expectLanguage: string = "ug-CN";
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: Dialog0120(),
+ customStyle: true
+ });
+
+ aboutToAppear(): void {
+ this.language = i18n.System.getAppPreferredLanguage();
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Text("当前系统语言:" + this.language)
+ Button("改变系统语言:维吾尔语")
+ .id("setLanguage")
+ .onClick(() => {
+ i18n.System.setAppPreferredLanguage(this.expectLanguage);
+ })
+ Button("获取当前系统语言")
+ .id("getLanguage")
+ .onClick(() => {
+ this.language = i18n.System.getAppPreferredLanguage();
+ })
+ Button("打开弹窗")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..63bf381ee852a2cd24b4f1488df085da7a2f2403
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0140.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 '@kit.LocalizationKit';
+
+@Entry
+@Component
+struct ArkuiComponentfunctionSpecialcomponentsDialogMirror0140 {
+ @State language: string = "";
+ expectLanguage: string = "en-Latn-CN";
+
+ aboutToAppear(): void {
+ this.language = i18n.System.getAppPreferredLanguage();
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Flex({
+ direction: FlexDirection.Row,
+ wrap: FlexWrap.NoWrap,
+ justifyContent: FlexAlign.SpaceBetween,
+ alignItems: ItemAlign.Center
+ }) {
+ Text('1').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Red)
+ Text('2').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Green)
+ Text('3').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Blue)
+ }
+ .height(70)
+ .width('90%')
+ .backgroundColor("#ffe3e3e3")
+ Text("当前系统语言:" + this.language)
+ Button("改变系统语言:英文")
+ .id("setLanguage")
+ .onClick(() => {
+ i18n.System.setAppPreferredLanguage(this.expectLanguage);
+ })
+ Button("获取当前系统语言")
+ .id("getLanguage")
+ .onClick(() => {
+ this.language = i18n.System.getAppPreferredLanguage();
+ })
+ }
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..42d4b19fc733135316e811ff13319abad0ed480a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0150.ets
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { i18n } from '@kit.LocalizationKit';
+
+@Entry
+@Component
+struct ArkuiComponentfunctionSpecialcomponentsDialogMirror0150 {
+ @State language: string = "";
+ expectLanguage: string = "bo-CN";
+ aboutToAppear(): void {
+ this.language = i18n.System.getAppPreferredLanguage();
+ }
+ build() {
+ Column({ space: 20 }) {
+ Flex({
+ direction: FlexDirection.Row,
+ wrap: FlexWrap.NoWrap,
+ justifyContent: FlexAlign.SpaceBetween,
+ alignItems: ItemAlign.Center
+ }) {
+ Text('1').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Red)
+ Text('2').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Green)
+ Text('3').fontColor(Color.White).width('30%').height(50).backgroundColor(Color.Blue)
+ }
+ .height(70)
+ .width('90%')
+ .backgroundColor("#ffe3e3e3")
+ Text("当前系统语言:" + this.language)
+ Button("改变系统语言:藏文")
+ .id("setLanguage")
+ .onClick(() => {
+ i18n.System.setAppPreferredLanguage(this.expectLanguage);
+ })
+ Button("获取当前系统语言")
+ .id("getLanguage")
+ .onClick(() => {
+ this.language = i18n.System.getAppPreferredLanguage();
+ })
+ }
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog011.ets
new file mode 100644
index 0000000000000000000000000000000000000000..92d7bf49cc92c1b4fecec1e422cb0d3b7ed84ab5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog011.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 ComponentCalendarPickerDialog011 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.SYSTEM}){
+ Column(){
+ Checkbox().id('ComponentCalendarPickerDialog011')
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog012.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0aae44921002035d49c97557940c818593e74595
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog012.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 ComponentCalendarPickerDialog012 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.DARK}){
+ Column(){
+ Checkbox().id('ComponentCalendarPickerDialog012')
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog013.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4f2e3cd62dc1274d807471568d90816fe3503395
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog013.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 ComponentCalendarPickerDialog013 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.LIGHT}){
+ Column(){
+ Checkbox().id('ComponentCalendarPickerDialog013')
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog014.ets
new file mode 100644
index 0000000000000000000000000000000000000000..856d8b66409e50e8eb4d0646fa35028ee6597086
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog014.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 ComponentCalendarPickerDialog014 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.SYSTEM}){
+ Column(){
+ Checkbox().id('ComponentCalendarPickerDialog014')
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog015.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0112dc40bac16d3897ff2b1efc69c63bda5f0d8e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog015.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 ComponentCalendarPickerDialog015 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.SYSTEM}){
+ Column(){
+ Checkbox().id('ComponentCalendarPickerDialog015')
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog016.ets
new file mode 100644
index 0000000000000000000000000000000000000000..896c0a7d9b863e151b04d9c76a087af249d9a528
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog016.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 ComponentCalendarPickerDialog016 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.SYSTEM}){
+ Column(){
+ Checkbox().id('ComponentCalendarPickerDialog016')
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog017.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d94d4a07620ffa88bd5f90a4af5accf41e8f8455
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCalendarPickerDialog/ComponentCalendarPickerDialog017.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 ComponentCalendarPickerDialog017 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.SYSTEM}){
+ Column(){
+ Checkbox().id('ComponentCalendarPickerDialog017')
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox001.ets
new file mode 100644
index 0000000000000000000000000000000000000000..94c61d1893d8f9911763e00765f6f8c5bb3496f2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox001.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 ComponentCheckBox001 {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Column(){
+ Text('89.9')
+ .fontSize('16fp')
+ .fontWeight(400)
+ .fontColor(Color.Red)
+ }
+ }
+
+ build() {
+ Column(){
+ Column(){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .id('ComponentCheckBox001')
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(Color.Green)
+ .select(true)
+ .mark({strokeColor:Color.Black,size:50,strokeWidth:5})
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+value);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox002.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1a64e72bf77591ba11eac71ed459a26c6a58f597
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox002.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 ComponentCheckBox002 {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Text('oaisdaisdjiasojdaosidjasi')
+ .fontSize('16fp')
+ .fontWeight(400)
+ }
+
+ build() {
+ Column(){
+ Column(){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .id('ComponentCheckBox002')
+ .shape(CheckBoxShape.CIRCLE)
+ .backgroundColor(Color.Pink)
+ .select(true)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+value);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox003.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f7e4d34600d921faf19f0ca4b1b1a14fefda2d3c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox003.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 ComponentCheckBox003 {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Column(){
+ Button('选中')
+ .fontSize('12fp')
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Pink)
+ }
+ }
+
+ build() {
+ Column(){
+ Column(){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .width(60)
+ .height(60)
+ .id('ComponentCheckBox003')
+ .shape(CheckBoxShape.CIRCLE)
+ .backgroundColor(Color.Orange)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+value);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox004.ets
new file mode 100644
index 0000000000000000000000000000000000000000..605ce647d7a2a1dcf79189475c6d0b6de0737d1b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox004.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 ComponentCheckBox004 {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Text('30')
+ .fontSize('32fp')
+ .fontWeight(400)
+ .fontColor(Color.Pink)
+ }
+
+ build() {
+ Column(){
+ Column(){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .id('ComponentCheckBox004')
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .mark({strokeColor:Color.Black,size:50,strokeWidth:5})
+ .select(true)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+value);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox005.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9a0b81dd2ab6364078d612f805a16af0d5a56943
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox005.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 ComponentCheckBox005 {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {}
+
+ build() {
+ Column(){
+ Column(){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .id('ComponentCheckBox005')
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(Color.Green)
+ .select(true)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+value);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox006.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8375dd2777f03b74433a5417086cb7ce5ad93c3c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox006.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 ComponentCheckBox006 {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Text('89.9')
+ .fontSize('16fp')
+ .fontWeight(400)
+ .fontColor(Color.Red)
+ }
+
+ build() {
+ Column(){
+ Column(){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .id('ComponentCheckBox006')
+ .shape(CheckBoxShape.CIRCLE)
+ .mark({strokeColor:Color.Black,size:50,strokeWidth:5})
+ .select(true)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+value);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox007.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0eba42be86f28eed23559081476759194774062d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox007.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 ComponentCheckBox007 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.SYSTEM}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox007')
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox008.ets
new file mode 100644
index 0000000000000000000000000000000000000000..074c09413d88bbec4730b068f4dc62500bdbe496
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox008.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 ComponentCheckBox008 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.SYSTEM}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox008')
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value)
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox009.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1ed2a6adb535daad7ffab6f304845ec78ad88595
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox009.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 ComponentCheckBox009 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.DARK}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox009')
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..aedaaebd9fc900d5ce930b16011427ae95c2c319
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox010.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 ComponentCheckBox010 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.SYSTEM}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox010')
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox011.ets
new file mode 100644
index 0000000000000000000000000000000000000000..259580ec2045c3eac4895be5cc340a780c9258c6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox011.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 ComponentCheckBox011 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.SYSTEM}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox011')
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox012.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3f531eca009d4d95b04caa1e66cfdfc0ad078352
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox012.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 ComponentCheckBox012 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.LIGHT}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox012')
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox013.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d3545e51dddcf92ab90de9f7a0e231e71b72ca27
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox013.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 ComponentCheckBox013 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.LIGHT}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox013')
+ .checkboxShape(null)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(-1)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(-1)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(-1)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox014.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0d200a65d82cef31c223b453c325dfe4f5077377
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox014.ets
@@ -0,0 +1,71 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+
+
+
+@Entry
+@Component
+struct ComponentCheckBox014 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.LIGHT}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox014')
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox0149.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox0149.ets
new file mode 100644
index 0000000000000000000000000000000000000000..193c0ff5c86f932bd16a9c4d056373f393aecda8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox0149.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 ComponentCheckBox0149 {
+
+ build() {
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox022')
+ .checkboxShape(undefined)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox1 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox3 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .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/ComponentCheckBox/ComponentCheckBox015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox015.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8c8c364b5bbd996a9a5bc8ecf958b6665b6cc570
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox015.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 ComponentCheckBox015 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.LIGHT}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox015')
+ .checkboxShape(-1)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox016.ets
new file mode 100644
index 0000000000000000000000000000000000000000..75647a26d2ae784f848448618a7fd1c9322a702d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox016.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 ComponentCheckBox016 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.LIGHT}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox016')
+ .checkboxShape(-1)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(undefined)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(undefined)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .shape(undefined)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox017.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a123fc8bab7163c3726e52209b3c09d5e773a7b0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox017.ets
@@ -0,0 +1,71 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+
+
+
+@Entry
+@Component
+struct ComponentCheckBox017 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.LIGHT}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox017')
+ .checkboxShape(CheckBoxShape.CIRCLE)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox018.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3b5f2201bd0d31e26612faf3468f0311f5a25d1b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox018.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 ComponentCheckBox018 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.LIGHT}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox018')
+ .checkboxShape(-1)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .shape(undefined)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .shape(undefined)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .shape(undefined)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox019.ets
new file mode 100644
index 0000000000000000000000000000000000000000..57c5667ed3f132b0c249ed74e649164109e82dea
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox019.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 ComponentCheckBox019 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.LIGHT}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox019')
+ .checkboxShape(-1)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ee51731da8640411de5aefc5d35c8620e1b7d3a4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox020.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 ComponentCheckBox020 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.LIGHT}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox020')
+ .checkboxShape(null)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox021.ets
new file mode 100644
index 0000000000000000000000000000000000000000..423110f5380f8d85bbed19b81b017268c697131e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox021.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 ComponentCheckBox021 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.LIGHT}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox021')
+ .checkboxShape(undefined)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .shape(-1)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .shape(-1)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .shape(-1)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox022.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f4ecaa59aabe4ae75a707c6bfd94bd4e321b161b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox022.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 ComponentCheckBox022 {
+
+ build() {
+ Column(){
+ WithTheme({colorMode:ThemeColorMode.LIGHT}){
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox022')
+ .checkboxShape(undefined)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .shape(undefined)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .shape(undefined)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .shape(undefined)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .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/ComponentCheckBox/ComponentCheckBox08cd.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox08cd.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cf374284740e4afc542cf250574cb925ce6b2d60
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox08cd.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 ComponentCheckBox08cd {
+
+ build() {
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox022')
+ .checkboxShape(null)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .shape(undefined)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox1 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .shape(undefined)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .shape(undefined)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox3 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .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/ComponentCheckBox/ComponentCheckBox2eba.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox2eba.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1f04a030694400bcd0d0a8d259b7b241764d150d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox2eba.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 ComponentCheckBox2eba {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Column(){
+ Image('cat.jpg')
+ .width(40)
+ .height(100)
+ }
+ }
+
+ build() {
+ Column(){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .width(60)
+ .height(60)
+ .id('CheckBox')
+ .select(true)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+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/ComponentCheckBox/ComponentCheckBox3f43.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox3f43.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ea045246372bdc49f0fd100ef76b6300d0ff6ef7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox3f43.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 ComponentCheckBox3f43 {
+ @State a:number = 0;
+
+ build() {
+ Column({space: 10}){
+ Row({space: 5}) {
+ Checkbox()
+ .width(60)
+ .height(60)
+ .id('CheckBox1')
+ .shape(CheckBoxShape.CIRCLE)
+ .contentModifier(undefined)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+value);
+ })
+ Text('Undefined')
+ }
+ Row({space: 5}) {
+ Checkbox()
+ .width(60)
+ .height(60)
+ .id('CheckBox2')
+ .shape(CheckBoxShape.CIRCLE)
+ .contentModifier(null)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+value);
+ })
+ Text('Null')
+ }
+ Row({space: 5}) {
+ Checkbox()
+ .width(60)
+ .height(60)
+ .id('CheckBox3')
+ .shape(CheckBoxShape.CIRCLE)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+value);
+ })
+ Text('不设置')
+ }
+
+
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox48c3.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox48c3.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4a26dfdf329a5372b88fbc4cbe95d14b6f25aa0b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox48c3.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 ComponentCheckBox48c3 {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Button('选中')
+ .backgroundColor(Color.Pink)
+
+ }
+
+ build() {
+ Column({space: 20}){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .width(60)
+ .height(60)
+ .id('CheckBox')
+ .shape(CheckBoxShape.CIRCLE)
+ .backgroundColor(Color.Orange)
+ .select(true)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+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/ComponentCheckBox/ComponentCheckBox5c81.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox5c81.ets
new file mode 100644
index 0000000000000000000000000000000000000000..504656ece80d84759e297a9cd3041adeff6ed1dc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox5c81.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 ComponentCheckBox5c81 {
+
+ build() {
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox022')
+ .checkboxShape(undefined)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox1 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox3 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .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/ComponentCheckBox/ComponentCheckBox5f68.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox5f68.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fdc44cab7db343beaeb373a095c6e5265d71790c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox5f68.ets
@@ -0,0 +1,47 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+
+
+
+@Entry
+@Component
+struct ComponentCheckBox5f68 {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Checkbox()
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ }
+
+ build() {
+ Column({space: 20}){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .width(60)
+ .height(60)
+ .id('CheckBox')
+ .select(true)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+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/ComponentCheckBox/ComponentCheckBox641b.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox641b.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3efdf911e7104bba0c21ced35b950d93f22245aa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox641b.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 ComponentCheckBox641b {
+
+ @State builderType: number = 0
+ @State selected: boolean = false
+
+ build() {
+ Column(){
+
+ Row() {
+ Button('undefined')
+ .onClick(() => {
+ this.builderType = 0
+ this.selected = true
+ })
+ Button('null')
+ .onClick(() => {
+ this.builderType = 1
+ this.selected = true
+ })
+ Button('不设置')
+ .onClick(() => {
+ this.builderType = 2
+ this.selected = true
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceAround)
+
+ if (this.builderType === 2) {
+ Checkbox()
+ .width(60)
+ .height(60)
+ .id('CheckBox')
+ .select(this.selected)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ }else {
+ Checkbox({
+ indicatorBuilder: this.builderType === 0 ? undefined : null
+ })
+ .width(60)
+ .height(60)
+ .id('CheckBox')
+ .select(this.selected)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ }
+
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox700f.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox700f.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c76ccddccb64beb250ec0c0bd736b091fa2eea97
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox700f.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 ComponentCheckBox700f {
+
+ build() {
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox022')
+ .checkboxShape(-1)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox1 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox3 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .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/ComponentCheckBox/ComponentCheckBox727c.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox727c.ets
new file mode 100644
index 0000000000000000000000000000000000000000..11b0390c81abea832185d639284afa65d9b16015
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox727c.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 ComponentCheckBox727c {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ TextInput()
+ .width(80)
+ .height(80)
+ .id('TextInput')
+ .backgroundColor(Color.Pink)
+ }
+
+ build() {
+ Column(){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .width(100)
+ .height(100)
+ .id('CheckBox')
+ .select(true)
+ .shape(CheckBoxShape.CIRCLE)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+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/ComponentCheckBox/ComponentCheckBox766c.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox766c.ets
new file mode 100644
index 0000000000000000000000000000000000000000..033c965aad2a6433ff7deeb6fed0319b0c884240
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox766c.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 ComponentCheckBox766c {
+
+ build() {
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox022')
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox1 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox3 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .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/ComponentCheckBox/ComponentCheckBox7e33.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox7e33.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c87ceacf3272df3fe7db701701bf2e645bdc99e5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox7e33.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 ComponentCheckBox7e33 {
+
+ @State builderType: number = 0
+ @State selected: boolean = false
+
+ build() {
+ Column(){
+
+ Row() {
+ Button('undefined')
+ .onClick(() => {
+ this.builderType = 0
+ this.selected = true
+ })
+ Button('null')
+ .onClick(() => {
+ this.builderType = 1
+ this.selected = true
+ })
+ Button('不设置')
+ .onClick(() => {
+ this.builderType = 2
+ this.selected = true
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceAround)
+
+ if (this.builderType === 2) {
+ Checkbox()
+ .width(60)
+ .height(60)
+ .id('CheckBox')
+ .select(this.selected)
+ .shape(CheckBoxShape.CIRCLE)
+ }else {
+ Checkbox({
+ indicatorBuilder: this.builderType === 0 ? undefined : null
+ })
+ .width(60)
+ .height(60)
+ .id('CheckBox')
+ .select(this.selected)
+ .shape(CheckBoxShape.CIRCLE)
+ }
+
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox7f1c.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox7f1c.ets
new file mode 100644
index 0000000000000000000000000000000000000000..998694cb451b6a3c6fd15d7f5dc53852f6920fa9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox7f1c.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct ComponentCheckBox7f1c {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {
+
+ }
+
+ build() {
+ Column(){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .width(60)
+ .height(60)
+ .id('CheckBox')
+ .select(true)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+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/ComponentCheckBox/ComponentCheckBox8479.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox8479.ets
new file mode 100644
index 0000000000000000000000000000000000000000..59ba7d7d765ed2273581ac5769f8703c93461c10
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox8479.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.
+ */
+
+
+class MyCheckBoxStyle2 implements ContentModifier {
+ applyContent(): WrappedBuilder<[CheckBoxConfiguration]> {
+ return wrapBuilder(buildCheckbox2)
+ }
+
+}
+
+@Builder function buildCheckbox2(config: CheckBoxConfiguration) {
+ Image('cat.jpg')
+ .width(40)
+ .height(40)
+
+}
+
+
+@Entry
+@Component
+struct ComponentCheckBox8479 {
+ @State a:number = 0;
+
+ @State showContentModifier: boolean = true
+
+ build() {
+ Column(){
+ Checkbox()
+ .width(60)
+ .height(60)
+ .id('CheckBox')
+ .select(true)
+ .shape(CheckBoxShape.CIRCLE)
+ .contentModifier(this.showContentModifier? new MyCheckBoxStyle2() : undefined)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+value);
+ })
+
+ Button('Change')
+ .onClick(() => {
+ this.showContentModifier = !this.showContentModifier
+ })
+
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox8eac.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox8eac.ets
new file mode 100644
index 0000000000000000000000000000000000000000..493f2e9ff0efac977459aa0dfb062031f3bae57b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBox8eac.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 ComponentCheckBox8eac {
+
+ build() {
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox022')
+ .checkboxShape(undefined)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox1 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox3 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .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/ComponentCheckBox/ComponentCheckBoxb990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxb990.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a8272c0dd593bf86bfea96abc1bf0667b2d4f40f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxb990.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 ComponentCheckBoxb990 {
+
+ build() {
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox022')
+ .checkboxShape(null)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox1 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox3 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .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/ComponentCheckBox/ComponentCheckBoxcb40.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxcb40.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a43ed7637b38b218a1e1f9b0982550ab31fdd337
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxcb40.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 ComponentCheckBoxcb40 {
+
+ build() {
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox022')
+ .checkboxShape(undefined)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .shape(null)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox1 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .shape(null)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .shape(null)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox3 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .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/ComponentCheckBox/ComponentCheckBoxd08c.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxd08c.ets
new file mode 100644
index 0000000000000000000000000000000000000000..31c7814627b07c86bf4cbcb737ed3a019ea40eea
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxd08c.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 ComponentCheckBoxd08c {
+
+ build() {
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox022')
+ .checkboxShape(CheckBoxShape.CIRCLE)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox1 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox3 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .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/ComponentCheckBox/ComponentCheckBoxdf4d.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxdf4d.ets
new file mode 100644
index 0000000000000000000000000000000000000000..832dc5f397a3fab2ff710beda7cfa6a017a77942
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxdf4d.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 ComponentCheckBoxdf4d {
+
+ build() {
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox022')
+ .checkboxShape(null)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .shape(null)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox1 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .shape(null)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .shape(null)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox3 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .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/ComponentCheckBox/ComponentCheckBoxe872.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxe872.ets
new file mode 100644
index 0000000000000000000000000000000000000000..552dc2941d392e5e176231c0481d515aff9fd309
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxe872.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 ComponentCheckBoxe872 {
+
+ build() {
+ Column(){
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .id('ComponentCheckBox022')
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor('#007DFF')
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName));
+ })
+ Text('checkboxGroup').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox1 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(20)
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox2').fontSize(20)
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(0x39a2db)
+ .onChange((value: boolean) => {
+ console.info('Checkbox3 change is' + value);
+ })
+ .width(30)
+ .height(30)
+ Text('Checkbox3').fontSize(20)
+ }
+ .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/ComponentCheckBox/ComponentCheckBoxf0d7.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxf0d7.ets
new file mode 100644
index 0000000000000000000000000000000000000000..19dd7bda2c537e485ad0b5a8c977caf70c0c26c8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxf0d7.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 ComponentCheckBoxf0d7 {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Column(){
+ Text('这是超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本')
+ // .width(30)
+ // .height(30)
+ // .fontSize('12fp')
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Pink)
+ }
+ }
+
+ build() {
+ Column(){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .width(60)
+ .height(60)
+ .id('CheckBox')
+ .select(true)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+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/ComponentCheckBox/ComponentCheckBoxf586.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxf586.ets
new file mode 100644
index 0000000000000000000000000000000000000000..32696e2f24e9678fa9a854dfd49c11ae6e56a7e3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxf586.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.
+ */
+
+
+class MyCheckBoxStyle implements ContentModifier {
+ applyContent(): WrappedBuilder<[CheckBoxConfiguration]> {
+ return wrapBuilder(buildCheckbox)
+ }
+
+}
+
+@Builder function buildCheckbox(config: CheckBoxConfiguration) {
+ Text('30')
+ .fontSize('32fp')
+ .fontWeight(400)
+ .fontColor(Color.Pink)
+}
+
+
+@Entry
+@Component
+struct ComponentCheckBoxf586 {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Column(){
+ Text('这是文本')
+ // .width(30)
+ // .height(30)
+ // .fontSize('12fp')
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Pink)
+ }
+ }
+
+ build() {
+ Column(){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .width(60)
+ .height(60)
+ .id('CheckBox')
+ .select(true)
+ .shape(CheckBoxShape.CIRCLE)
+ .mark({
+ strokeColor:Color.Red,
+ size: 50,
+ strokeWidth: 5
+ })
+ .contentModifier(new MyCheckBoxStyle())
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+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/ComponentCheckBox/ComponentCheckBoxfb77.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxfb77.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1ddacd8c2d8934b95d0c9675db836e3f88dc8f6e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentCheckBox/ComponentCheckBoxfb77.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 ComponentCheckBoxfb77 {
+ @State a:number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Column(){
+ Image('cat.jpg')
+ .width(40)
+ .height(100)
+ }
+ }
+
+ build() {
+ Column(){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .width(60)
+ .height(60)
+ .id('CheckBox')
+ .select(true)
+ .shape(CheckBoxShape.CIRCLE)
+ .onChange((value)=>{
+ this.a++;
+ console.log('onChange: '+this.a+' select: '+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/TestCase/TestCase170062fle4ff4bba977b759bbfe05075.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase170062fle4ff4bba977b759bbfe05075.ets
new file mode 100644
index 0000000000000000000000000000000000000000..68baa069249f43811dfe3cb5bb0a2bf6ca20c955
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase170062fle4ff4bba977b759bbfe05075.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 { promptAction } from '@kit.ArkUI';
+
+class MyCheckboxStyle implements ContentModifier {
+ selectedColor: Color = Color.White;
+
+ constructor(selectedColor: Color) {
+ this.selectedColor = selectedColor;
+ }
+
+ applyContent(): WrappedBuilder<[CheckBoxConfiguration]> {
+ return wrapBuilder(buildCheckbox);
+ }
+}
+
+@Builder
+function buildCheckbox(config: CheckBoxConfiguration) {
+ Column({ space: 10 }) {
+ Checkbox()
+ .select(config.selected)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ Text("89.9")
+ .fontWeight(400)
+ .fontColor(Color.Red)
+ .fontSize("16fp")
+ }
+ .width("100%")
+ .height(200)
+}
+
+@Entry
+@Component
+struct TestCase170062fle4ff4bba977b759bbfe05075 {
+ @State checkboxEnabled: boolean = true;
+
+ build() {
+ Column({ space: 100 }) {
+ Checkbox({ name: '复选框状态', group: 'checkboxGroup' })
+ .select(this.checkboxEnabled)
+ .contentModifier(new MyCheckboxStyle(Color.Red))
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ if (!value) {
+ promptAction.showToast({ message: "onChange:1,select:false" });
+ }
+ })
+ Row() {
+ Text("CheckBox开关")
+ Toggle({ type: ToggleType.Switch, isOn: true })
+ .id("toggle")
+ .onChange((value: boolean) => {
+ if (value) {
+ this.checkboxEnabled = true;
+ } else {
+ this.checkboxEnabled = false;
+ }
+ })
+ }.position({ x: 50, y: 130 })
+ }.margin({ top: 30 })
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase1840a7694374415cb0f05c7d3308fe99.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase1840a7694374415cb0f05c7d3308fe99.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cdca2f932d3d046e3e209501e3849e00d8b5994d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase1840a7694374415cb0f05c7d3308fe99.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 { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct TestCase1840a7694374415cb0f05c7d3308fe99 {
+ @State isSelected: boolean = true;
+
+ @Builder
+ indicatorBuilder() {
+ Column() {
+ Button(this.isSelected ? "取消选中" : "选中")
+ .backgroundColor(this.isSelected ? Color.Pink : Color.Green)
+ .onClick((event: ClickEvent) => {
+ this.isSelected = !this.isSelected;
+ })
+ .id("button")
+ }
+ .offset({ y: 80 })
+ .width("100%")
+ .height(64)
+ }
+
+ build() {
+ Column() {
+ Column({ space: 120 }) {
+ Checkbox({
+ indicatorBuilder: () => {
+ this.indicatorBuilder();
+ }
+ })
+ .width("40%")
+ .id('checkbox')
+ .unselectedColor(Color.Green)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(Color.Orange)
+ .select(this.isSelected)
+ .borderColor(Color.Green)
+ .mark({ strokeColor: Color.Black, size: 50, strokeWidth: 5 })
+ .onChange((value) => {
+ this.isSelected = value;
+ if (!value) {
+ promptAction.showToast({ message: "onChange:1,select:false" });
+ }
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ }
+ .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/TestCase/TestCase3ba3f7bcf07743d297d1449a47e6b892.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase3ba3f7bcf07743d297d1449a47e6b892.ets
new file mode 100644
index 0000000000000000000000000000000000000000..202e96e4d7cf76c228fa5dce38790108e67a8605
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase3ba3f7bcf07743d297d1449a47e6b892.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 TestCase3ba3f7bcf07743d297d1449a47e6b892 {
+ @State isSelected:boolean = true;
+ @Builder
+ indicatorBuilder() {
+ Column(){
+ Text('builder1')
+ .fontSize('16fp')
+ .fontWeight(400)
+ .fontColor(Color.Red)
+ }
+ }
+ build() {
+ Column(){
+ Column({space:120}){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .id('checkbox')
+ .unselectedColor(Color.Green)
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(Color.Orange)
+ .select(this.isSelected)
+ .borderColor(Color.Green)
+ .mark({strokeColor:Color.Black,size:50,strokeWidth:5})
+ Button(this.isSelected?"取消选中":"选中").onClick((event: ClickEvent) => {
+ this.isSelected = !this.isSelected;
+ })
+ .id("button")
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ }
+ .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/TestCase/TestCase41a06d55fa7d42d58d4ad51b77355ec8.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase41a06d55fa7d42d58d4ad51b77355ec8.ets
new file mode 100644
index 0000000000000000000000000000000000000000..44399f8a2aa0f5e717108f6531d34acf63283371
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase41a06d55fa7d42d58d4ad51b77355ec8.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 { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct TestCase41a06d55fa7d42d58d4ad51b77355ec8 {
+ @State isSelected:boolean = true;
+ @Builder
+ indicatorBuilder() {
+ Column(){
+ Text("超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本超长文本")
+ }
+ .backgroundColor(Color.Pink)
+ .width("100%")
+ .height(64)
+ }
+ build() {
+ Column(){
+ Column({space:120}){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .width("20%")
+ .id('ComponentCheckBox001')
+ .unselectedColor(Color.Green)
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(Color.Orange)
+ .select(this.isSelected)
+ .borderColor(Color.Green)
+ .mark({strokeColor:Color.Black,size:50,strokeWidth:5})
+ .onChange((value)=>{
+ if(!value){
+ promptAction.showToast({message:"onChange:1,select:false"});
+ }
+ })
+ Button(this.isSelected?"取消选中":"选中").onClick((event: ClickEvent) => {
+ this.isSelected = !this.isSelected;
+ })
+ .id("button")
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ }
+ .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/TestCase/TestCase437e662b74954d0582cb2c02613b88e2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase437e662b74954d0582cb2c02613b88e2.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fb4af52148b224be3c2c1d81b35d3650c4534388
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase437e662b74954d0582cb2c02613b88e2.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 TestCase437e662b74954d0582cb2c02613b88e2 {
+ @State isSelected:boolean = true;
+ @Builder
+ indicatorBuilder() {
+ Column(){
+ Image("cat.jpg")
+ .width(200)
+ }
+ .width("100%")
+ .height(64)
+ }
+ build() {
+ Column(){
+ Column({space:120}){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .width("20%")
+ .id('ComponentCheckBox001')
+ .unselectedColor(Color.Green)
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(Color.Orange)
+ .select(this.isSelected)
+ .borderColor(Color.Green)
+ .mark({strokeColor:Color.Black,size:50,strokeWidth:5})
+ Button(this.isSelected?"取消选中":"选中").onClick((event: ClickEvent) => {
+ this.isSelected = !this.isSelected;
+ })
+ .id("button")
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ }
+ .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/TestCase/TestCase57c524107d12419fa08e7c1851602f34.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase57c524107d12419fa08e7c1851602f34.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e3d9b8ba0ddf2a5aee9cb78f74bb034643c7c7c1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase57c524107d12419fa08e7c1851602f34.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 { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct TestCase57c524107d12419fa08e7c1851602f34 {
+ @State isSelected: boolean = true;
+
+ @Builder
+ indicatorBuilder() {
+ Column() {
+ Button(this.isSelected ? "取消选中" : "选中")
+ .backgroundColor(this.isSelected ? Color.Pink : Color.Green)
+ .onClick((event: ClickEvent) => {
+ this.isSelected = !this.isSelected;
+ })
+ .id("button")
+ }
+ .offset({ y: 80 })
+ .width("100%")
+ .height(64)
+ }
+
+ build() {
+ Column() {
+ Column({ space: 120 }) {
+ Checkbox({
+ indicatorBuilder: () => {
+ this.indicatorBuilder();
+ }
+ })
+ .width("40%")
+ .id('checkbox')
+ .unselectedColor(Color.Green)
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(Color.Orange)
+ .select(this.isSelected)
+ .borderColor(Color.Green)
+ .mark({ strokeColor: Color.Black, size: 50, strokeWidth: 5 })
+ .onChange((value) => {
+ this.isSelected = value;
+ if (!value) {
+ promptAction.showToast({ message: "onChange:1,select:false" });
+ }
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ }
+ .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/TestCase/TestCase82af3a72ba494e429a70511af99dff22.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase82af3a72ba494e429a70511af99dff22.ets
new file mode 100644
index 0000000000000000000000000000000000000000..85cd8b41839842ae8f36e14c7280b1bebfc0e1b5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase82af3a72ba494e429a70511af99dff22.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 { promptAction } from '@kit.ArkUI';
+
+class MyCheckboxStyle implements ContentModifier {
+ selectedColor: Color = Color.White;
+
+ constructor(selectedColor: Color) {
+ this.selectedColor = selectedColor;
+ }
+
+ applyContent(): WrappedBuilder<[CheckBoxConfiguration]> {
+ return wrapBuilder(buildCheckbox);
+ }
+}
+
+@Builder
+function buildCheckbox(config: CheckBoxConfiguration) {
+ Column({ space: 10 }) {
+ Checkbox()
+ .select(config.selected)
+ .shape(CheckBoxShape.CIRCLE)
+ Text("89.9")
+ .fontWeight(400)
+ .fontColor(Color.Red)
+ .fontSize("16fp")
+
+ }
+ .width("100%")
+ .height(200)
+}
+
+@Entry
+@Component
+struct TestCase82af3a72ba494e429a70511af99dff22 {
+ @State checkboxEnabled: boolean = true;
+
+ build() {
+ Column({ space: 100 }) {
+ Checkbox({ name: '复选框状态', group: 'checkboxGroup' })
+ .select(this.checkboxEnabled)
+ .contentModifier(new MyCheckboxStyle(Color.Red))
+ .shape(CheckBoxShape.CIRCLE)
+ .onChange((value: boolean) => {
+ if (!value) {
+ promptAction.showToast({ message: "onChange:1,select:false" });
+ }
+ })
+ Row() {
+ Text("CheckBox开关")
+ Toggle({ type: ToggleType.Switch, isOn: true })
+ .id("toggle")
+ .onChange((value: boolean) => {
+ if (value) {
+ this.checkboxEnabled = true;
+ } else {
+ this.checkboxEnabled = false;
+ }
+ })
+ }.position({ x: 50, y: 130 })
+ }.margin({ top: 30 })
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase83f0228d9c2d45e8blafca3c36bd855f.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase83f0228d9c2d45e8blafca3c36bd855f.ets
new file mode 100644
index 0000000000000000000000000000000000000000..29d3878f9b3be124a41c955675854a25128029ce
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase83f0228d9c2d45e8blafca3c36bd855f.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 { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct TestCase83f0228d9c2d45e8blafca3c36bd855f {
+ @State isSelected: boolean = true;
+ @State count: number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Column() {
+ Text('89.9')
+ .fontSize('16fp')
+ .fontWeight(400)
+ .fontColor(Color.Red)
+ }
+ }
+
+ build() {
+ Column() {
+ Column({ space: 120 }) {
+ Checkbox({
+ indicatorBuilder: () => {
+ this.indicatorBuilder();
+ }
+ })
+ .id('checkbox')
+ .unselectedColor(Color.Green)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(Color.Orange)
+ .select(this.isSelected)
+ .borderColor(Color.Green)
+ .mark({ strokeColor: Color.Black, size: 50, strokeWidth: 5 })
+ .onChange((value) => {
+ this.count++;
+ promptAction.showToast({ message: `onChange:${this.count},select:${value}` });
+ })
+ Button(this.isSelected ? "取消选中" : "选中").onClick((event: ClickEvent) => {
+ this.isSelected = !this.isSelected;
+ })
+ .id("button")
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ }
+ .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/TestCase/TestCase9a217f5e9b394930949b5lad3b25f989.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase9a217f5e9b394930949b5lad3b25f989.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b86b524efc7fbc100c091ef6cd06fd37d30e9745
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase9a217f5e9b394930949b5lad3b25f989.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'
+
+@Entry
+@Component
+struct TestCase9a217f5e9b394930949b5lad3b25f989 {
+ @State enable:boolean = true;
+
+ build() {
+ Column(){
+ Column({space:120}){
+ Checkbox()
+ .enabled(this.enable)
+ .width("20%")
+ .id('ComponentCheckBox001')
+ .unselectedColor(Color.Green)
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(Color.Orange)
+ .select(true)
+ .borderColor(Color.Green)
+ .mark({strokeColor:Color.Black,size:50,strokeWidth:5})
+ .onChange((value)=>{
+ if(!value){
+ promptAction.showToast({message:"onChange:1,select:false"});
+ }
+ })
+ Button(this.enable?"禁用":"启用").onClick((event: ClickEvent) => {
+ this.enable = !this.enable;
+ })
+ .id("button")
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ }
+ .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/TestCase/TestCase_00bbaaf924fa44288f03cca0278ae6b5.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_00bbaaf924fa44288f03cca0278ae6b5.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8f5350e81033123007e837b4aad9221e77ccb26e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_00bbaaf924fa44288f03cca0278ae6b5.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 TestCase_00bbaaf924fa44288f03cca0278ae6b5 {
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(null)
+ Text('Select All')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ Text('Checkbox2')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ Text('Checkbox3')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_4061b97a1405485797f304c07f65c5f0.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_4061b97a1405485797f304c07f65c5f0.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3b9aeeef3f562b1a02de908559815023063f527c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_4061b97a1405485797f304c07f65c5f0.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 TestCase_4061b97a1405485797f304c07f65c5f0 {
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(undefined)
+ Text('Select All')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(-1)
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(-1)
+ Text('Checkbox2')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(-1)
+ Text('Checkbox3')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_49027a7e017946f58c41915ef0691063.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_49027a7e017946f58c41915ef0691063.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7506c96216aaf141f953754e89162966390b3008
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_49027a7e017946f58c41915ef0691063.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 TestCase_49027a7e017946f58c41915ef0691063 {
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(-1)
+ Text('Select All')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(undefined)
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(undefined)
+ Text('Checkbox2')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(undefined)
+ Text('Checkbox3')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_611f36b768b447f6b843e058dfb044a9.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_611f36b768b447f6b843e058dfb044a9.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8c3082219b9fa9013e3f08533fdba9e63cbd7635
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_611f36b768b447f6b843e058dfb044a9.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 { ConfigurationConstant } from '@kit.AbilityKit'
+
+class MyCheckboxStyle implements ContentModifier {
+ selectedColor: Color = Color.White;
+ name: string = '';
+ selected: boolean = false;
+ triggerChange: Callback = () => {
+ };
+
+ constructor(selectedColor: Color) {
+
+ this.selectedColor = selectedColor;
+
+
+ }
+
+ applyContent(): WrappedBuilder<[CheckBoxConfiguration]> {
+ return wrapBuilder(buildCheckbox)
+ }
+}
+
+@Builder
+function buildCheckbox(config: CheckBoxConfiguration) {
+
+ Column({ space: 10 }) {
+ Text(config.selected ? "selectValue true,onChange" : "selectValue false onChange").margin({ right: 110 })
+ Shape() {
+ Rect()
+ .width(50)
+ .height(50)
+ .onClick(() => {
+ if (config.selected) {
+ config.triggerChange(false)
+ } else {
+ config.triggerChange(true)
+ }
+ })
+ .border({ width: 3 })
+ .fill(config.selected ? Color.Red : Color.White)
+ .opacity(config.enabled ? 1 : 0.1)
+ // Rect()
+ // .width(40)
+ // .height(40)
+ // .visibility(config.selected ? Visibility.Visible : Visibility.Hidden)
+ // .fill(config.selected ? (config.contentModifier as MyCheckboxStyle).selectedColor : Color.Black)
+ // .stroke((config.contentModifier as MyCheckboxStyle).selectedColor)
+ // .margin({left:10,top:10})
+ // .opacity(config.enabled ? 1 : 0.1)
+ }
+ .width(120)
+ .height(120)
+ .viewPort({
+ x: 0,
+ y: 0,
+ width: 200,
+ height: 200
+ })
+ .strokeLineJoin(LineJoinStyle.Miter)
+ .strokeMiterLimit(5)
+ .margin({ left: 50 })
+ }
+}
+
+@Entry
+@Component
+struct TestCase_611f36b768b447f6b843e058dfb044a9 {
+ @State trigger: number = 0;
+ @State flag12: boolean = true;
+ @State flag3: boolean = true;
+ @State backColor: ResourceColor = '#ffe793d2'
+
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(null)
+ Text('Select All')
+ }
+ .id('groupbtn')
+ .onClick(() => {
+ this.trigger = 1;
+ this.flag12 = false;
+ this.flag3 = false;
+ this.backColor = Color.Green;
+
+ })
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .select(this.flag12)
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .select(this.flag12)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ Text('Checkbox2')
+ }
+
+ Column() {
+ Text('trigger:' + this.trigger)
+ Checkbox({ group: 'checkboxGroup' })
+ .contentModifier(new MyCheckboxStyle(Color.Red))
+ .select(this.flag3)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ Text('Checkbox3')
+ TextInput()
+ .backgroundColor(Color.White)
+ .id('open')
+ .expandSafeArea([SafeAreaType.KEYBOARD])
+ .onChange(() => {
+ this.backColor = '#ffe793d2'
+ this.flag3 = true
+ this.trigger = 2
+ })
+
+
+ }
+ .backgroundColor(this.backColor)
+ .height('35%')
+
+ Row() {
+ Button('builder_checkBoxGroup')
+ .id('builder1')
+ .onClick(() => {
+ this.flag12 = true;
+ this.flag3 = true;
+
+ })
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_660ea820a6d442e0b4f1bf34b3ed050a.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_660ea820a6d442e0b4f1bf34b3ed050a.ets
new file mode 100644
index 0000000000000000000000000000000000000000..aba96ce4c01de26bf9bba0f3a55d5cb842707147
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_660ea820a6d442e0b4f1bf34b3ed050a.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.
+ */
+
+class MyCheckboxStyle implements ContentModifier {
+ applyContent(): WrappedBuilder<[CheckBoxConfiguration]> {
+ return wrapBuilder(buildCheckBox);
+ }
+}
+
+@Builder
+function buildCheckBox(config: CheckBoxConfiguration) {
+ Circle()
+ .fill(Color.White)
+ .width(50)
+ .height(50)
+ .backgroundColor(config.selected ? Color.Red : Color.Black)
+ .onClick(() => {
+ if (config.selected) {
+ config.triggerChange(false);
+ } else {
+ config.triggerChange(true);
+ }
+ })
+}
+
+@Entry
+@Component
+struct TestCase_660ea820a6d442e0b4f1bf34b3ed050a {
+ @State a: number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Column() {
+ Text('30')
+ .fontSize('32fp')
+ .fontWeight(400)
+ .fontColor(Color.Pink)
+ }
+ }
+
+ build() {
+ Column() {
+ Checkbox({ indicatorBuilder: this.indicatorBuilder() })
+ .width(80)
+ .height(80)
+ .id('ComponentCheckBox')
+ .select(true)
+ .contentModifier(new MyCheckboxStyle())
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .mark({ strokeColor: Color.Orange, size: 80, strokeWidth: 5 })
+ .onChange((value) => {
+ this.a++;
+ console.log('onChange: ' + this.a + ' select: ' + value);
+ })
+ }
+ .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/TestCase/TestCase_734d00a38d914feeb023e5796c835ecb.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_734d00a38d914feeb023e5796c835ecb.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3b31f47f1d6669152532bc1e4dc3085f7f08f47e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_734d00a38d914feeb023e5796c835ecb.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 TestCase_734d00a38d914feeb023e5796c835ecb {
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(-1)
+ Text('Select All')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ Text('Checkbox2')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(CheckBoxShape.CIRCLE)
+ Text('Checkbox3')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_809555579f804d80b3c81fd4af4c2cc1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_809555579f804d80b3c81fd4af4c2cc1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bf32c3d01a43e9ebeef1c7c1efd6c72982b5a4d9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_809555579f804d80b3c81fd4af4c2cc1.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 TestCase_809555579f804d80b3c81fd4af4c2cc1 {
+ @Builder
+ indicatorBuilder() {
+ Column() {
+ Button('选中')
+ .backgroundColor(Color.Pink)
+ }
+ }
+
+ build() {
+ Column() {
+ Checkbox({ indicatorBuilder: this.indicatorBuilder() })
+ .width(80)
+ .height(80)
+ .id('ComponentCheckBox')
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .backgroundColor(Color.Orange)
+ }
+ .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/TestCase/TestCase_835936712395457396325004ae97faa0.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_835936712395457396325004ae97faa0.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e987892c4439a06fd5f0f10347956456570e91d3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_835936712395457396325004ae97faa0.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 TestCase_835936712395457396325004ae97faa0 {
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ Text('Select All')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox2')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox3')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_84e308abbc574a48ad766c2658b9b72e.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_84e308abbc574a48ad766c2658b9b72e.ets
new file mode 100644
index 0000000000000000000000000000000000000000..164f5d1ac1251ef9dbe20b27d0aa43075d76a469
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_84e308abbc574a48ad766c2658b9b72e.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 TestCase_84e308abbc574a48ad766c2658b9b72e {
+ @State a: number = 0;
+
+ @Builder
+ indicatorBuilder() {
+ Column() {
+ Text('89.9')
+ .fontSize('16fp')
+ .fontWeight(400)
+ .fontColor(Color.Red)
+ }
+ }
+
+ build() {
+ Column() {
+ Checkbox({ indicatorBuilder: this.indicatorBuilder() })
+ .width(80)
+ .height(80)
+ .id('ComponentCheckBox')
+ .select(true)
+ .shape(CheckBoxShape.CIRCLE)
+ .mark({ strokeColor: Color.Orange, size: 80, strokeWidth: 5 })
+ .onChange((value) => {
+ this.a++;
+ console.log('onChange: ' + this.a + ' select: ' + value);
+ })
+ }
+ .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/TestCase/TestCase_8599ec6cc1454709b2df47ab856b2f38.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_8599ec6cc1454709b2df47ab856b2f38.ets
new file mode 100644
index 0000000000000000000000000000000000000000..226bc47763063b675e8dde2c2cce5f6ebdf27d61
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_8599ec6cc1454709b2df47ab856b2f38.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 TestCase_8599ec6cc1454709b2df47ab856b2f38 {
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(-1)
+ Text('Select All')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(-1)
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(-1)
+ Text('Checkbox2')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(-1)
+ Text('Checkbox3')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_a7a46f6c36d04ca69e363d0e3ad4a814.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_a7a46f6c36d04ca69e363d0e3ad4a814.ets
new file mode 100644
index 0000000000000000000000000000000000000000..af32b342d2d3a823e49d3ed77bdf54644909f797
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_a7a46f6c36d04ca69e363d0e3ad4a814.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 TestCase_a7a46f6c36d04ca69e363d0e3ad4a814 {
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(null)
+ Text('Select All')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ Text('Checkbox2')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ Text('Checkbox3')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_alc2548a55de474787a6e72ef290b017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_alc2548a55de474787a6e72ef290b017.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ff25e208f859e659438d0243c67013d4c732186a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_alc2548a55de474787a6e72ef290b017.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 TestCase_alc2548a55de474787a6e72ef290b017 {
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(undefined)
+ Text('Select All')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(undefined)
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(undefined)
+ Text('Checkbox2')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(undefined)
+ Text('Checkbox3')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_b0f21fa9d21e4e9eaf43d9da8c48b5d4.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_b0f21fa9d21e4e9eaf43d9da8c48b5d4.ets
new file mode 100644
index 0000000000000000000000000000000000000000..26ac0647330f2647a67fe07ab1f50838af569176
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_b0f21fa9d21e4e9eaf43d9da8c48b5d4.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.
+ */
+import { ConfigurationConstant } from '@kit.AbilityKit'
+
+class MyCheckboxStyle implements ContentModifier {
+ selectedColor: Color = Color.White;
+ name:string='';
+ selected: boolean=false;
+ triggerChange: Callback =()=>{};
+
+
+
+ constructor(selectedColor: Color) {
+
+ this.selectedColor = selectedColor;
+
+
+ }
+ applyContent() : WrappedBuilder<[CheckBoxConfiguration]>
+ {
+ return wrapBuilder(buildCheckbox)
+ }
+}
+@Builder function buildCheckbox(config: CheckBoxConfiguration) {
+ Column({space:10}) {
+ Text(config.name + (config.selected ? "( 选中 )" : "( 取消选中 )")).margin({right : 70, top : 50})
+ Text(config.selected ? "selectValue true onChange\n" +
+ "Trigger:0 " : "selectValue false onChange\\n\" +\n" +
+ " \"Trigger:0\"").margin({right : 110})
+ Shape() {
+ Rect()
+ .width(50)
+ .height(50)
+ .onClick(()=>{
+ if (config.selected) {
+ config.triggerChange(false)
+ } else {
+ config.triggerChange(true)
+ }
+ })
+ .border({width:3})
+ .fill(config.selected?Color.Red:Color.White)
+ .opacity(config.enabled ? 1 : 0.1)
+ // Rect()
+ // .width(40)
+ // .height(40)
+ // .visibility(config.selected ? Visibility.Visible : Visibility.Hidden)
+ // .fill(config.selected ? (config.contentModifier as MyCheckboxStyle).selectedColor : Color.Black)
+ // .stroke((config.contentModifier as MyCheckboxStyle).selectedColor)
+ // .margin({left:10,top:10})
+ // .opacity(config.enabled ? 1 : 0.1)
+ }
+ .width(300)
+ .height(200)
+ .viewPort({ x: 0, y: 0, width: 310, height: 310 })
+ .strokeLineJoin(LineJoinStyle.Miter)
+ .strokeMiterLimit(5)
+ .margin({left:50})
+ }
+}
+
+@Entry
+@Component
+struct TestCase_a7a46f6c36d04ca69e363d0e3ad4a814 {
+ @State flag:boolean=true
+ @State btnVal:string='取消选中'
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row() {
+ Checkbox({ name:'Checkbox1',group: 'checkboxGroup' })
+ .contentModifier(new MyCheckboxStyle(Color.Red))
+ .select(this.flag)
+
+ }.margin(5)
+ Column({space:3}) {
+ Button('builder_triggerChange_NONE')
+ .id('btn1')
+ .onClick(()=>{
+ this.flag=true
+ })
+ Button('select_true')
+ .id('btn2')
+ .onClick(()=>{
+ this.flag=true
+ })
+ Button('select_false')
+ .id('btn3')
+ .onClick(()=>{
+ this.flag=false
+ })
+
+ Button('button-'+this.btnVal)
+ .id('btn4')
+ .onClick(()=>{
+ if(this.btnVal=='取消选中'){
+ this.btnVal='选中'
+ }else{
+ this.btnVal='取消选中'
+ }
+
+ })
+
+ }.margin(5)
+
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_bdae66ca448e40488ad61a84cef4ec4c.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_bdae66ca448e40488ad61a84cef4ec4c.ets
new file mode 100644
index 0000000000000000000000000000000000000000..418ccdd590513af56940d4fd91ce02642876207f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_bdae66ca448e40488ad61a84cef4ec4c.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 TestCase_bdae66ca448e40488ad61a84cef4ec4c {
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(CheckBoxShape.CIRCLE)
+ Text('Select All')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox2')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox3')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_d1504e3c331d4103a2f7bac81dd51cb0.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_d1504e3c331d4103a2f7bac81dd51cb0.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f6ed4250bcf5fa46dab584c6234c7802875cf3b7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_d1504e3c331d4103a2f7bac81dd51cb0.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 TestCase_d1504e3c331d4103a2f7bac81dd51cb0 {
+ @State a: number = 0;
+
+ build() {
+ Column() {
+ Checkbox()
+ .id('ComponentCheckBox')
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(Color.Green)
+ .select(true)
+ .onChange((value) => {
+ this.a++;
+ console.log('onChange: ' + this.a + ' select: ' + value);
+ })
+ }
+ .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/TestCase/TestCase_e74b5ac434004a2a918349957882d156.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_e74b5ac434004a2a918349957882d156.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9aab03b5fe97a78a719bbfec741f8ae51d6a84ab
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_e74b5ac434004a2a918349957882d156.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 TestCase_e74b5ac434004a2a918349957882d156 {
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(-1)
+ Text('Select All')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ Text('Checkbox2')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ Text('Checkbox3')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_ef6edfdf28604560b0df0cOfe0268afe.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_ef6edfdf28604560b0df0cOfe0268afe.ets
new file mode 100644
index 0000000000000000000000000000000000000000..05436486dbcc9179c1549694ba5c0f36d6afee1b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_ef6edfdf28604560b0df0cOfe0268afe.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 TestCase_ef6edfdf28604560b0df0cOfe0268afe {
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(-1)
+ Text('Select All')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(null)
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(null)
+ Text('Checkbox2')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(null)
+ Text('Checkbox3')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_f3dfe9fd524a4c61b4fb506ea5b0e8f1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_f3dfe9fd524a4c61b4fb506ea5b0e8f1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..62fde506fa994a405fe065b99549e9ff870ecce9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_f3dfe9fd524a4c61b4fb506ea5b0e8f1.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 TestCase_f3dfe9fd524a4c61b4fb506ea5b0e8f1 {
+ @State Err_CheckBoxGroup_Null:CheckBoxShape|null=CheckBoxShape.CIRCLE;
+ @State CheckBox_undefined:CheckBoxShape|number=1
+ build() {
+ Column({ space: 10 }) {
+ Button('Err_CheckBoxGroup_Null')
+ .id('button')
+ .onClick(()=>{
+ this.Err_CheckBoxGroup_Null=null
+ })
+ Button('CheckBox_undefined')
+ .id('button1')
+ .onClick(()=>{
+ this.CheckBox_undefined=-1
+ })
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(this.Err_CheckBoxGroup_Null)
+ Text('Select All')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(this.CheckBox_undefined)
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(this.CheckBox_undefined)
+ Text('Checkbox2')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ .shape(this.CheckBox_undefined)
+ Text('Checkbox3')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_f6ebb74473054e0294f3c2b26c3d96c4.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_f6ebb74473054e0294f3c2b26c3d96c4.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7593ffff0289a1303f2d5c0b45bb047273efafe0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_f6ebb74473054e0294f3c2b26c3d96c4.ets
@@ -0,0 +1,124 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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'
+
+class MyCheckboxStyle implements ContentModifier {
+ selectedColor: Color = Color.White;
+ name:string='';
+ selected: boolean=false;
+ triggerChange: Callback =()=>{};
+
+
+
+ constructor(selectedColor: Color) {
+
+ this.selectedColor = selectedColor;
+
+
+ }
+ applyContent() : WrappedBuilder<[CheckBoxConfiguration]>
+ {
+ return wrapBuilder(buildCheckbox)
+ }
+}
+@Builder function buildCheckbox(config: CheckBoxConfiguration) {
+ Column({space:10}) {
+ Text(config.name + (config.selected ? "( 选中 )" : "( 取消选中 )")).margin({right : 70, top : 50})
+ Text(config.selected ? "selectValue true"
+ : "selectValue false").margin({right : 110})
+ Shape() {
+ Rect()
+ .width(50)
+ .height(50)
+ .onClick(()=>{
+ if (config.selected) {
+ config.triggerChange(false)
+ } else {
+ config.triggerChange(true)
+ }
+ })
+ .border({width:3})
+ .fill(config.selected?Color.Red:Color.White)
+ .opacity(config.enabled ? 1 : 0.1)
+ // Rect()
+ // .width(40)
+ // .height(40)
+ // .visibility(config.selected ? Visibility.Visible : Visibility.Hidden)
+ // .fill(config.selected ? (config.contentModifier as MyCheckboxStyle).selectedColor : Color.Black)
+ // .stroke((config.contentModifier as MyCheckboxStyle).selectedColor)
+ // .margin({left:10,top:10})
+ // .opacity(config.enabled ? 1 : 0.1)
+ }
+ .width(300)
+ .height(200)
+ .viewPort({ x: 0, y: 0, width: 310, height: 310 })
+ .strokeLineJoin(LineJoinStyle.Miter)
+ .strokeMiterLimit(5)
+ .margin({left:50})
+ }
+}
+
+@Entry
+@Component
+struct TestCase_a7a46f6c36d04ca69e363d0e3ad4a814 {
+ @State flag:boolean=true
+ @State btnVal:string='取消选中'
+ @State Trigger:number=0
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row() {
+ Text('onChange Trigger:'+this.Trigger)
+ Checkbox({ name:'Checkbox1',group: 'checkboxGroup' })
+ .contentModifier(new MyCheckboxStyle(Color.Red))
+ .select(this.flag)
+ .id('checkbtn')
+
+ }.margin(5)
+ Column({space:3}) {
+ Button('builder_triggerChange_NONE')
+ .id('btn1')
+ .onClick(()=>{
+ this.flag=true
+ })
+ Button('select_Dynamic')
+ .id('btn2')
+ .onClick(()=>{
+ this.flag=true
+ })
+
+ Button('button-'+this.btnVal)
+ .id('btn4')
+ .onClick(()=>{
+ this.flag=false
+ this.Trigger=1
+ if(this.btnVal=='取消选中'){
+ this.btnVal='选中'
+ }else{
+ this.btnVal='取消选中'
+ }
+
+ })
+
+ }.margin(5)
+
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCaseda93e485c7064bb9b26191cba14ebbac.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCaseda93e485c7064bb9b26191cba14ebbac.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e3335e25e145e6fc82d79b5fa67638a9306d9191
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCaseda93e485c7064bb9b26191cba14ebbac.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 TestCaseda93e485c7064bb9b26191cba14ebbac {
+ @State isSelected:boolean = true;
+ @Builder
+ indicatorBuilder() {
+ Column(){
+ List(){
+ ForEach([1,2,3,4,5,6,7,8],(item:number)=>{
+ ListItem(){
+ Text(item.toString())
+ .fontSize(20)
+ .fontColor(this.isSelected?Color.Pink:Color.Green)
+ }
+ })
+ }
+ .backgroundColor(this.isSelected?Color.Orange:Color.White)
+ .id("list")
+ }
+ .offset({y:120})
+ .width("100%")
+ .height(64)
+ }
+ build() {
+ Column(){
+ Column({space:120}){
+ Checkbox({indicatorBuilder:()=>{this.indicatorBuilder()}})
+ .width("50%")
+ .id('ComponentCheckBox001')
+ .unselectedColor(Color.Green)
+ .shape(CheckBoxShape.CIRCLE)
+ .selectedColor(Color.Orange)
+ .select(this.isSelected)
+ .borderColor(Color.Green)
+ .mark({strokeColor:Color.Black,size:50,strokeWidth:5})
+ Button(this.isSelected?"取消选中":"选中").onClick((event: ClickEvent) => {
+ this.isSelected = !this.isSelected;
+ })
+ .id("button")
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ }
+ .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/UIAlertDialog/UIComponentPopupboxStylestrong0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAlertDialog/UIComponentPopupboxStylestrong0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2afc4465f827219891d6c19b0a13e3b6fe8e6179
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAlertDialog/UIComponentPopupboxStylestrong0080.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.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxStylestrong0080 {
+ build() {
+ Row() {
+ Button('40')
+ .id('AlertDialog40')
+ .onClick(() => {
+ AlertDialog.show({
+ title: 'AlertDialog 40',
+ subtitle: 'subtitle',
+ message: 'text',
+ autoCancel: true,
+ height: 40,
+ confirm: {
+ value: 'button',
+ action: () => {
+ console.info('Button-clicking callback')
+ }
+ },
+ })
+ })
+ Button('100')
+ .margin(20)
+ .id('AlertDialog100')
+ .onClick(() => {
+ AlertDialog.show({
+ title: 'AlertDialog 100',
+ subtitle: 'subtitle',
+ message: 'text',
+ autoCancel: true,
+ height: '100%',
+ confirm: {
+ value: 'button',
+ action: () => {
+ console.info('Button-clicking callback')
+ }
+ },
+ })
+ })
+ Button('10000')
+ .margin(20)
+ .id('AlertDialog10000')
+ .onClick(() => {
+ AlertDialog.show({
+ title: 'AlertDialog 10000',
+ subtitle: 'subtitle',
+ message: 'text',
+ autoCancel: true,
+ height: 10000,
+ confirm: {
+ value: 'button',
+ action: () => {
+ console.info('Button-clicking callback')
+ }
+ },
+ })
+ })
+ }.width('100%').justifyContent(FlexAlign.Start)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8113f204a715f0e5279dc36fe9707fc8b1497968
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0010.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 UIAttributesModaltransitionAnimator0010 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height: 200,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d2cad26d117798b2629f80cb63820a6d8171cc90
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0020.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 UIAttributesModaltransitionAnimator0020 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 200,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..46adf6cf1d40a1eacfcef48c31a91a174d9b5c94
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0030.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 UIAttributesModaltransitionAnimator0030 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 200,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..98d7587c3c9144a2f7100ad757cf6ca76afe2ad0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0040.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 UIAttributesModaltransitionAnimator0040 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 200,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1178bc3ec0c9ba04267a6fbf323cf6516b4cf8d5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0050.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 UIAttributesModaltransitionAnimator0050 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [300, 500],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f781e147a3024f53069b2a92856fe7c9b86910eb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0060.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 UIAttributesModaltransitionAnimator0060 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 200,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..99450101a8e1b07a5d474e148a39b726b1d16f7e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0070.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 UIAttributesModaltransitionAnimator0070 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 200,
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.justifyContent(FlexAlign.Center)
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4c0ea5f7d7fff4c8a0789cd837562b96abd40555
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0010.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 UIAttributesModaltransitionAvoid0010 {
+
+ @State isShow: boolean = false
+ arr: number[] = this.genArr();
+
+ genArr(): number[] {
+ const arr: number[] = [];
+ for (let i = 0; i < 50; i++) {
+ arr.push(i + 1);
+ }
+ return arr;
+ }
+
+ @Builder
+ myBuilder() {
+ Column() {
+ List() {
+ ForEach(this.arr, (item: number) => {
+ ListItem() {
+ Text(`item ${item}`).height(40)
+ }
+ })
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({ top: 20 })
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[450, 300],
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8b0bda627c7092f0d70326ccc929147fc6a33339
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0020.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 UIAttributesModaltransitionAvoid0020 {
+
+ @State isShow: boolean = false
+ arr: number[] = this.genArr();
+
+ genArr(): number[] {
+ const arr: number[] = [];
+ for (let i = 0; i < 5; i++) {
+ arr.push(i + 1);
+ }
+ return arr;
+ }
+
+ @Builder
+ myBuilder() {
+ Column() {
+ List() {
+ ForEach(this.arr, (item: number) => {
+ ListItem() {
+ Text(`item ${item}`).height(40)
+ }
+ })
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({ top: 20 })
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height: SheetSize.LARGE,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..382ef5f9adbdab67925aedefa3a4fafba01106ad
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0030.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 UIAttributesModaltransitionAvoid0030 {
+
+ @State isShow: boolean = false
+ arr: number[] = this.genArr();
+
+ genArr(): number[] {
+ const arr: number[] = [];
+ for (let i = 0; i < 50; i++) {
+ arr.push(i + 1);
+ }
+ return arr;
+ }
+
+ @Builder
+ myBuilder() {
+ Column() {
+ List() {
+ ForEach(this.arr, (item: number) => {
+ ListItem() {
+ Text(`item ${item}`).height(40)
+ }
+ })
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind ContentOver")
+ .id('button1')
+ .margin({ top: 20 })
+ .bindContentCover($$this.isShow, this.myBuilder, {
+
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1758fcefcec53b644a40254b02afa0381a9f93d9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0040.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 UIAttributesModaltransitionAvoid0040 {
+ @State isShow: boolean = false
+ arr: number[] = this.genArr();
+
+ genArr(): number[] {
+ const arr: number[] = [];
+ for (let i = 0; i < 50; i++) {
+ arr.push(i + 1);
+ }
+ return arr;
+ }
+
+ @Builder
+ myBuilder() {
+ Scroll() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ }.expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.BOTTOM])
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind ContentOver")
+ .id('button1')
+ .margin({ top: 20 })
+ .bindContentCover($$this.isShow, this.myBuilder, {})
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..212ca98ee010c28ea1d874d966889414a9e61501
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0010.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 UIAttributesModaltransitionInteration0010 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[ SheetSize.MEDIUM, SheetSize.LARGE ],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..50b6b20c945f5df0d29464915757089103ee991a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0020.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 UIAttributesModaltransitionInteration0020 {
+ @State isShow: boolean = false
+ arr: number[] = this.genArr();
+
+ genArr(): number[] {
+ const arr: number[] = [];
+ for (let i = 0; i < 100; i++) {
+ arr.push(i + 1);
+ }
+ return arr;
+ }
+
+ @Builder
+ myTitle() {
+ Text("Sheet Title").id('sheet_title')
+ }
+
+ @Builder
+ myBuilder() {
+ Column() {
+ List() {
+ ForEach(this.arr, (item: number) => {
+ ListItem() {
+ Text(`item ${item}`).height(40)
+ }
+ })
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({ top: 20 })
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents: [600, 300, 450],
+ preferType: SheetType.BOTTOM,
+ title: this.myTitle
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3cb309034a6377427e01fc0d4fd4c68355a47e45
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0030.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 UIAttributesModaltransitionInteration0030 {
+
+ @State isShow: boolean = false
+
+ @State phoneNumber: string = '(86) (755) ********';
+ @State url: string = 'www.********.com';
+ @State email: string = '***@example.com';
+ @State address: string = 'XX省XX市XX区XXXX';
+ @State datetime: string = 'XX年XX月XX日XXXX';
+
+ @Builder
+ myBuilder() {
+ Text('电话号码:' + this.phoneNumber + '\n' +
+ '链接:' + this.url + '\n' +
+ '邮箱:' + this.email + '\n' +
+ '地址:' + this.address + '\n' +
+ '时间:' + this.datetime)
+ .id("sheet_text")
+ .width('100%')
+ .height(500)
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height:300
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..709b053c948d554a5cbdcb15b5b5d0a8d9d958b1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0040.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 UIAttributesModaltransitionInteration0040 {
+
+ @State isShow: boolean = false
+
+ @State phoneNumber: string = '(86) (755) ********';
+ @State url: string = 'www.********.com';
+ @State email: string = '***@example.com';
+ @State address: string = 'XX省XX市XX区XXXX';
+ @State datetime: string = 'XX年XX月XX日XXXX';
+
+ @Builder
+ myBuilder() {
+ Text('电话号码:' + this.phoneNumber + '\n' +
+ '链接:' + this.url + '\n' +
+ '邮箱:' + this.email + '\n' +
+ '地址:' + this.address + '\n' +
+ '时间:' + this.datetime)
+ .id("sheet_text")
+ .width('100%')
+ .height(500)
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height:300,
+ preferType: SheetType.CENTER
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dcc368193c8e9b6c09d1ec3e370981b8f51fbc15
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0050.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 UIAttributesModaltransitionInteration0050 {
+
+ @State isShow: boolean = false
+ @State desc: boolean = false;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Button 2 click:${this.desc}`)
+
+ Button("Button 2")
+ .id('button2')
+ .margin({top: 20})
+ .onClick(() => {
+ this.desc = true;
+ })
+
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height:SheetSize.MEDIUM,
+ maskColor: '#88888888',
+ preferType: SheetType.CENTER,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+
+
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1f93142443a5fc764751df7d1b53c7f117df1a94
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0060.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 UIAttributesModaltransitionInteration0060 {
+
+ @State isShow: boolean = false
+ @State desc: boolean = false;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Button 2 click:${this.desc}`)
+
+ Button("Button 2")
+ .id('button2')
+ .margin({top: 20})
+ .onClick(() => {
+ this.desc = true;
+ })
+
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height:SheetSize.MEDIUM,
+ enableOutsideInteractive: true,
+ preferType: SheetType.CENTER,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+
+
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ed116601857cd296e292ccef1c5eda37ae60330f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0070.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 UIAttributesModaltransitionInteration0070 {
+
+ @State isShow: boolean = false
+ @State desc: boolean = false;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Button 2 click:${this.desc}`)
+
+ Button("Button 2")
+ .id('button2')
+ .margin({top: 20})
+ .onClick(() => {
+ this.desc = true;
+ })
+
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height:SheetSize.MEDIUM,
+ enableOutsideInteractive: true,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+
+
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..35fd6c2e968bcb9c0368810699861f6d0e235efe
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0080.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 UIAttributesModaltransitionInteration0080 {
+
+ @State isShow: boolean = false
+ @State desc: boolean = false;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Button 2 click:${this.desc}`)
+
+ Button("Button 2")
+ .id('button2')
+ .margin({top: 20})
+ .onClick(() => {
+ this.desc = true;
+ })
+
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height:SheetSize.MEDIUM,
+ maskColor:'#88000000',
+ enableOutsideInteractive: false,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..452bbf728e86ad9ed94d99e271ec300d8dedd167
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0100.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 UIAttributesModaltransitionInteration0100 {
+ @State isShow: boolean = false
+ arr: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20];
+ @State phoneNumber: string = '(86) (755) ********';
+ @State url: string = 'www.********.com';
+ @State email: string = '***@example.com';
+ @State address: string = 'XX省XX市XX区XXXX';
+ @State datetime: string = 'XX年XX月XX日XXXX';
+
+ @Builder
+ myBuilder() {
+ Text('电话号码:' + this.phoneNumber + '\n' +
+ '链接:' + this.url + '\n' +
+ '邮箱:' + this.email + '\n' +
+ '地址:' + this.address + '\n' +
+ '时间:' + this.datetime)
+ .id("sheet_text")
+ .width('100%')
+ .height(500)
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({ top: 20 })
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height: 300,
+ preferType: SheetType.POPUP
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0f53f60c3da01e9815c1f5250da76fe4e511d145
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0110.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 UIAttributesModaltransitionInteration0110 {
+ @State isShow: boolean = false
+ @State desc: boolean = false;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Button 2 click:${this.desc}`)
+
+ Button("Button 2")
+ .id('button2')
+ .margin({top: 20})
+ .onClick(() => {
+ this.desc = true;
+ })
+
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height:SheetSize.MEDIUM,
+ enableOutsideInteractive: true,
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+
+
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f559afa20386b4b79535284127e7f3225d0cdba4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0120.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 UIAttributesModaltransitionInteration0120 {
+
+ @State isShow: boolean = false
+ @State desc: boolean = false;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Button 2 click:${this.desc}`)
+
+ Button("Button 2")
+ .id('button2')
+ .margin({top: 20})
+ .onClick(() => {
+ this.desc = true;
+ })
+
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height:SheetSize.MEDIUM,
+ maskColor:'#88000000',
+ enableOutsideInteractive: false,
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8ffb53e2702a505903e354aeea10fdddb891c12b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0010.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 UIAttributesModaltransitionSafearea0010 {
+ @State isShow: boolean = false
+
+ @Builder
+ myBuilder() {
+ Column() {
+ TextInput()
+ .id("input1")
+ .margin({top: 20})
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('bindSheet')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: SheetSize.LARGE,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .width('100%')
+ .height('100%')
+ }
+
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c9986da8054cfa7e2bdb00d60313a22e4b133eef
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0020.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 UIAttributesModaltransitionSafearea0020 {
+
+ @State isShow: boolean = false
+
+ @Builder
+ myBuilder() {
+ Column() {
+ TextInput()
+ .id("input1")
+ .margin({top: 20})
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('bindSheet')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: SheetSize.FIT_CONTENT,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .width('100%')
+ .height('100%')
+ }
+
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2faae56e30472c5cb9738de3a2b0a71d8afcc6c2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0030.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 UIAttributesModaltransitionSafearea0030 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Scroll() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ TextInput({ text: `inpput ${item}` })
+ .id(`input${item}`)
+ .margin({top: 20})
+ })
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('bindSheet')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: SheetSize.LARGE,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ba4fdec9952358ced4883f2625407764ed85a77f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0080.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 UIAttributesModaltransitionSafearea0080 {
+
+ @State isShow: boolean = false
+
+ @Builder
+ myBuilder() {
+ Column() {
+ TextInput()
+ .id("input1")
+ .margin({bottom: 20})
+ TextInput()
+ .id("input2")
+ .margin({bottom: 60})
+ }.justifyContent(FlexAlign.End)
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('bindSheet')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: SheetSize.FIT_CONTENT,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..665f53b49501e732b9b368449a3a9fe1a12cd75b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0090.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 UIAttributesModaltransitionSafearea0090 {
+
+ @State isShow: boolean = false
+
+ @Builder
+ myBuilder() {
+ Column() {
+ TextInput()
+ .id("input1")
+ TextInput()
+ .id("input2")
+ .margin({bottom: 60})
+ }.justifyContent(FlexAlign.End)
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('bindSheet')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: SheetSize.FIT_CONTENT,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..14427f449c2093c18dd66f2267b85a070e2eb477
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0100.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 UIAttributesModaltransitionSafearea0100 {
+
+ @State isShow: boolean = false
+
+ @Builder
+ myBuilder() {
+ Column() {
+ TextInput()
+ .id("input1")
+ .margin({bottom: 20})
+ TextInput()
+ .id("input2")
+ .margin({bottom: 60})
+ }.justifyContent(FlexAlign.End)
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('bindSheet')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: SheetSize.FIT_CONTENT,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..af24a90ebb8351497ad10ba63c818837ad62e570
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0110.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 UIAttributesModaltransitionSafearea0110 {
+
+ @State isShow: boolean = false
+
+ @Builder
+ myBuilder() {
+ Column() {
+ TextInput()
+ .id("input1")
+ .margin({bottom: 20})
+ TextInput()
+ .id("input2")
+ .margin({bottom: 60})
+ }.justifyContent(FlexAlign.SpaceBetween)
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('bindSheet')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: SheetSize.LARGE,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d02ecce969f7c044f9c2f750859be74706e3eb7c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0120.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 UIAttributesModaltransitionSafearea0120 {
+
+ @State isShow: boolean = false
+
+ @Builder
+ myBuilder() {
+ Column() {
+ TextInput()
+ .id("input1")
+ .margin({bottom: 20})
+ TextInput()
+ .id("input2")
+ .margin({bottom: 60})
+ }.justifyContent(FlexAlign.SpaceBetween)
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('bindSheet')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: SheetSize.LARGE,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5f3988c022aa1d440b3fc520d8a9cd71722e280d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0030.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 UIAttributesModaltransitionVision0030 {
+ @State isShow: boolean = false
+ @State detents: number = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`当前挡位:${this.detents}`)
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[400, 500, 100],
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents) => {
+ this.detents = Math.floor(px2vp(detents));
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..095453f29952d04c59553abeb99bab73281f9683
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0040.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 UIAttributesModaltransitionVision0040 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[400, 500, 100],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0dea8e0f4fd60cdd026318c09b931f867f12a81e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0050.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 UIAttributesModaltransitionVision0050 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[500, 350],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..66d627e44b023eaa78f1cc769feb08d32cd3e8d0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0060.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 UIAttributesModaltransitionVision0060 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[500, 350],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a02a84009e36f15bf707635659b13ea8df317c05
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_1.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 UIAttributesModaltransitionVision0070_1 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[100, 200, 300],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_2.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7cb3338775234bc3d2175e5ec856f44f5cae7abe
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_2.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 UIAttributesModaltransitionVision0070_2 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[100, 200, 300],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_3.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_3.ets
new file mode 100644
index 0000000000000000000000000000000000000000..40b0dd4c95368dfddf58c5f8887a167e48c32ff3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_3.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 UIAttributesModaltransitionVision0070_3 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[100, 200, 300],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_4.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_4.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a34bd8c4eed23731f3bdef20e21429f5636f69bf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_4.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 UIAttributesModaltransitionVision0070_4 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[100, 200, 300],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b0b51dafc6bd04403addbe2cba5fe910528f91af
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_1.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 UIAttributesModaltransitionVision0080_1 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[100, 200, 300],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_2.ets
new file mode 100644
index 0000000000000000000000000000000000000000..de16a95d1ee8cda8e6295671bcc0ef72c8cf5072
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_2.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 UIAttributesModaltransitionVision0080_2 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[100, 200, 300],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_3.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_3.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2dbc8d13c6578116ef647cdf9a6ba1d18261705c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_3.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 UIAttributesModaltransitionVision0080_3 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[100, 200, 300],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0805ae3a1d7e701165a5a1aee55a42ff538f6e76
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0100.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 UIAttributesModaltransitionVision0100 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:['50%', SheetSize.FIT_CONTENT, SheetSize.LARGE],
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0bba8c2dd8d563193b2df68757bc689963912bd5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_1.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 UIAttributesModaltransitionVision0150_1 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet: 居中")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height:50,
+ preferType: SheetType.CENTER,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_2.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e9aa825c743b91ab5e68041247fe46a377872b32
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_2.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 UIAttributesModaltransitionVision0150_2 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet:跟手")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height:50,
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a0892317d556a15e40f6b48a49fd34402a9e622f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0190.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 UIAttributesModaltransitionVision0190 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height:'100%',
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..73b83ecf2e556e0f2b3957ce996f5e566eebf7ca
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0200.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 UIAttributesModaltransitionVision0200 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ height:'100%',
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9e0c35f8b496b5960e33ec2fd998d5263e0a1bf9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0230.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 UIAttributesModaltransitionVision0230 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.MEDIUM, '40%', 450],
+ height: SheetSize.LARGE,
+ preferType: SheetType.CENTER,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4a1ea7259088cc69719ddc8b2197111fe5b43708
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0240.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 UIAttributesModaltransitionVision0240 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.MEDIUM, '40%', 450],
+ height: SheetSize.LARGE,
+ preferType: SheetType.CENTER,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..56eb0c3ee47daa491d90f6b37e76d98e3a3698aa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0270.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 UIAttributesModaltransitionVision0270 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.LARGE, '50%', 100],
+ preferType: SheetType.CENTER,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a2e60b16633ff58af36ba22bc59b3df3ff2aad2f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0280.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 UIAttributesModaltransitionVision0280 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.LARGE, '50%', 100],
+ height: SheetSize.LARGE,
+ preferType: SheetType.CENTER,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..055e2f294b1b411061d64a82d3ed9df9676ee4ce
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0310.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 UIAttributesModaltransitionVision0310 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.MEDIUM, '40%'],
+ height: SheetSize.FIT_CONTENT,
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e625c49483777a1dd079968d6662932c8e830207
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0320.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 UIAttributesModaltransitionVision0320 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.MEDIUM, '40%'],
+ height: SheetSize.FIT_CONTENT,
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0350.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a50b6693618a1d90e124c4da36618ea4b6f57fcf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0350.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 UIAttributesModaltransitionVision0350 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.MEDIUM, '40%', 450],
+ height: 420,
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f95a49665464757edc348059adde862332646dff
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0360.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 UIAttributesModaltransitionVision0360 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.MEDIUM, '40%', 450],
+ height: 420,
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..216ab5c17c5a7432cd75e46d05bb47330962d757
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0390.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 UIAttributesModaltransitionVision0390 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.MEDIUM, '40%', 450],
+ height: '100%',
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..78856dd3ee2d5c0698577224441686a69541e1d5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0400.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 UIAttributesModaltransitionVision0400 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.MEDIUM, '40%', 450],
+ height: '100%',
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0430.ets
new file mode 100644
index 0000000000000000000000000000000000000000..06f682be1afd5fd22cbf2362512bde789b740377
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0430.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 UIAttributesModaltransitionVision0430 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.MEDIUM, '40%', 450],
+ height: 100,
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0440.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e9d14adaaf0c87fd484123fc21a490035facbc89
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0440.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 UIAttributesModaltransitionVision0440 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.MEDIUM, '40%', 450],
+ height: 100,
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0470.ets
new file mode 100644
index 0000000000000000000000000000000000000000..86ba67c067aab10d0c5e4df417c814bd8e9cd576
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0470.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 UIAttributesModaltransitionVision0470 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.LARGE, '50%', 100],
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0480.ets
new file mode 100644
index 0000000000000000000000000000000000000000..744832028783066437a4c7492a7176cceefdf5f1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0480.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 UIAttributesModaltransitionVision0480 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.LARGE, '50%', 100],
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0500.ets
new file mode 100644
index 0000000000000000000000000000000000000000..93011920c13c7e60b5bfef83d7f725acf6e5e16e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0500.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 UIAttributesModaltransitionVision0500 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ showClose: false,
+ height: SheetSize.MEDIUM,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0510.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6e30753ff9492849f01c0d30908b802a6153a1aa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0510.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 UIAttributesModaltransitionVision0510 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ showClose: true,
+ height: SheetSize.MEDIUM,
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0520.ets
new file mode 100644
index 0000000000000000000000000000000000000000..91c1b4f1e5b4d9d68e12b3a77cc89f70b80fe4ae
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0520.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 UIAttributesModaltransitionVision0520 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.LARGE, '50%', 100],
+ height: SheetSize.MEDIUM,
+ preferType: SheetType.BOTTOM,
+ title: {
+ title: 'Main Title',
+ subtitle: 'Sub Title'
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0540.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9bf8046cc919b457cfea7cc64c33826838f269e1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0540.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 UIAttributesModaltransitionVision0540 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {})
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0550.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0cda5fd8c1e4cd060dca9f94d5775122cdedf8a0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0550.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 UIAttributesModaltransitionVision0550 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {})
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0570.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4987210699714fa1df7af96b092b7c1d8bb5c173
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0570.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 UIAttributesModaltransitionVision0570 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.MEDIUM, '40%', 450],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0590.ets
new file mode 100644
index 0000000000000000000000000000000000000000..538272e2ece7da0ee90df577cd3a20c8b56abc4a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0590.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 UIAttributesModaltransitionVision0590 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ title: {
+ title: '测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题'
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0600.ets
new file mode 100644
index 0000000000000000000000000000000000000000..880ea404cab370ae2fb0152ea3a31b329ec8dd26
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0600.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 UIAttributesModaltransitionVision0600 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ title: {
+ title: '正常显示标题'
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0620.ets
new file mode 100644
index 0000000000000000000000000000000000000000..35cbe268f6c3fc548c07b10ca216c50a72677ef4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0620.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 UIAttributesModaltransitionVision0620 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0630.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d92d7d285ef2dd2488a956d9cdfba860b3321f0f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0630.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 UIAttributesModaltransitionVision0630 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ preferType: SheetType.POPUP,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0660.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3531b21b81df5390e114f243c7496a0ac099f830
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0660.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 UIAttributesModaltransitionVision0660 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ preferType: SheetType.CENTER,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0670.ets
new file mode 100644
index 0000000000000000000000000000000000000000..59e0ca669d4c91a9990989e644423312230c53c8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0670.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 UIAttributesModaltransitionVision0670 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ preferType: SheetType.CENTER,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0690.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d5ed8e1342a2d2989bb0073f6df37dcc38c35602
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0690.ets
@@ -0,0 +1,61 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIAttributesModaltransitionVision0690 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ @Builder
+ myTitle() {
+ List() {
+ ForEach([1,2,3,4,5,6,7,8,9,10], (item: number) => {
+ ListItem() {
+ Text(`List Item ${item}`).height(40)
+ }
+ })
+ }
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ title: this.myTitle
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0700.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7f1580243cfdacbbf6403029927c9da2d99d1d97
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0700.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 UIAttributesModaltransitionVision0700 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ @Builder
+ myTitle() {
+ Text("Menu Title").id("sheet_title").bindMenu(this.titleMenu)
+ }
+
+ @Builder
+ titleMenu() {
+ Menu() {
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ }
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.MEDIUM],
+ preferType: SheetType.BOTTOM,
+ title: this.myTitle
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0710.ets
new file mode 100644
index 0000000000000000000000000000000000000000..90e29a60286bb9b232ec6e607ed42da30d6c787d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0710.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 UIAttributesModaltransitionVision0710 {
+ @State isShow: boolean = false
+ arr: number[] = [1, 2, 3, 4, 5, 6, 7];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({ top: 20 })
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[SheetSize.FIT_CONTENT],
+ preferType: SheetType.BOTTOM,
+ height: SheetSize.FIT_CONTENT
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0720.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8fd49d4ece4916aa990c69e2c18750b37b53c9d5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0720.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 UIAttributesModaltransitionVision0720 {
+
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ @Builder
+ myTitle() {
+ Text(`Custom Title`).height(40)
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ title: this.myTitle
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0730.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a19818fd5febb5ac93ce582d8d30c69d9f5885ea
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0730.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 UIAttributesModaltransitionVision0730 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents:[300],
+ title: {
+ title: "超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试"
+ },
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0770.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dd2821f427198d9f30ab6ee9e867ab2198f77b5d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0770.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 UIAttributesModaltransitionVision0770 {
+ @State isShow: boolean = false
+ arr: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30];
+
+ @Builder
+ myBuilder() {
+ List() {
+ ForEach(this.arr, (item: number) => {
+ ListItem() {
+ Text(`item ${item}`).height(40)
+ }
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bind sheet")
+ .id('button1')
+ .margin({ top: 20 })
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ preferType: SheetType.BOTTOM,
+ scrollSizeMode: ScrollSizeMode.CONTINUOUS
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIBindContentCover/UIComponentPopupboxModalrtamsition0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIBindContentCover/UIComponentPopupboxModalrtamsition0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..10aac13a4e13cbcc2cfae36535bf12c3b5fd5191
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIBindContentCover/UIComponentPopupboxModalrtamsition0010.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 UIComponentPopupboxModalrtamsition0010 {
+ @State isShow: boolean = false
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Button("close")
+ .id('CloseModalPage')
+ .margin(10)
+ .fontSize(20)
+ .onClick(() => {
+ this.isShow = false;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .gesture(
+ SwipeGesture({ direction: SwipeDirection.Horizontal })
+ .onAction((event: GestureEvent) => {
+ console.log("SwipeGesture event.speed==" + event.speed)
+ console.log("SwipeGesture event.angle==" + event.angle)
+ this.isShow = false
+ })
+ )
+ }
+
+ build() {
+ Column() {
+ Button("Open Modal Page")
+ .id('OpenModalPage')
+ .onClick(() => {
+ this.isShow = true
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover(this.isShow, this.myBuilder(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: Color.Pink,
+ onWillAppear: () => {
+ console.log("BindContentCover onWillAppear.")
+ },
+ onAppear: () => {
+ console.log("BindContentCover onAppear.")
+ },
+ onWillDisappear: () => {
+ console.log("BindContentCover onWillDisappear.")
+ },
+ onDisappear: () => {
+ console.log("BindContentCover onDisappear.")
+ }
+ })
+ }
+ .justifyContent(FlexAlign.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/UIButton/ButtonModifier.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/ButtonModifier.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e5766b97b9461674c5d0fc2c51870e58346fb0f8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/ButtonModifier.ets
@@ -0,0 +1,144 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export interface TestAttributes {
+ FontFamily?: (string | Resource)
+ FontStyle?: FontStyle
+ FontWeight?: (string | number | FontWeight)
+ FontSize?: Length
+ FontColor?: ResourceColor
+ StateEffect?: boolean
+ Type?: ButtonType
+ LabelStyle?: LabelStyle
+}
+
+//初始化测试数据
+export const LabelData: TestAttributes[] = [
+ {
+ LabelStyle: undefined
+ },
+ {
+ LabelStyle: {
+ overflow: TextOverflow.Ellipsis,
+ maxLines: 6,
+ maxFontSize: 20,
+ minFontSize: 20,
+ heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST,
+ font: {
+ size: 20,
+ weight: 8,
+ family: "HarmonyOS Sans",
+ style: FontStyle.Normal
+ }
+ }
+ },
+ {
+ LabelStyle: {
+ overflow: TextOverflow.Ellipsis,
+ maxLines: 2,
+ maxFontSize: 100,
+ minFontSize: 20,
+ heightAdaptivePolicy: TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST,
+ font: {
+ size: 40,
+ weight: 400,
+ family: "HarmonyOS Sans",
+ style: FontStyle.Normal
+ }
+ },
+ },
+ {
+ LabelStyle: {
+ overflow: TextOverflow.Ellipsis,
+ maxLines: 2,
+ maxFontSize: 100,
+ minFontSize: 20,
+ heightAdaptivePolicy: TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST,
+ font: {
+ size: 40,
+ weight: 400,
+ family: "HarmonyOS Sans",
+ style: FontStyle.Normal
+ }
+ }
+ },
+ {
+ LabelStyle: {
+ overflow: TextOverflow.MARQUEE,
+ maxLines: 2,
+ maxFontSize: 100,
+ minFontSize: 20,
+ heightAdaptivePolicy: TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST,
+ font: {
+ size: 20,
+ weight: 8,
+ family: "HarmonyOS Sans",
+ style: FontStyle.Italic
+ }
+ }
+ }
+]
+
+
+
+export const FontData: TestAttributes[] = [
+ {
+ FontFamily: "HarmonyOS Sans",
+ FontWeight: "100",
+ FontSize: 20,
+ StateEffect: false,
+ FontStyle: FontStyle.Italic,
+ Type: ButtonType.Capsule,
+ FontColor: '#ff0000ff'
+ },
+ {
+ FontFamily: "cursive",
+ FontWeight: "bold",
+ FontSize: 30.0,
+ StateEffect: false,
+ FontStyle: FontStyle.Italic,
+ Type: ButtonType.Normal,
+ FontColor: Color.Red
+ },
+ {
+ FontSize: ControlSize.SMALL,
+ FontColor: '#ffffff',
+ StateEffect: true,
+ FontStyle: FontStyle.Normal,
+ },
+ {
+ FontSize: ControlSize.NORMAL,
+ }
+]
+
+export interface CalendarPickerTestAttributes {
+ EdgeAlign?: CalendarAlign
+ Offset?: Position | Edges | LocalizedEdges
+ TextStyle?: PickerTextStyle
+}
+
+//初始化测试数据
+export const CalendarPickerTestData: CalendarPickerTestAttributes[] = [
+ {
+ EdgeAlign: CalendarAlign.START,
+ Offset: {x: 10, y: 10},
+ TextStyle: { font: {family: "", size: '12px', style: FontStyle.Normal, weight: FontWeight.Normal }, color: 0xfffffff },
+ },
+ {
+ EdgeAlign: CalendarAlign.START,
+ Offset: {x: 10, y: 10},
+ TextStyle: { font: {family: "", size: '12px', style: FontStyle.Normal, weight: FontWeight.Normal }, color: Color.Blue },
+ }
+]
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonAttrlbuteUpdater0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonAttrlbuteUpdater0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ec6274b10b9db3943dfde0471e7fbac6e5f3bfee
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonAttrlbuteUpdater0210.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 UIComponentButtonButtonAttrlbuteUpdater0210 {
+ @State buttonText : string = '设置支持更新Button组件的构造参数'
+ @State buttonType : ButtonType = ButtonType.Normal
+ @State buttonStyleMode : ButtonStyleMode = ButtonStyleMode.NORMAL
+ @State controlSize : ControlSize = ControlSize.NORMAL
+ build() {
+ Column() {
+ Button(this.buttonText , {type: this.buttonType})
+ .controlSize(this.controlSize)
+ .buttonStyle(this.buttonStyleMode)
+ Text('C23')
+ .id('c23')
+ .onClick(()=>{
+ console.log('buttontest','c23 onClick')
+ this.buttonText = ''
+ this.buttonType = ButtonType.Circle
+ this.controlSize = ControlSize.SMALL
+ })
+ Text('C24')
+ .id('c24')
+ .onClick(()=>{
+ console.log('buttontest','c24 onClick')
+ this.buttonText = '场景六修改'
+ this.buttonStyleMode = ButtonStyleMode.EMPHASIZED
+ })
+
+ Text('C25')
+ .id('c25')
+ .onClick(()=>{
+ console.log('buttontest','c25 onClick')
+ this.buttonText = ''
+ this.buttonType = ButtonType.Capsule
+ this.controlSize = ControlSize.NORMAL
+ this.buttonStyleMode = ButtonStyleMode.EMPHASIZED
+ })
+ Text('C26')
+ .id('c26')
+ .onClick(()=>{
+ console.log('buttontest','c26 onClick')
+ this.buttonText = ''
+ this.buttonType = ButtonType.Capsule
+ this.controlSize = ControlSize.NORMAL
+ this.buttonStyleMode = ButtonStyleMode.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/UIButton/UIComponentButtonButtonAttrlbuteUpdater0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonAttrlbuteUpdater0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..29f8534d016f8fa7d45a887c2313d873c63207e0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonAttrlbuteUpdater0220.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 UIComponentButtonButtonAttrlbuteUpdater0220 {
+ @State buttonType: ButtonType = ButtonType.Capsule
+ @State buttonStyleMode: ButtonStyleMode = ButtonStyleMode.EMPHASIZED
+
+ build() {
+ Column() {
+ Button('Red')
+ .id('button')
+ .type(this.buttonType)
+ .buttonStyle(this.buttonStyleMode)
+ .controlSize(ControlSize.NORMAL)
+ .onClick(() => {
+ this.buttonType = ButtonType.Normal
+ this.buttonStyleMode = ButtonStyleMode.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/UIButton/UIComponentButtonButtonAttrlbuteUpdater0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonAttrlbuteUpdater0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cf784a820da98c9015d64cb1850c569f0f97fc27
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonAttrlbuteUpdater0230.ets
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentButtonButtonAttrlbuteUpdater0230 {
+ build() {
+ Column({space:30}) {
+ Button('C27').type(ButtonType.Circle)
+ Button('C28').type(ButtonType.Capsule)
+ }
+ .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/UIComponentButtonButtonInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonInterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d3cc345619d9578b17aae53856a1392cd569aa80
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonInterface0070.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 UIComponentButtonButtonInterface0070 {
+
+ build() {
+ Column() {
+ Button() {
+ Text('test1')
+ // Text('test2')
+ }.width(100)
+ .height(80)
+ .type(ButtonType.Circle)
+
+ }
+ .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/UIComponentButtonButtonInterface0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonInterface0630.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6fcd2f586fbdf14f9ac54a7ab722f1ab1dd506cc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonInterface0630.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 UIComponentButtonButtonInterface0630 {
+ @State options: ButtonOptions = {
+ type: ButtonType.Normal,
+ role:ButtonRole.ERROR,
+ buttonStyle:ButtonStyleMode.NORMAL
+ }
+
+ build() {
+ Column() {
+ Button('hello world', this.options)
+ .id("button1")
+ .onClick(() => {
+ this.options = {
+ controlSize: ControlSize.SMALL
+ }
+ })
+ }
+ .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/UIComponentButtonButtonUx001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx001.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4cd213f3e50c1a6b440dc8c53927127cee05d285
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx001.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentButtonButtonUx001 {
+ @State buttonStyle : number| undefined= undefined;
+ private portrait: boolean = true
+ build() {
+ Column() {
+ Button("ButtonStyle.EMPHASIZED").buttonStyle(ButtonStyleMode.EMPHASIZED).margin({bottom: 10})
+ Button("ButtonStyle.NORMAL").buttonStyle(ButtonStyleMode.NORMAL).margin({bottom: 10})
+ Button("ButtonStyle.TEXTUAL").buttonStyle(ButtonStyleMode.TEXTUAL).margin({bottom: 10})
+ Button("不设置ButtonStyle").margin({bottom: 10})
+
+ Button('切换横屏')
+ .id('button1')
+ .onClick(() => {
+ this.changeOrientation()
+ });
+ }
+ .width('100%')
+ .height('100%')
+ }
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIButton/UIComponentButtonButtonUx002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx002.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c5423e37c72a9f77233eef197e90b95d0570b733
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx002.ets
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentButtonButtonUx002 {
+ @State buttonStyle: number | undefined = undefined;
+ @State buttonBackgroundColor: number | undefined = undefined;
+
+ build() {
+ Column({space:20}) {
+ Button('测试buttonStyle与背景色同时设置后设置的生效')
+ .buttonStyle(this.buttonStyle)
+ .backgroundColor(this.buttonBackgroundColor)
+
+ Text('设置buttonStyle为EMPHASIZED')
+ .id('button1')
+ .onClick(() => {
+ this.buttonStyle = ButtonStyleMode.EMPHASIZED
+ })
+
+ Text('设置背景色为红色')
+ .id('button2')
+ .onClick(() => {
+ this.buttonBackgroundColor = Color.Red
+ })
+ Text('设置buttonStyle为NORMAL')
+ .id('button3')
+ .onClick(() => {
+ this.buttonStyle = ButtonStyleMode.NORMAL
+ })
+ Text('设置buttonStyle为TEXTUAL')
+ .id('button4')
+ .onClick(() => {
+ this.buttonStyle = ButtonStyleMode.TEXTUAL
+ })
+ }
+ .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/UIComponentButtonButtonUx003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx003.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3411e3fe8ab97b1ffe35b771dfad82e62e3390ca
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx003.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 UIComponentButtonButtonUx003 {
+ @State buttonStyle1 : number| undefined= undefined;
+ @State buttonStyle2 : number| undefined= undefined;
+ @State buttonStyle3 : number| undefined= undefined;
+ @State fontColor1 : number| undefined= undefined;
+ @State fontColor2 : number| undefined= undefined;
+ build() {
+ Column() {
+ Column() {
+ Column() {
+ Button('Button_STYLE_EMPHASIZED')
+ .buttonStyle(this.buttonStyle1)
+ .fontColor(this.fontColor1)
+
+ Text('设置buttonStyle为EMPHASIZED')
+ .id('button1')
+ .onClick(()=>{
+ this.buttonStyle1 = ButtonStyleMode.EMPHASIZED
+ });
+ Text('设文本颜色为红色')
+ .id('button2')
+ .onClick(()=>{
+ this.fontColor1 = Color.Red
+ });
+ }
+ Column() {
+ Button('Button_STYLE_NORMAL')
+ .buttonStyle(this.buttonStyle2)
+ .fontColor(this.fontColor2)
+
+ Text('设置buttonStyle为NORMAL')
+ .id('button3')
+ .onClick(()=>{
+ this.buttonStyle2 = ButtonStyleMode.NORMAL
+ });
+ Text('设文本颜色为红色')
+ .id('button4')
+ .onClick(()=>{
+ this.fontColor2 = Color.Red
+ });
+ }.margin({top: 20, bottom: 20})
+
+ Column() {
+ Button('Button_STYLE_TEXTUAL')
+ .buttonStyle(this.buttonStyle3)
+ Text('设置buttonStyle为TEXTUAL')
+ .id('button5')
+ .onClick(()=>{
+ this.buttonStyle3 = ButtonStyleMode.TEXTUAL
+ });
+ }
+ }
+ }
+ .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/UIComponentButtonButtonUx004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx004.ets
new file mode 100644
index 0000000000000000000000000000000000000000..021eb2497002bc3ad9b9b302d08798ac2b2a6519
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx004.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.
+ */
+
+@Entry
+@Component
+struct UIComponentButtonButtonUx004 {
+
+ @Styles pressedStyles():void {
+ .backgroundColor("#ED6F21")
+ .borderRadius(10)
+ .borderStyle(BorderStyle.Dashed)
+ .borderWidth(2)
+ .borderColor("#33000000")
+ .opacity(1)
+ }
+
+ @Styles disabledStyles():void {
+ .backgroundColor("#E5E5E5")
+ .borderRadius(10)
+ .borderStyle(BorderStyle.Solid)
+ .borderWidth(2)
+ .borderColor("#2a4c1919")
+ .opacity(1)
+ }
+
+ @Styles normalStyles():void {
+ .backgroundColor("#786900")
+ .borderRadius(10)
+ .borderStyle(BorderStyle.Solid)
+ .borderWidth(2)
+ .borderColor("#33000000")
+ .width(100)
+ .height(25)
+ .opacity(1)
+ }
+
+ @Styles focusStyles():void {
+ .backgroundColor("#325678")
+ .borderRadius(10)
+ .borderStyle(BorderStyle.Solid)
+ .borderWidth(2)
+ .borderColor("#33900000")
+ .opacity(1)
+ }
+
+ build() {
+ Column() {
+ Row() {
+ Button("ButtonStyleMode.EMPHASIZED")
+ .buttonStyle(ButtonStyleMode.EMPHASIZED)
+ .id("button1")
+ .stateStyles({
+ disabled: this.disabledStyles,
+ normal: this.normalStyles,
+ pressed: this.pressedStyles,
+ focused: this.focusStyles
+ })
+
+ Button("disable: ButtonStyleMode.EMPHASIZED")
+ .buttonStyle(ButtonStyleMode.EMPHASIZED)
+ .enabled(false)
+ .stateStyles({
+ disabled: this.disabledStyles,
+ normal: this.normalStyles,
+ pressed: this.pressedStyles,
+ focused: this.focusStyles
+ })
+ }
+
+ Row() {
+ Button("ButtonStyleMode.NORMAL")
+ .buttonStyle(ButtonStyleMode.NORMAL)
+ .id("button2")
+ .stateStyles({
+ disabled: this.disabledStyles,
+ normal: this.normalStyles,
+ pressed: this.pressedStyles,
+ focused: this.focusStyles
+ })
+ Button("disable: ButtonStyleMode.NORMAL")
+ .buttonStyle(ButtonStyleMode.NORMAL)
+ .enabled(false)
+ .stateStyles({
+ disabled: this.disabledStyles,
+ normal: this.normalStyles,
+ pressed: this.pressedStyles,
+ focused: this.focusStyles
+ })
+ }.margin({ top: 20, bottom: 20 })
+
+ Row() {
+ Button("ButtonStyleMode.TEXTUAL")
+ .buttonStyle(ButtonStyleMode.TEXTUAL)
+ .id("button3")
+ .stateStyles({
+ disabled: this.disabledStyles,
+ normal: this.normalStyles,
+ pressed: this.pressedStyles,
+ focused: this.focusStyles
+ })
+ Button("disable: ButtonStyleMode.TEXTUAL")
+ .buttonStyle(ButtonStyleMode.TEXTUAL)
+ .enabled(false)
+ .stateStyles({
+ disabled: this.disabledStyles,
+ normal: this.normalStyles,
+ pressed: this.pressedStyles,
+ focused: this.focusStyles
+ })
+ }
+ }
+ .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/UIComponentButtonButtonUx006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx006.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1fd5566735002eb4e92a6d5e12b4b80cb2751da6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx006.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentButtonButtonUx006 {
+ private portrait: boolean = true
+
+ build() {
+ Column({space :20}){
+ Button("ControlSize.SMALL").controlSize(ControlSize.SMALL).margin({bottom: 10})
+ Button("ControlSize.NORMAL").controlSize(ControlSize.NORMAL).margin({bottom: 10})
+ Button("不设置ControlSize").margin({bottom: 10})
+
+ Button('切换横屏')
+ .id('button1')
+ .onClick(() => {
+ this.changeOrientation()
+ });
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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));
+ }
+ })
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx007.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0b57edea73df7c2c44f4beaadff27beb6e93bab0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx007.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 UIComponentButtonButtonUx007 {
+ @State controlSize: number = 0;
+ @State buttonHeight: string | undefined = undefined;
+ @State buttonPadding: string | undefined = undefined;
+ @State buttonFontSize: string | undefined = undefined;
+ @State index: number = 0;
+
+ build() {
+ Column() {
+ Button('测试controlSize与其他尺寸同时设置')
+ .padding(this.buttonPadding)
+ .height(this.buttonHeight)
+ .controlSize(this.controlSize == 1 ? ControlSize.SMALL : ControlSize.NORMAL)
+
+ Text('设置controlSize为SMALL')
+ .id('button1')
+ .onClick(() => {
+ this.controlSize = 1
+ if (this.index == 0) {
+ this.buttonPadding = '8vp'
+ this.buttonHeight = '28vp'
+ this.index = 1
+ } else {
+ this.buttonHeight = '20vp'
+ this.buttonPadding = undefined
+ }
+ })
+
+ Text('设置高为20vp')
+ .id('button2')
+ .onClick(() => {
+ this.controlSize = 0
+ this.buttonHeight = '20vp'
+ })
+ }
+ .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/UIComponentButtonButtonUx008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx008.ets
new file mode 100644
index 0000000000000000000000000000000000000000..61e7828480ca3cc7b2fdf1ab90d5c7e6df92284b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx008.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 UIComponentButtonButtonUx008 {
+ @State controlSize: ControlSize = ControlSize.NORMAL;
+ @State buttonPadding: string | undefined = undefined;
+
+ build() {
+ Column() {
+ Button('测试controlSize与其他尺寸同时设置')
+ .padding(this.buttonPadding)
+ .controlSize(this.controlSize)
+
+ Text('设置controlSize为SMALL')
+ .id('button1')
+ .onClick(() => {
+ this.controlSize = ControlSize.SMALL;
+ })
+
+ Text('设置padding为10vp')
+ .id('button2')
+ .onClick(() => {
+ this.buttonPadding = '10vp';
+ })
+ }
+ .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/UIComponentButtonButtonUx009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx009.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8c43728910d0f8396aa81f8538b14e4b79c4adb9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx009.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 UIComponentButtonButtonUx009 {
+ @State controlSize : number = 0;
+ @State buttonHeight : string |undefined= undefined;
+ @State buttonPadding : string |undefined= undefined;
+ @State buttonFontSize : string |undefined= undefined;
+ build() {
+ Row() {
+ Button('设置controlSize为SMAL')
+ .id('button1')
+ .padding(this.buttonPadding)
+ .height(this.buttonHeight)
+ .controlSize(this.controlSize == 0 ? ControlSize.NORMAL : ControlSize.SMALL)
+ .fontSize(this.buttonFontSize)
+ .onClick(()=>{
+ this.controlSize =1;
+ this.buttonHeight = '28vp'
+ this.buttonPadding ='8vp'
+ });
+ Button('设置fontSize为15vp')
+ .id('button2')
+ .onClick(()=>{
+ this.buttonFontSize = '15vp'
+ });
+
+ }
+ .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/UIComponentButtonButtonUx010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..39cd4f6cdd463ded94724054877c63ac816b83cf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx010.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';
+
+@Entry
+@Component
+struct UIComponentButtonButtonUx010 {
+
+ private portrait: boolean = true
+
+ build() {
+ Column({space :20}){
+ Button("ButtonStyle.EMPHASIZED").buttonStyle(ButtonStyleMode.EMPHASIZED).margin({bottom: 10})
+ Button("ButtonStyle.NORMAL").buttonStyle(ButtonStyleMode.NORMAL).margin({bottom: 10})
+ Button("ButtonStyle.TEXTUAL").buttonStyle(ButtonStyleMode.TEXTUAL).margin({bottom: 10})
+ Button("ControlSize.SMALL").controlSize(ControlSize.SMALL).margin({bottom: 10})
+ Button("ControlSize.NORMAL").controlSize(ControlSize.NORMAL).margin({bottom: 10})
+
+ Button('切换横屏')
+ .id('button1')
+ .onClick(() => {
+ this.changeOrientation()
+ });
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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));
+ }
+ })
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx011.ets
new file mode 100644
index 0000000000000000000000000000000000000000..02bcbb6bb6bce954b374381bd5d8276f9dedebe3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx011.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 { ConfigurationConstant } from '@kit.AbilityKit';
+
+@Entry
+@Component
+struct UIComponentButtonButtonUx011 {
+ @State buttonStyle: ButtonStyleMode | undefined = undefined;
+ @State controlSize: number = 0;
+
+ build() {
+ Column({space :20}){
+ Button('测试深色模式设置buttonStyle和controlSize')
+ .buttonStyle(this.buttonStyle)
+ .controlSize(this.controlSize == 0 ? ControlSize.NORMAL : ControlSize.SMALL)
+ Text('设置当前为深色模式')
+ .id('button1')
+ .onClick(() => {
+ getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ });
+ Text('切换buttonStyle和controlSize')
+ .id('button2')
+ .onClick(() => {
+ if (this.controlSize == 1) {
+ this.buttonStyle = ButtonStyleMode.EMPHASIZED
+ this.controlSize = 0
+ }
+ this.buttonStyle = ButtonStyleMode.TEXTUAL
+ this.controlSize = 1
+ });
+ Text('设置当前为浅色模式')
+ .id('button3')
+ .onClick(() => {
+ getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT);
+ });
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx012.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fb3c31d7920d8f521599155e34d085eb904446c5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx012.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 uiAppearance from '@ohos.uiAppearance'
+
+@Entry
+@Component
+struct UIComponentButtonButtonUx012 {
+
+ build() {
+ Column({space :20}){
+ Button('EMPHASIZED')
+ .id('button1')
+ .buttonStyle(ButtonStyleMode.EMPHASIZED)
+
+ Button('NORMAL')
+ .id('button2')
+ .buttonStyle(ButtonStyleMode.NORMAL)
+
+ Button('TEXTUAL')
+ .id('button3')
+ .buttonStyle(ButtonStyleMode.TEXTUAL)
+
+ Button('ControlSize SMALL')
+ .id('button4')
+ .controlSize(ControlSize.SMALL)
+
+
+ Button('ControlSize NORMAL')
+ .id('button5')
+ .controlSize(ControlSize.NORMAL)
+
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx013.ets
new file mode 100644
index 0000000000000000000000000000000000000000..52360d91b0c40338a6557ad0721e5f1b9738df94
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonButtonUx013.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.
+ */
+
+import uiAppearance from '@ohos.uiAppearance'
+
+@Entry
+@Component
+struct UIComponentButtonButtonUx013 {
+ build() {
+ Column({space :20}){
+ Button('Emphasized', { buttonStyle: ButtonStyleMode.EMPHASIZED });
+ Button('Normal', { buttonStyle: ButtonStyleMode.NORMAL });
+ Button('Textual', { buttonStyle: ButtonStyleMode.TEXTUAL });
+ Button('SMALL', { controlSize:ControlSize.SMALL});
+ Button('SMALL', { controlSize:ControlSize.NORMAL});
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..279e59e55188829dbda81c93ad7587adda8d73fe
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0010.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 { ButtonModifier } from '@kit.ArkUI';
+import { LabelData } from './ButtonModifier';
+
+@Entry
+@Component
+struct UIComponentButtonStyle0010 {
+ @State modifier: ButtonModifier = new ButtonModifier();
+
+ build() {
+ Column() {
+ Button("Button_Test")
+ .attributeModifier(this.modifier)
+ Button('修改 LabelStyle')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.modifier = new ButtonModifier().labelStyle(LabelData[3].LabelStyle);
+ })
+ }
+ .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/UIComponentButtonStyle0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..47afd6673e33ba2cb9903cfe06c8e45403d8a88e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0020.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 { ButtonModifier } from '@kit.ArkUI';
+import { LabelData } from './ButtonModifier';
+
+@Entry
+@Component
+struct UIComponentButtonStyle0020 {
+ @State modifier: ButtonModifier = new ButtonModifier();
+
+ build() {
+ Column() {
+ Button("Button_Test")
+ .attributeModifier(this.modifier)
+ Button('修改 ButtonStyle')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.modifier = new ButtonModifier().buttonStyle(ButtonStyleMode.TEXTUAL);
+ })
+ }
+ .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/UIComponentButtonStyle0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a6cfbb9544cce5f97c57e4310458c8e26dfb3daa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0030.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 { ButtonModifier } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentButtonStyle0030 {
+ @State modifier: ButtonModifier = new ButtonModifier();
+
+ build() {
+ Column() {
+ Button("Button_Test")
+ .attributeModifier(this.modifier)
+ Button('修改 ButtonStyle')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.modifier = new ButtonModifier().type(ButtonType.Circle);
+ })
+ }
+ .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/UIComponentButtonStyle0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..19e3e08a1cb6b213c619f83267c31beba9577804
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0040.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 { ButtonModifier } from '@kit.ArkUI';
+
+class MyButtonModifier extends ButtonModifier {
+ isDark: boolean = false
+ applyNormalAttribute(instance: ButtonAttribute): void {
+ instance.backgroundColor(Color.Red)
+ }
+}
+
+@Entry
+@Component
+struct UIComponentButtonStyle0040 {
+ @State modifier: ButtonModifier = new ButtonModifier();
+
+ @Styles normalStyles(): void {
+ .backgroundColor("#ff0000")
+ .borderRadius(10)
+ .borderStyle(BorderStyle.Solid)
+ .borderWidth(2)
+ .borderColor("#33000000")
+ .width(100)
+ .height(25)
+ .opacity(1)
+ }
+
+ build() {
+ Column() {
+ Button("Button_Test")
+ .attributeModifier(this.modifier)
+ Button('修改 ButtonStyle')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.modifier = new MyButtonModifier();
+ })
+ }
+ .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/UIComponentButtonStyle0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3e02eb78ba12ffad0ae4f2f748b25ba6fc63a26f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0050.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 { ButtonModifier } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentButtonStyle0050 {
+ @State modifier: ButtonModifier = new ButtonModifier();
+
+ build() {
+ Column() {
+ Button("Button_Test")
+ .attributeModifier(this.modifier)
+ Button('修改 ButtonStyle')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.modifier = new ButtonModifier().fontColor('#ff0000');
+ })
+ }
+ .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/UIComponentButtonStyle0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4b5ee4fe4db2d55248c6684559d025542d0c178c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0070.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 { ButtonModifier } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentButtonStyle0070 {
+ @State modifier: ButtonModifier = new ButtonModifier();
+
+ build() {
+ Column() {
+ Button("Button_Test")
+ .attributeModifier(this.modifier)
+ Button('修改 ButtonStyle')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.modifier = new ButtonModifier().fontWeight(2000);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e1fe6c8e694b6f484f051a9415029b45c087d3ad
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0080.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 { ButtonModifier } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentButtonStyle0080 {
+ @State modifier: ButtonModifier = new ButtonModifier();
+
+ build() {
+ Column() {
+ Button("Button_Test")
+ .attributeModifier(this.modifier)
+ Button('修改 ButtonStyle')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.modifier = new ButtonModifier().fontFamily('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/UIButton/UIComponentButtonStyle0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..27e0faad0f5edfc069e66470cc36a7aba511a873
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentButtonStyle0090.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 { ButtonModifier } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentButtonStyle0090 {
+ @State modifier: ButtonModifier = new ButtonModifier();
+
+ build() {
+ Column() {
+ Button("Button_Test")
+ .attributeModifier(this.modifier)
+ Button('修改 ButtonStyle')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.modifier = new ButtonModifier().fontStyle(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/UIButton/UIComponentUIsupportColor0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4a385de313f5efcae1a434b1de15e7c46dfb8f95
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0080.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 '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentUIsupportColor0080 {
+
+ aboutToAppear(): void {
+ getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT);
+ }
+
+ build() {
+ Row() {
+ Button("Button_Test")
+ .id('setColorMode')
+ .onClick(() => {
+ getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT);
+ })
+ .margin(20)
+ }.width('100%') .justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8319c314a80c1933144178e869983ee91e0c50a7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0090.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 '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentUIsupportColor0090 {
+
+ aboutToAppear(): void {
+ getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT);
+ }
+
+ build() {
+ Row() {
+ Button("Button_Test")
+ .id('setColorMode')
+ .onClick(() => {
+ getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ })
+ .margin(20)
+ }.width('100%') .justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6032bb4e22de65c6772de310b5d75c0855a36288
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0100.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 '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentUIsupportColor0100 {
+
+ aboutToAppear(): void {
+ getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ }
+
+ build() {
+ Row() {
+ Button("Button_Test")
+ .id('setColorMode')
+ .onClick(() => {
+ getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT);
+ })
+ .margin(20)
+ }.width('100%') .justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0f9679015cdd736ca388fbeac8557c18421d3e69
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0110.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 '@kit.AbilityKit';
+
+@Entry
+@Component
+struct UIComponentUIsupportColor0110 {
+
+ aboutToAppear(): void {
+ getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ }
+
+ build() {
+ Row() {
+ Button("Button_Test")
+ .id('setColorMode')
+ .onClick(() => {
+ getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ })
+ .margin(20)
+ }.width('100%') .justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f8f8b921560abc04b7d9cbeb5d8886c0e7aa81f0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0120.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 UIComponentUIsupportColor0120 {
+
+ aboutToAppear(): void {
+ getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ }
+
+ build() {
+ Column() {
+ // 设置组件为浅色模式
+ WithTheme({ colorMode: ThemeColorMode.LIGHT }) {
+ Button('WithTheme LIGHT')
+ .margin(20)
+ }
+ }
+ .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/UIButton/UIComponentUIsupportColor0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fbcc4e931941ce6ba10b29cec0a0eb9ff0d3300a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0130.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 UIComponentUIsupportColor0130 {
+ build() {
+ Column() {
+ // 设置组件为深色模式
+ WithTheme({ colorMode: ThemeColorMode.DARK }) {
+ Button('WithTheme Dark')
+ }
+ }
+ .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/UIButton/UIComponentUIsupportColor0140_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0140_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..390f5830c90e2b36eaa2c0a589552fba7659adac
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0140_1.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 UIComponentUIsupportColor0140_1 {
+
+ aboutToAppear(): void {
+ getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ }
+
+ build() {
+ Column() {
+ // 设置组件为深色模式
+ WithTheme({ colorMode: ThemeColorMode.SYSTEM }) {
+ Column() {
+ Button('WithTheme SYSTEM Dark')
+ .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/UIButton/UIComponentUIsupportColor0140_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0140_2.ets
new file mode 100644
index 0000000000000000000000000000000000000000..051206d4d391d04e7890f2411135164eace3b00a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIButton/UIComponentUIsupportColor0140_2.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 UIComponentUIsupportColor0140_2 {
+
+ aboutToAppear(): void {
+ getContext(this).getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT);
+ }
+
+ build() {
+ Column() {
+ // 设置组件为深色模式
+ WithTheme({ colorMode: ThemeColorMode.SYSTEM }) {
+ Column() {
+ Button('WithTheme SYSTEM Light')
+ .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/UIComponentButtonButtonAttributeUpdater/UIComponentButtonButtonAttributeUpdater0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonButtonAttributeUpdater/UIComponentButtonButtonAttributeUpdater0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..41e7271a1b40efd015b3ece7b99deee4aa4efdce
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonButtonAttributeUpdater/UIComponentButtonButtonAttributeUpdater0200.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 { AttributeUpdater } from '@kit.ArkUI'
+
+class MyButtonModifier extends AttributeUpdater {
+ applyNormalAttribute(instance: ButtonAttribute): void {
+ instance.backgroundColor('#ff2787d9')
+ .type(ButtonType.Normal)
+ .buttonStyle(ButtonStyleMode.NORMAL)
+ .controlSize(ControlSize.NORMAL)
+ }
+
+ initializeModifier(instance: ButtonAttribute): void {
+ instance.backgroundColor('#ff2787d9')
+ .fontSize(20)
+ .type(ButtonType.Capsule)
+ .buttonStyle(ButtonStyleMode.EMPHASIZED)
+ .controlSize(ControlSize.NORMAL)
+ .width('100%')
+ .height(64)
+ }
+}
+
+@Entry
+@Component
+struct UIComponentButtonButtonAttributeUpdater0200 {
+ modifier: MyButtonModifier = new MyButtonModifier();
+ @State isOrigin: boolean = true;
+
+ build() {
+ Row() {
+ Column({space:10}) {
+ Button("按钮")
+ .attributeModifier(this.modifier)
+ .id("button")
+ Button("c20")
+ .id("c20")
+ .onClick(()=>{
+ this.modifier.attribute?.backgroundColor(Color.Orange)
+ .type(ButtonType.Circle)
+ .controlSize(ControlSize.SMALL);
+ })
+ Button("c21")
+ .id("c21")
+ .onClick(()=>{
+ this.modifier.attribute?.backgroundColor(Color.Red)
+ .fontColor(Color.Blue)
+ .fontWeight(FontWeight.Bold);
+ })
+ Button("c22")
+ .id("c22")
+ .onClick(()=>{
+ this.modifier.attribute?.fontSize(100)
+ .buttonStyle(ButtonStyleMode.TEXTUAL);
+ })
+ }
+ .width('100%')
+ }
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonButtonAttributeUpdater/UIComponentButtonButtonAttributeUpdater0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonButtonAttributeUpdater/UIComponentButtonButtonAttributeUpdater0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dcbd07e9b220529f1396798175819ab703a77ee9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonButtonAttributeUpdater/UIComponentButtonButtonAttributeUpdater0220.ets
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AttributeUpdater } from '@kit.ArkUI'
+
+class MyButtonModifier extends AttributeUpdater {
+ applyNormalAttribute(instance: ButtonAttribute): void {
+ instance.backgroundColor('#ff2787d9')
+ .type(ButtonType.Normal)
+ .buttonStyle(ButtonStyleMode.NORMAL)
+ .controlSize(ControlSize.NORMAL)
+ }
+
+ initializeModifier(instance: ButtonAttribute): void {
+ instance.backgroundColor('#ff2787d9')
+ .fontSize(20)
+ .type(ButtonType.Capsule)
+ .buttonStyle(ButtonStyleMode.EMPHASIZED)
+ .controlSize(ControlSize.SMALL)
+ .width('50%')
+ .height(30)
+ }
+}
+
+@Entry
+@Component
+struct UIComponentButtonButtonAttributeUpdater0220 {
+ modifier: MyButtonModifier = new MyButtonModifier();
+ @State isOrigin: boolean = true;
+
+ build() {
+ Row() {
+ Column() {
+ Button(this.isOrigin ? "胶囊|强调|小尺寸" : "普通|大尺寸")
+ .attributeModifier(this.modifier)
+ .id("button")
+ .onClick(() => {
+ this.isOrigin = false;
+ })
+ }
+ .width('100%')
+ }
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d7f6d0e9732f7b5d9934396160ecf410ce7bdea7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0010.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 UIComponentButtonCalendarPickerDialogInterface0010 {
+ private selectedDate: Date = new Date('1999-13-32');
+
+ build() {
+ Column() {
+ Button("Show CalendarPicker Dialog")
+ .id('ComponentCalendarPickerDialog')
+ .margin(20)
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ 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/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e67bebe706a9b0a5db8f456cd4b8d4a5fb444814
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0020.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 UIComponentButtonCalendarPickerDialogInterface0020 {
+ @State private selectedDate: Date = new Date();
+ build() {
+ Column() {
+ Button("打开日历选择器")
+ .margin(20)
+ .id("button")
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ 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/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5088d22d1be22c66bc199a05bebcb53bd5050563
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0130.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 UIComponentButtonCalendarPickerDialogInterface0130 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("Show CalendarPicker Dialog")
+ .id('ComponentCalendarPickerDialog')
+ .margin(20)
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ hintRadius: -1
+ })
+ })
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9d90da234f87e504c73861a35bd0855574882feb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0140.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 UIComponentButtonCalendarPickerDialogInterface0140 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("Show CalendarPicker Dialog")
+ .id('ComponentCalendarPickerDialog')
+ .margin(20)
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ hintRadius: 0
+ })
+ })
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2f3406f17bd5def1ab008bf68c1bea820b34153e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0150.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 UIComponentButtonCalendarPickerDialogInterface0150 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("Show CalendarPicker Dialog")
+ .id('ComponentCalendarPickerDialog')
+ .margin(20)
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ hintRadius: 16
+ })
+ })
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..eac55eb21b860e558b6fa944dd60420803eff524
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0160.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 UIComponentButtonCalendarPickerDialogInterface0160 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("Show CalendarPicker Dialog")
+ .id('ComponentCalendarPickerDialog')
+ .margin(20)
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ hintRadius: 48
+ })
+ })
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cec873041d99ab4dfbc5bacfb933777499b49a31
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0170.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 UIComponentButtonCalendarPickerDialogInterface0170 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("Show CalendarPicker Dialog")
+ .id('ComponentCalendarPickerDialog')
+ .margin(20)
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ hintRadius: 6
+ })
+ })
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e78ce48638df80f52a518b3fe4e00195fc28b99b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0180.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 UIComponentButtonCalendarPickerDialogInterface0180 {
+ private selectedDate: Date = new Date('2024-10-16');
+
+ build() {
+ Column() {
+ Button("Show CalendarPicker Dialog")
+ .id('ComponentCalendarPickerDialog')
+ .margin(20)
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ hintRadius: $r('app.string.dsfsfsf')
+ })
+ })
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4870d967032470728c96624df2a775806407972a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0190.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 UIComponentButtonCalendarPickerDialogInterface0190 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("Show CalendarPicker Dialog")
+ .id('ComponentCalendarPickerDialog')
+ .margin(20)
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ hintRadius: undefined
+ })
+ })
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5ddad76f0f037f4b0e91363d766286c72530d52a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0200.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 UIComponentButtonCalendarPickerDialogInterface0200 {
+ private selectedDate: Date = new Date('2024-10-14');
+ @State text: string = '';
+
+ build() {
+ Column() {
+ Button("Show CalendarPicker Dialog")
+ .id('ComponentCalendarPickerDialog')
+ .margin(20)
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ onAccept: (value: Date) => {
+ const year = value.getFullYear();
+ const month = value.getMonth() + 1;
+ const day = value.getDate();
+ this.text = `Year: ${year}, Month: ${month}, Day: ${day}`;
+ console.info("calendar onAccept:" + JSON.stringify(value))
+ },
+ onCancel: () => {
+ console.info("calendar onCancel")
+ }
+ })
+ })
+ Text('onAccept:' + this.text)
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fd7e9238f17d560b700153ba25834d014fee54a0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0210.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 UIComponentButtonCalendarPickerDialogInterface0210 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("Show CalendarPicker Dialog")
+ .id('ComponentCalendarPickerDialog')
+ .margin(20)
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ onAccept: (value) => {
+ console.info("calendar onAccept:" + JSON.stringify(value))
+ },
+ onCancel: () => {
+ console.info("calendar onCancel")
+ }
+ })
+ })
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7152f381bbe347f8b98798a74f79558f8e4923d5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0220.ets
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { promptAction } from '@kit.ArkUI'
+import { hilog } from '@kit.PerformanceAnalysisKit'
+import { JSON } from '@kit.ArkTS'
+
+@Entry
+@Component
+struct UIComponentButtonCalendarPickerDialogInterface0220 {
+ @State private selectedDate: Date = new Date();
+ build() {
+ Column() {
+ Button("打开日历选择器")
+ .margin(20)
+ .id("button")
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ onWillAppear:()=>{
+ this.selectedDate.setDate(this.selectedDate.getDate()+1);
+ },
+ onChange: (value:Date) => {
+ hilog.info(0x000000,"UIComponentButtonCalendarPickerDialogInterface0220_selectedDate:",JSON.stringify(value));
+ promptAction.showToast({message:JSON.stringify(value.toDateString())});
+ }
+ })
+ })
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6413602aa708b7aaa3b0b860efb3a3809a61d01b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0010.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 { LabelData } from '../UIButton/ButtonModifier';
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0010 {
+ @State index : number = 0;
+
+ build() {
+ Column() {
+ Button("ButtonLabelStyle")
+ .labelStyle(LabelData[this.index].LabelStyle)
+
+ Button('set index = 1')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.index = 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/UIComponentButtonCommonButton/UIComponentButtonCommonButton0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bae1d4393fcb9a5b52e686c6398736ea0be335ef
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0020.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 { LabelData } from '../UIButton/ButtonModifier';
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0020 {
+ @State index : number = 0;
+
+ build() {
+ Column() {
+ Button("ButtonLabelStyle")
+ .labelStyle(LabelData[this.index].LabelStyle)
+
+ Button('set index = 2')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.index = 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/UIComponentButtonCommonButton/UIComponentButtonCommonButton0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a2c1aa91e13dfd9fac575269e62c1e0806e484c1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0030.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 { LabelData } from '../UIButton/ButtonModifier';
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0030 {
+ @State index : number = 0;
+
+ build() {
+ Column() {
+ Button("ButtonLabelStyle")
+ .labelStyle(LabelData[this.index].LabelStyle)
+
+ Button('set index = 3')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.index = 3;
+ });
+ }
+ .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/UIComponentButtonCommonButton0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0da6d4ed6483e1988ed9701917e7cd3d557102a4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0040.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 { LabelData } from '../UIButton/ButtonModifier';
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0040 {
+ @State index : number = 0;
+
+ build() {
+ Column() {
+ Button("ButtonLabelStyle")
+ .labelStyle(LabelData[this.index].LabelStyle)
+
+ Button('set index = 4')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.index = 4;
+ });
+ }
+ .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/UIComponentButtonCommonButton0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c283789323f4aada11445055b5785d92042503ab
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0060.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 { LabelData } from '../UIButton/ButtonModifier';
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0060 {
+ @State index : number = 0;
+
+ build() {
+ Column() {
+ Button("ButtonLabelStyle")
+ .labelStyle(LabelData[this.index].LabelStyle)
+
+ Button('set index = 2')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.index = 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/UIComponentButtonCommonButton/UIComponentButtonCommonButton0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..038f17a2dc0a1deb14d3856ec4fd1e1b24b33e50
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0070.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 { LabelData } from '../UIButton/ButtonModifier';
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0070 {
+ @State index : number = 0;
+
+ build() {
+ Column() {
+ Button("ButtonLabelStyle")
+ .labelStyle(LabelData[this.index].LabelStyle)
+
+ Button('set index = 3')
+ .id('button1')
+ .margin({top: 20})
+ .onClick(() => {
+ this.index = 3;
+ });
+ }
+ .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/UIComponentButtonCommonButton0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3c02fb35ab331a8a6096028124e9da7b597088fb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0090.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 { CalendarPickerTestData, LabelData } from '../UIButton/ButtonModifier';
+import { CalendarPickerModifier } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0090 {
+ @State index : number = 0;
+ modifier?: CalendarPickerModifier = new CalendarPickerModifier()
+ .edgeAlign(CalendarPickerTestData[1].EdgeAlign)
+ .offset(CalendarPickerTestData[1].Offset)
+ .textStyle(CalendarPickerTestData[1].TextStyle)
+
+ build() {
+ Column() {
+ Text('default')
+ CalendarPicker()
+
+ Text('index = 2 modifier').margin({top: 30})
+ CalendarPicker()
+ .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/UIComponentButtonCommonButton/UIComponentButtonCommonButton0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1f7bce80f0e75081deee1f8d005b86e14d9e06bb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0100.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 { CheckboxTestData, CommonCheckboxAttributes, CommonCheckboxModifier } from '../modifiers/CommonCheckboxModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0100 {
+ private dateIndex: number = 1
+ @State modifier: CommonCheckboxModifier = new CommonCheckboxModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCheckboxAttributes = CheckboxTestData[this.dateIndex-1]
+ this.modifier.UnselectedColor = data.UnselectedColor
+ this.modifier.Mark = data.Mark
+ this.modifier.Select = data.Select
+ this.modifier.SelectedColor = data.SelectedColor
+ }
+
+ build() {
+ Column({space: 0}) {
+ Text('Default')
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox1'})
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ Text('Modifier index: '+this.dateIndex)
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox2'}).attributeModifier(this.modifier)
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8439add0cdc9bbc649bcb3bf0143a12656dee732
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0110.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 { CheckboxTestData, CommonCheckboxAttributes, CommonCheckboxModifier } from '../modifiers/CommonCheckboxModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0110 {
+ private dateIndex: number = 2
+ @State modifier: CommonCheckboxModifier = new CommonCheckboxModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCheckboxAttributes = CheckboxTestData[this.dateIndex-1]
+ this.modifier.UnselectedColor = data.UnselectedColor
+ this.modifier.Mark = data.Mark
+ this.modifier.Select = data.Select
+ this.modifier.SelectedColor = data.SelectedColor
+ }
+
+ build() {
+ Column({space: 0}) {
+ Text('Default')
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox1'})
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ Text('Modifier index: '+this.dateIndex)
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox2'}).attributeModifier(this.modifier)
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..182db753815e4a4b1817914db4b0495e9ac785f1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0120.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 { CheckboxTestData, CommonCheckboxAttributes, CommonCheckboxModifier } from '../modifiers/CommonCheckboxModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0120 {
+ private dateIndex: number = 3
+ @State modifier: CommonCheckboxModifier = new CommonCheckboxModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCheckboxAttributes = CheckboxTestData[this.dateIndex-1]
+ this.modifier.UnselectedColor = data.UnselectedColor
+ this.modifier.Mark = data.Mark
+ this.modifier.Select = data.Select
+ this.modifier.SelectedColor = data.SelectedColor
+ }
+
+ build() {
+ Column({space: 0}) {
+ Text('Default')
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox1'})
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ Text('Modifier index: '+this.dateIndex)
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox2'}).attributeModifier(this.modifier)
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8a3c37efb57f1cd882d1310137f0f2b56e073ab5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0130.ets
@@ -0,0 +1,77 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { CheckboxGroupTestData,
+ CommonCheckboxGroupAttributes,
+ CommonCheckboxGroupModifier } from '../modifiers/CommonCheckboxGroupModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0130 {
+ private dateIndex: number = 1
+ @State modifier: CommonCheckboxGroupModifier = new CommonCheckboxGroupModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCheckboxGroupAttributes = CheckboxGroupTestData[this.dateIndex-1]
+ this.modifier.UnselectedColor = data.UnselectedColor
+ this.modifier.Mark = data.Mark
+ this.modifier.SelectAll = data.SelectAll
+ this.modifier.SelectedColor = data.SelectedColor
+ }
+
+ build() {
+ Column({space: 0}) {
+ Text('Default')
+ // 全选按钮
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup1' })
+ Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox11', group: 'checkboxGroup1' })
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ // 选项2
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox12', group: 'checkboxGroup1' })
+ Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+
+ Text('Modifier index: '+this.dateIndex)
+ // 全选按钮
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup2' })
+ .attributeModifier(this.modifier)
+ Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox21', group: 'checkboxGroup2' })
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ // 选项2
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox22', group: 'checkboxGroup2' })
+ Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..05e84e0bd3b986c9f70e149c4be442b48a564d71
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0140.ets
@@ -0,0 +1,77 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { CheckboxGroupTestData,
+ CommonCheckboxGroupAttributes,
+ CommonCheckboxGroupModifier } from '../modifiers/CommonCheckboxGroupModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0130 {
+ private dateIndex: number = 2
+ @State modifier: CommonCheckboxGroupModifier = new CommonCheckboxGroupModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCheckboxGroupAttributes = CheckboxGroupTestData[this.dateIndex-1]
+ this.modifier.UnselectedColor = data.UnselectedColor
+ this.modifier.Mark = data.Mark
+ this.modifier.SelectAll = data.SelectAll
+ this.modifier.SelectedColor = data.SelectedColor
+ }
+
+ build() {
+ Column({space: 0}) {
+ Text('Default')
+ // 全选按钮
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup1' })
+ Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox11', group: 'checkboxGroup1' })
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ // 选项2
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox12', group: 'checkboxGroup1' })
+ Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+
+ Text('Modifier index: '+this.dateIndex)
+ // 全选按钮
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup2' })
+ .attributeModifier(this.modifier)
+ Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox21', group: 'checkboxGroup2' })
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ // 选项2
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox22', group: 'checkboxGroup2' })
+ Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f993a71444f1b8da77d3833615b955f74a5d260d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0150.ets
@@ -0,0 +1,77 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { CheckboxGroupTestData,
+ CommonCheckboxGroupAttributes,
+ CommonCheckboxGroupModifier } from '../modifiers/CommonCheckboxGroupModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0150 {
+ private dateIndex: number = 3
+ @State modifier: CommonCheckboxGroupModifier = new CommonCheckboxGroupModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCheckboxGroupAttributes = CheckboxGroupTestData[this.dateIndex-1]
+ this.modifier.UnselectedColor = data.UnselectedColor
+ this.modifier.Mark = data.Mark
+ this.modifier.SelectAll = data.SelectAll
+ this.modifier.SelectedColor = data.SelectedColor
+ }
+
+ build() {
+ Column({space: 0}) {
+ Text('Default')
+ // 全选按钮
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup1' })
+ Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox11', group: 'checkboxGroup1' })
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ // 选项2
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox12', group: 'checkboxGroup1' })
+ Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+
+ Text('Modifier index: '+this.dateIndex)
+ // 全选按钮
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup2' })
+ .attributeModifier(this.modifier)
+ Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox21', group: 'checkboxGroup2' })
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ // 选项2
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox22', group: 'checkboxGroup2' })
+ Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..295440f90c5fdf5f6c346c502d1f9584a31e3d63
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0160.ets
@@ -0,0 +1,77 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { CheckboxGroupTestData,
+ CommonCheckboxGroupAttributes,
+ CommonCheckboxGroupModifier } from '../modifiers/CommonCheckboxGroupModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0160 {
+ private dateIndex: number = 4
+ @State modifier: CommonCheckboxGroupModifier = new CommonCheckboxGroupModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCheckboxGroupAttributes = CheckboxGroupTestData[this.dateIndex-1]
+ this.modifier.UnselectedColor = data.UnselectedColor
+ this.modifier.Mark = data.Mark
+ this.modifier.SelectAll = data.SelectAll
+ this.modifier.SelectedColor = data.SelectedColor
+ }
+
+ build() {
+ Column({space: 0}) {
+ Text('Default')
+ // 全选按钮
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup1' })
+ Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox11', group: 'checkboxGroup1' })
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ // 选项2
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox12', group: 'checkboxGroup1' })
+ Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+
+ Text('Modifier index: '+this.dateIndex)
+ // 全选按钮
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup2' })
+ .attributeModifier(this.modifier)
+ Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox21', group: 'checkboxGroup2' })
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ // 选项2
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox22', group: 'checkboxGroup2' })
+ Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a182861cd2d816b98c05998641356a6d4a5b9608
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0170.ets
@@ -0,0 +1,77 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { CheckboxGroupTestData,
+ CommonCheckboxGroupAttributes,
+ CommonCheckboxGroupModifier } from '../modifiers/CommonCheckboxGroupModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0170 {
+ private dateIndex: number = 5
+ @State modifier: CommonCheckboxGroupModifier = new CommonCheckboxGroupModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCheckboxGroupAttributes = CheckboxGroupTestData[this.dateIndex-1]
+ this.modifier.UnselectedColor = data.UnselectedColor
+ this.modifier.Mark = data.Mark
+ this.modifier.SelectAll = data.SelectAll
+ this.modifier.SelectedColor = data.SelectedColor
+ }
+
+ build() {
+ Column({space: 0}) {
+ Text('Default')
+ // 全选按钮
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup1' })
+ Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox11', group: 'checkboxGroup1' })
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ // 选项2
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox12', group: 'checkboxGroup1' })
+ Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+
+ Text('Modifier index: '+this.dateIndex)
+ // 全选按钮
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup2' })
+ .attributeModifier(this.modifier)
+ Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox21', group: 'checkboxGroup2' })
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ // 选项2
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox22', group: 'checkboxGroup2' })
+ Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b8a0c574f849b9bf6ef274abad3d616f5f32c3f5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0180.ets
@@ -0,0 +1,77 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { CheckboxGroupTestData,
+ CommonCheckboxGroupAttributes,
+ CommonCheckboxGroupModifier } from '../modifiers/CommonCheckboxGroupModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0180 {
+ private dateIndex: number = 6
+ @State modifier: CommonCheckboxGroupModifier = new CommonCheckboxGroupModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCheckboxGroupAttributes = CheckboxGroupTestData[this.dateIndex-1]
+ this.modifier.UnselectedColor = data.UnselectedColor
+ this.modifier.Mark = data.Mark
+ this.modifier.SelectAll = data.SelectAll
+ this.modifier.SelectedColor = data.SelectedColor
+ }
+
+ build() {
+ Column({space: 0}) {
+ Text('Default')
+ // 全选按钮
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup1' })
+ Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox11', group: 'checkboxGroup1' })
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ // 选项2
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox12', group: 'checkboxGroup1' })
+ Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+
+ Text('Modifier index: '+this.dateIndex)
+ // 全选按钮
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup2' })
+ .attributeModifier(this.modifier)
+ Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }
+
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox21', group: 'checkboxGroup2' })
+ Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ // 选项2
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox22', group: 'checkboxGroup2' })
+ Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+ }.margin({ left: 36 })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2363779ff29210cd87740a4c45524080678a2b49
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0190.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 { CommonCounterAttributes, CommonCounterModifier, CounterTestData } from '../modifiers/CommonCounterModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0190 {
+ @State value: number = 0
+ private dateIndex: number = 1
+ @State modifier: CommonCounterModifier = new CommonCounterModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCounterAttributes = CounterTestData[this.dateIndex-1]
+ this.modifier.EnableInc = data.EnableInc
+ this.modifier.EnableDec = data.EnableDec
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ Counter() {
+ Text(this.value.toString())
+ }
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ Counter() {
+ Text(this.value.toString())
+ }
+ .attributeModifier(this.modifier)
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b25dfb9dd29c666255659b84b12dc8865dfc8d1d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0200.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 { CommonCounterAttributes, CommonCounterModifier, CounterTestData } from '../modifiers/CommonCounterModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0200 {
+ @State value: number = 0
+ private dateIndex: number = 2
+ @State modifier: CommonCounterModifier = new CommonCounterModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCounterAttributes = CounterTestData[this.dateIndex-1]
+ this.modifier.EnableInc = data.EnableInc
+ this.modifier.EnableDec = data.EnableDec
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ Counter() {
+ Text(this.value.toString())
+ }
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ Counter() {
+ Text(this.value.toString())
+ }
+ .attributeModifier(this.modifier)
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9f2e778d42f220dcbc57024316d8dea42ea45044
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0210.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 { CommonCounterAttributes, CommonCounterModifier, CounterTestData } from '../modifiers/CommonCounterModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0210 {
+ @State value: number = 0
+ private dateIndex: number = 3
+ @State modifier: CommonCounterModifier = new CommonCounterModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCounterAttributes = CounterTestData[this.dateIndex-1]
+ this.modifier.EnableInc = data.EnableInc
+ this.modifier.EnableDec = data.EnableDec
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ Counter() {
+ Text(this.value.toString())
+ }
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ Counter() {
+ Text(this.value.toString())
+ }
+ .attributeModifier(this.modifier)
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0a1302028c7f87d2bbe97b7f16cbebe4bb9addeb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0220.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 { CommonCounterAttributes, CommonCounterModifier, CounterTestData } from '../modifiers/CommonCounterModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0220 {
+ @State value: number = 0
+ private dateIndex: number = 4
+ @State modifier: CommonCounterModifier = new CommonCounterModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCounterAttributes = CounterTestData[this.dateIndex-1]
+ this.modifier.EnableInc = data.EnableInc
+ this.modifier.EnableDec = data.EnableDec
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ Counter() {
+ Text(this.value.toString())
+ }
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ Counter() {
+ Text(this.value.toString())
+ }
+ .attributeModifier(this.modifier)
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..09ea1168ff2c7909eb371eff877d43e2c84d4689
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0230.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 { CommonCounterAttributes, CommonCounterModifier, CounterTestData } from '../modifiers/CommonCounterModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0230 {
+ @State value: number = 0
+ private dateIndex: number = 5
+ @State modifier: CommonCounterModifier = new CommonCounterModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCounterAttributes = CounterTestData[this.dateIndex-1]
+ this.modifier.EnableInc = data.EnableInc
+ this.modifier.EnableDec = data.EnableDec
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ Counter() {
+ Text(this.value.toString())
+ }
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ Counter() {
+ Text(this.value.toString())
+ }
+ .attributeModifier(this.modifier)
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fb70644650cd0934f487aad346ce0fbb2dc22425
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0240.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 { CommonCounterAttributes, CommonCounterModifier, CounterTestData } from '../modifiers/CommonCounterModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0240 {
+ @State value: number = 0
+ private dateIndex: number = 6
+ @State modifier: CommonCounterModifier = new CommonCounterModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCounterAttributes = CounterTestData[this.dateIndex-1]
+ this.modifier.EnableInc = data.EnableInc
+ this.modifier.EnableDec = data.EnableDec
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ Counter() {
+ Text(this.value.toString())
+ }
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ Counter() {
+ Text(this.value.toString())
+ }
+ .attributeModifier(this.modifier)
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5f6869e2a60b3101d5fc58b4f83a7c4ec80c0114
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0250.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 { CommonCounterAttributes, CommonCounterModifier, CounterTestData } from '../modifiers/CommonCounterModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0250 {
+ @State value: number = 0
+ private dateIndex: number = 7
+ @State modifier: CommonCounterModifier = new CommonCounterModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCounterAttributes = CounterTestData[this.dateIndex-1]
+ this.modifier.EnableInc = data.EnableInc
+ this.modifier.EnableDec = data.EnableDec
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ Counter() {
+ Text(this.value.toString())
+ }
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ Counter() {
+ Text(this.value.toString())
+ }
+ .attributeModifier(this.modifier)
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2e4d41b1f75af898055516b1c8fece47852904f6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0260.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 { CommonCounterAttributes, CommonCounterModifier, CounterTestData } from '../modifiers/CommonCounterModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0260 {
+ @State value: number = 0
+ private dateIndex: number = 8
+ @State modifier: CommonCounterModifier = new CommonCounterModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCounterAttributes = CounterTestData[this.dateIndex-1]
+ this.modifier.EnableInc = data.EnableInc
+ this.modifier.EnableDec = data.EnableDec
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ Counter() {
+ Text(this.value.toString())
+ }
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ Counter() {
+ Text(this.value.toString())
+ }
+ .attributeModifier(this.modifier)
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e15b0d6197a453f978e256a138a3067de3789cd2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0270.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 { CommonCounterAttributes, CommonCounterModifier, CounterTestData } from '../modifiers/CommonCounterModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0270 {
+ @State value: number = 0
+ private dateIndex: number = 9
+ @State modifier: CommonCounterModifier = new CommonCounterModifier()
+
+ aboutToAppear(): void {
+ const data: CommonCounterAttributes = CounterTestData[this.dateIndex-1]
+ this.modifier.EnableInc = data.EnableInc
+ this.modifier.EnableDec = data.EnableDec
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ Counter() {
+ Text(this.value.toString())
+ }
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ Counter() {
+ Text(this.value.toString())
+ }
+ .attributeModifier(this.modifier)
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.value--
+ })
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..46db00799a0b2977b6d469dfd1b32032b22fbe29
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0280.ets
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import {
+ CommonDatePickerAttributes,
+ CommonDatePickerModifier,
+ DatePickerTestData } from '../modifiers/CommonDatePickerModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0280 {
+ @State isLunar: boolean = false
+ private selectedDate: Date = new Date('2023-04-30')
+
+ private dateIndex: number = 1
+ @State modifier: CommonDatePickerModifier = new CommonDatePickerModifier()
+
+ aboutToAppear(): void {
+ const data: CommonDatePickerAttributes = DatePickerTestData[this.dateIndex-1]
+ this.modifier.DisappearTextStyle = data.DisappearTextStyle
+ this.modifier.TextStyle = data.TextStyle
+ this.modifier.SelectedTextStyle = data.SelectedTextStyle
+ this.modifier.Lunar = data.Lunar
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ DatePicker({
+ start: new Date('1980-4-30'),
+ end: new Date('2370-4-30'),
+ selected: this.selectedDate
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ DatePicker({
+ start: new Date('1980-4-30'),
+ end: new Date('2370-4-30'),
+ selected: this.selectedDate
+ }).attributeModifier(this.modifier)
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1861f4f2007af086bf516772671ce093f5c2bc39
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0290.ets
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import {
+ CommonDatePickerAttributes,
+ CommonDatePickerModifier,
+ DatePickerTestData } from '../modifiers/CommonDatePickerModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0290 {
+ @State isLunar: boolean = false
+ private selectedDate: Date = new Date('2023-04-30')
+
+ private dateIndex: number = 2
+ @State modifier: CommonDatePickerModifier = new CommonDatePickerModifier()
+
+ aboutToAppear(): void {
+ const data: CommonDatePickerAttributes = DatePickerTestData[this.dateIndex-1]
+ this.modifier.DisappearTextStyle = data.DisappearTextStyle
+ this.modifier.TextStyle = data.TextStyle
+ this.modifier.SelectedTextStyle = data.SelectedTextStyle
+ this.modifier.Lunar = data.Lunar
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ DatePicker({
+ start: new Date('1980-4-30'),
+ end: new Date('2370-4-30'),
+ selected: this.selectedDate
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ DatePicker({
+ start: new Date('1980-4-30'),
+ end: new Date('2370-4-30'),
+ selected: this.selectedDate
+ }).attributeModifier(this.modifier)
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3ff43b571ffb825e1087079baf197c82a80199e6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0300.ets
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import {
+ CommonDatePickerAttributes,
+ CommonDatePickerModifier,
+ DatePickerTestData } from '../modifiers/CommonDatePickerModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0290 {
+ @State isLunar: boolean = false
+ private selectedDate: Date = new Date('2023-04-30')
+
+ private dateIndex: number = 3
+ @State modifier: CommonDatePickerModifier = new CommonDatePickerModifier()
+
+ aboutToAppear(): void {
+ const data: CommonDatePickerAttributes = DatePickerTestData[this.dateIndex-1]
+ this.modifier.DisappearTextStyle = data.DisappearTextStyle
+ this.modifier.TextStyle = data.TextStyle
+ this.modifier.SelectedTextStyle = data.SelectedTextStyle
+ this.modifier.Lunar = data.Lunar
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ DatePicker({
+ start: new Date('1980-4-30'),
+ end: new Date('2370-4-30'),
+ selected: this.selectedDate
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ DatePicker({
+ start: new Date('1980-4-30'),
+ end: new Date('2370-4-30'),
+ selected: this.selectedDate
+ }).attributeModifier(this.modifier)
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..de8f286898afd3954395e6f3c99c0a7219ca9110
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0310.ets
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import {
+ CommonDatePickerAttributes,
+ CommonDatePickerModifier,
+ DatePickerTestData } from '../modifiers/CommonDatePickerModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0310 {
+ @State isLunar: boolean = false
+ private selectedDate: Date = new Date('2023-04-30')
+
+ private dateIndex: number = 4
+ @State modifier: CommonDatePickerModifier = new CommonDatePickerModifier()
+
+ aboutToAppear(): void {
+ const data: CommonDatePickerAttributes = DatePickerTestData[this.dateIndex-1]
+ this.modifier.DisappearTextStyle = data.DisappearTextStyle
+ this.modifier.TextStyle = data.TextStyle
+ this.modifier.SelectedTextStyle = data.SelectedTextStyle
+ this.modifier.Lunar = data.Lunar
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ DatePicker({
+ start: new Date('1980-4-30'),
+ end: new Date('2370-4-30'),
+ selected: this.selectedDate
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ DatePicker({
+ start: new Date('1980-4-30'),
+ end: new Date('2370-4-30'),
+ selected: this.selectedDate
+ }).attributeModifier(this.modifier)
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dce89cc7aa88731119f4e3cc9e76c9e130365e42
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0320.ets
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import {
+ CommonDatePickerAttributes,
+ CommonDatePickerModifier,
+ DatePickerTestData } from '../modifiers/CommonDatePickerModifier'
+
+@Entry
+@Component
+struct UIComponentButtonCommonButton0320 {
+ @State isLunar: boolean = false
+ private selectedDate: Date = new Date('2023-04-30')
+
+ private dateIndex: number = 5
+ @State modifier: CommonDatePickerModifier = new CommonDatePickerModifier()
+
+ aboutToAppear(): void {
+ const data: CommonDatePickerAttributes = DatePickerTestData[this.dateIndex-1]
+ this.modifier.DisappearTextStyle = data.DisappearTextStyle
+ this.modifier.TextStyle = data.TextStyle
+ this.modifier.SelectedTextStyle = data.SelectedTextStyle
+ this.modifier.Lunar = data.Lunar
+ }
+
+ build() {
+ Column({space: 50}) {
+ Text('Default')
+ DatePicker({
+ start: new Date('1980-4-30'),
+ end: new Date('2370-4-30'),
+ selected: this.selectedDate
+ })
+
+ Text('Modifier index: '+this.dateIndex)
+ DatePicker({
+ start: new Date('1980-4-30'),
+ end: new Date('2370-4-30'),
+ selected: this.selectedDate
+ }).attributeModifier(this.modifier)
+
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ec69c49d4cbf4f30b7bcbfd13875608c2530f5d1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0020.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 UIComponentButtonDatePickerInterface0020 {
+ private selectedDate: Date = new Date('2023-05-08');
+
+ build() {
+ Column() {
+ DatePicker({
+ start: new Date('1980-04-30'),
+ end: new Date('2370-04-31'),
+ selected: this.selectedDate
+ })
+ }
+ .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/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d77df7c630ca7586a00f820fc1bbfa118f1cc2c8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0040.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 UIComponentButtonDatePickerInterface0040 {
+ private selectedDate: Date = new Date('2023-04-31');
+
+ build() {
+ Column() {
+ DatePicker({
+ start: new Date('1980-04-30'),
+ end: new Date('2370-04-30'),
+ selected: this.selectedDate
+ })
+ }
+ .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/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..eb1cafa589c5bef00812ee54d9fef2bc405050e9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0080.ets
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentButtonDatePickerInterface0080 {
+ build() {
+ Column() {
+ DatePicker()
+ }
+ .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/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b7d2a075b5b60fae1cd8450d2e091f5fbb308c00
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0090.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 UIComponentButtonDatePickerInterface0090 {
+ private selectedDate: Date = new Date('2023-05-08');
+
+ build() {
+ Column() {
+ DatePicker({
+ start: new Date('1980-05-03'),
+ end: new Date('2370-10-04'),
+ selected: this.selectedDate
+ })
+ .lunar(false)
+ }
+ .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/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..85a2f103f0af97b0ca905bbf953906f3e17377f3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0100.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 UIComponentButtonDatePickerInterface0100 {
+ private selectedDate: Date = new Date('2023-04-30');
+
+ build() {
+ Column() {
+ DatePicker({
+ start: new Date('1980-04-30'),
+ end: new Date('2370-04-30'),
+ selected: this.selectedDate
+ })
+ .lunar(false)
+ }
+ .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/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..81282164f817aa28acee6fceccd12d664ea3604f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0110.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 UIComponentButtonDatePickerInterface0110 {
+ private selectedDate: Date = new Date('2023-04-30');
+
+ build() {
+ Column() {
+ DatePicker({
+ start: new Date('1980-04-30'),
+ end: new Date('2370-04-30'),
+ selected: this.selectedDate
+ })
+ .lunar(true)
+ }
+ .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/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b71813dd512762d423217fa17234cb6a7397301b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0160.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 UIComponentButtonDatePickerInterface0160 {
+ build() {
+ Column() {
+ Row() {
+ DatePicker({ start: new Date('1980-4-30'), end: new Date('2370-4-30'), selected: new Date('2023-4-30') })
+ .id('datePicker')
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8190a2d6e63d9f9dcf6cad9ff621bf8adf81ede8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0170.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 UIComponentButtonDatePickerInterface0170 {
+ 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
+ })
+ .constraintSize({ minWidth: 300, maxWidth: 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/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..111d63dcdda034899a6516c0d57c2634bf1c1594
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0180.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 UIComponentButtonDatePickerInterface0180 {
+ private selectedDate: Date = new Date('2023-04-30');
+
+ build() {
+ Column() {
+ DatePicker({
+ start: new Date('1980-04-30'),
+ end: new Date('2370-04-30'),
+ selected: this.selectedDate
+ })
+ .constraintSize({ minHeight: 200, maxHeight: 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/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..70ee8d3691c74bfdfa31c8f02f52f92cf03e1799
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0200.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 UIComponentButtonDatePickerInterface0200 {
+ private selectedDate: Date = new Date('2023-04-30');
+
+ build() {
+ Column() {
+ DatePicker({
+ start: new Date('1980-04-30'),
+ end: new Date('2370-04-30'),
+ selected: this.selectedDate
+ })
+ .height(500)
+ }
+ .width('100%')
+ .height(200)
+ .justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bb500d4027b959e9aaf1927e5346c786e2e13e06
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0210.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 UIComponentButtonDatePickerInterface0210 {
+ 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
+ })
+ .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/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4dcb235920f22fa775dabf643e5e3efbf951dcf9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0220.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 UIComponentButtonDatePickerInterface0220 {
+ build() {
+ Column() {
+ Row() {
+ DatePicker({ start: new Date('1980-4-30'), end: new Date('2370-4-30'), selected: new Date('2023-4-30') })
+ .id('datePicker')
+ }
+ .margin('50%')
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d96be23c328b53ca9ddbce0a33e828329a5b2898
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0240.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 UIComponentButtonDatePickerInterface0240 {
+ private selectedDate: Date = new Date('2023-04-30');
+
+ build() {
+ Column() {
+ DatePicker({
+ start: new Date('1980-04-30'),
+ end: new Date('2370-04-30'),
+ selected: this.selectedDate
+ })
+ .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/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0960988f181a41cb3081fc5d77971c2e335be0a9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0260.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 UIComponentButtonDatePickerInterface0260 {
+ 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%')
+ .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/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..70c8eb54f26a8d2dfb0fff2bcac73c7f790b00cf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0280.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 UIComponentButtonDatePickerInterface0280 {
+ 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('110%')
+ .height('110%')
+ }
+ .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/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1a29e1f08dfeffd104a09307dfad9c60bfdffa0f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0290.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 UIComponentButtonDatePickerInterface0290 {
+ 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%')
+ .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/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..67d0553ff8d714d6f73442735792880bc2c38816
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0050.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 UIComponentButtonDatepickerInterface0050 {
+ private selectedDate: Date = new Date('2380-4-31')
+ 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/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..26127c37aecdc4cdd2b52628c29d41e7f249bff5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0070.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 UIComponentButtonDatepickerInterface0070 {
+ private selectedDate: Date = new Date('1980-04-08')
+ build() {
+ Column() {
+ DatePicker({
+ start: new Date('1980-4-31'),
+ end: new Date('2370-10-4'),
+ selected: this.selectedDate
+ }).id('datePicker0160')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8b266b28a51fbb433bf12930f11fe4320d98aeae
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0150.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 UIComponentButtonDatepickerInterface0150 {
+ @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
+ }).id('DatePicker')
+ .constraintSize({ minWidth: 300, maxWidth: 10 })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7be7728f8ba31217dd286db2b1a41a7e6fad06a9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0230.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 UIComponentButtonDatepickerInterface0230 {
+ @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
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7c3f5cd9149240ffcf80ef2f6a440774ece4a9a4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0250.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 UIComponentButtonDatepickerInterface0250 {
+ @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
+ }).width('100%')
+ .padding('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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..eac503c8749bf442b8008f96c11dfeb3cd83ad9a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0020.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 { promptAction } from '@kit.ArkUI'
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0020 {
+
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.height(150).margin({top: 100})
+ Row({ space: 50 }) {
+ Button("OK").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ .id("button6")
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('子窗T').id('button1')
+ Button('Top').id('button2')
+ Button('100').id('button3')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Top,
+ showInSubWindow: true,
+ height: 300
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button4')
+
+ Button('切换横屏')
+ .id('button5')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..17d655ecd4bac4c124665c5821463726eb88b61a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0030.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 { promptAction } from '@kit.ArkUI'
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0030 {
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.height(30)
+ Row({ space: 50 }) {
+ Button("OK")
+ .id("button6")
+ .onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.margin({bottom: 35, top: 35}).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('子窗F').id('button1')
+ Button('Bottom').id('button2')
+ Button('100').id('button3')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Bottom,
+ showInSubWindow: true,
+ height: 600,
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button4')
+
+ Button('切换横屏')
+ .id('button5')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2cf14e6e6b606852d8f20d52f18fcf37b6a71073
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0040.ets
@@ -0,0 +1,103 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { promptAction } from '@kit.ArkUI'
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0040 {
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({ placeholder: '请输入' })
+ .id("textInput")
+ }.height(150)
+
+ Row({ space: 50 }) {
+ Button("OK")
+ .onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ .id("button6")
+
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.margin({ bottom: 35 }).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('子窗T').id('button1')
+ Button('Bottom').id('button2')
+ Button('100').id('button3')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Bottom,
+ showInSubWindow: true,
+ height: 300
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button4')
+
+ Button('切换横屏')
+ .id('button5')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id("page")
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6aafa1bad2ee14475cbb23d771cf73e63cba8aa1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0050.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 { promptAction } from '@kit.ArkUI'
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0050 {
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.height(150).margin({top:100})
+ Row({ space: 50 }) {
+ Button("OK")
+ .id("button6")
+ .onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.margin({bottom: 35}).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('子窗F').id('button1')
+ Button('Bottom').id('button2')
+ Button('100').id('button3')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Bottom,
+ showInSubWindow: false,
+ height: 300,
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button4')
+
+ Button('切换横屏')
+ .id('button5')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5ae7c90ae3681c0ff97499c2c059c4e10de47716
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0060.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0060 {
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.height(150).margin({top:100})
+ Row({ space: 50 }) {
+ Button("OK")
+ .id("button4")
+ .onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.margin({bottom: 35}).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('Bottom模态100').id('button1')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Bottom,
+ showInSubWindow: false,
+ height: 300,
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button2')
+
+ Button('切换横屏')
+ .id('button3')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..36ebfb2c5c81049c7e9d6cff3b5993802987fc65
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0070.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0070 {
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.height(30)
+ Row({ space: 50 }) {
+ Button("OK")
+ .id("button4")
+ .onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.margin({top: 35}).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('Top模态600').id('button1')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Top,
+ showInSubWindow: false,
+ height: 600,
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button2')
+
+ Button('切换横屏')
+ .id('button3')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d8272e465525f76938cd1ea4257eddcc5a189b79
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0080.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 { promptAction } from '@kit.ArkUI'
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0080 {
+
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.margin({top: 100})
+ Row({ space: 50 }) {
+ Button("OK").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ .id("button6")
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.margin({top: 35})
+ }.padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('子窗T').id('button1')
+ Button('Top').id('button2')
+ Button('600').id('button3')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Top,
+ showInSubWindow: true,
+ height: 600
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button4')
+
+ Button('切换横屏')
+ .id('button5')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fcfbae85b7b3875f8a1296e25d0a4374dea5ce1f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0090.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0090 {
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.height(30)
+ Row({ space: 50 }) {
+ Button("OK")
+ .id("button4")
+ .onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.margin({bottom: 35}).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('Bottom模态600').id('button1')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Bottom,
+ showInSubWindow: false,
+ height: 600,
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button2')
+
+ Button('切换横屏')
+ .id('button3')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..513128b6d8c3f0741e0599a831439528ce83c9ad
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0100.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0100 {
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.height(150).margin({top: 100})
+ Row({ space: 50 }) {
+ Button("OK")
+ .id("button4")
+ .onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.margin({top: 35}).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('Top子窗600').id('button1')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Top,
+ showInSubWindow: true,
+ height: 600,
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button2')
+
+ Button('切换横屏')
+ .id('button3')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a122ec3969f46de345caf6bada4c0772b077c982
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0110.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 { promptAction } from '@kit.ArkUI'
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0110 {
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.height(30)
+ Row({ space: 50 }) {
+ Button("OK")
+ .id("button6")
+ .onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.margin({bottom: 35}).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('子窗F').id('button1')
+ Button('Top').id('button2')
+ Button('100').id('button3')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Top,
+ showInSubWindow: false,
+ height: 100,
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button4')
+
+ Button('切换横屏')
+ .id('button5')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..88f3b9ad85c9a416969d9a84c51602b3da2f68d7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0120.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0120 {
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.height(150)
+ Row({ space: 50 }) {
+ Button("OK")
+ .id("button4")
+ .onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.margin({top: 35}).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('Top子窗100').id('button1')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Top,
+ showInSubWindow: true,
+ height: 300,
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button2')
+
+ Button('切换横屏')
+ .id('button3')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..25529184471a4d691d47f6f0b2d277dfe7d3aa3f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0130.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 { promptAction } from '@kit.ArkUI'
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0130 {
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.height(30)
+ Row({ space: 50 }) {
+ Button("OK")
+ .id("button6")
+ .onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.margin({top: 35}).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('子窗F').id('button1')
+ Button('Top').id('button2')
+ Button('600').id('button3')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Top,
+ showInSubWindow: false,
+ height: 600,
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button4')
+
+ Button('切换横屏')
+ .id('button5')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f8a93fdb17c698d1350b919185d4aa1fd270f315
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0140.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0140 {
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.height(30)
+ Row({ space: 50 }) {
+ Button("OK")
+ .id("button4")
+ .onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.margin({bottom: 35}).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('Top模态100').id('button1')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Top,
+ showInSubWindow: false,
+ height: 100,
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button2')
+
+ Button('切换横屏')
+ .id('button3')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..df390ec4f2cf38e5f13cfb4f5284d949b36d6cdf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0150.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0150 {
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.height(150)
+ Row({ space: 50 }) {
+ Button("OK")
+ .id("button4")
+ .onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.margin({bottom: 35}).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('Bottom子窗100').id('button1')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Bottom,
+ showInSubWindow: true,
+ height: 300,
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button2')
+
+ Button('切换横屏')
+ .id('button3')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c0a5f408898e0299c628eb9e7d5ddc2199cb8464
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0160.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 { promptAction } from '@kit.ArkUI'
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialCDCMOptimization0160 {
+ private customDialogComponentId: number = 0;
+ private portrait: boolean = true;
+
+ @Builder
+ customDialogComponent0080() {
+ Column() {
+ Row() {
+ Text('Test')
+ TextInput({placeholder: '请输入'})
+ .id("textInput")
+ }.height(30)
+ Row({ space: 50 }) {
+ Button("OK")
+ .id("button6")
+ .onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+
+ Button("Cancel").onClick(() => {
+ promptAction.closeCustomDialog(this.customDialogComponentId);
+ })
+ }.height(30)
+ }.margin({top: 35}).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('子窗T').id('button1')
+ Button('Bottom').id('button2')
+ Button('600').id('button3')
+ Button('click customDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent0080();
+ },
+ alignment: DialogAlignment.Bottom,
+ showInSubWindow: true,
+ height: 600,
+ }).then((dialogId: number) => {
+ this.customDialogComponentId = dialogId;
+ })
+ })
+ .id('button4')
+
+ Button('切换横屏')
+ .id('button5')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+
+ }.width('100%').height('100%').id('page')
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..82cffc7583ee00ffbebcc41cde8b3be15e733a8a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0010.ets
@@ -0,0 +1,107 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0010 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0010({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0010_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0010 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0010_002')
+ .value('Select')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f3d339425d8e518ac08a442f22fd557999d185a6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0020.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0020 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0020({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0020_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0020 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0020_002')
+ .value('Select')
+ .fontColor(Color.Pink)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..89268ec1f44c31d181cf7382608524b5399f4478
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0030.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0030 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0030({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0030_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0030 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0030_002')
+ .value('Select')
+ .fontColor(0x008000)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2ee91871b17336b2cc670f3a68aba61a83720315
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0040.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0040 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0040({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0040_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0040 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0040_002')
+ .value('Select')
+ .fontColor('#9e8e5eec')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1da34061d40cb644e2e2440ffabd583b7b9aac19
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0050.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0050 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0050({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0050_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0050 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0050_002')
+ .value('Select')
+ .fontColor($r('app.color.Pink'))
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ce7ffbd3f8f4eaa2163567be70ee0c1d0a089809
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0060.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0060 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0060({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0060_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0060 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0060_002')
+ .value('Select')
+ .fontColor($r('app.color.color_purple'))
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5be3bdd815b84da4af3b3e30d36da07e6614b48c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0070.ets
@@ -0,0 +1,107 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0070 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0070({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0070_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0070 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0070_002')
+ .value('Select')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f54a5d7d6ccf8da8a183b9f2a319355786687ff2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0080.ets
@@ -0,0 +1,114 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0080 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0080({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0080_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0080 {
+ @State m: number = 0;
+ @State colors: Color[] = [Color.Red, Color.Green, Color.Orange];
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0080_002')
+ .value('Select')
+ .selected(0)
+ .fontColor(this.colors[this.m])
+ .onSelect((index: number, text?: string | undefined) => {
+ this.m += 1;
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6cd1244a5e127a88877417391644b37b5c25cf17
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0090.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0090 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0090({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0090_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0090 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0090_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionBgColor(Color.Pink)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4801278838cb3a6638cdc55dabdd04588d907b02
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0100.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0100 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0100({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0100_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0100 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0100_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFontColor(0x008000)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..557ad63f66bee4a1b5a98a8a4c50a645e16096eb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0110.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0110 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0110({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0110_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0110 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0110_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFontColor('#9e8e5eec')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..80dcb57adb56af4a9e2926c391483b5bf13a74af
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0120.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0120 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0120({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0120_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0120 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0120_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFontColor($r('app.color.Pink'))
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bff7803a10925967ea00ecb72da6b170ade1c4aa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0130.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0130 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0130({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0130_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0130 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0130_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFontColor($r('app.color.color_purple'))
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7a4b063014e7c2ea1d4ac74920606c1f91397f91
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0140.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0140 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0140({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0140_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0140 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0140_002')
+ .value('Select')
+ .selected(0)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..44cb857deb3136eaf00967777bdb81944febb5e4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0150.ets
@@ -0,0 +1,114 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0150 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0150({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0150_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0150 {
+ @State m: number = 0;
+ @State colors: Color[] = [Color.Red, Color.Green, Color.Orange];
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0150_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFontColor(this.colors[this.m])
+ .onSelect((index: number, text?: string | undefined) => {
+ this.m += 1;
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b93d8c1db459d6d1f5b6a849a077f280558e3641
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0160.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0160 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0160({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0160_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0160 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0160_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ size: '0fp'
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c10bed96a52924ded81380955a82f7ea17f196b4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0170.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0170 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0170({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0170_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0170 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0170_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ size: '10fp'
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0554b8d96bf871007dfacb9230b8792a22b74904
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0180.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0180 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0180({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0180_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0180 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0180_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ size: '-10fp'
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8f59fa44b897992e50e22b65f590b848d03ad367
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0190.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0190 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0190({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0190_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0190 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0190_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({})
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d8375e20fad75e83f54474743c9e32214e02da1b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0200.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0200 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0200({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0200_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0200 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0200_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: FontWeight.Lighter
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1c25bfa040e16823d1a344a73468755b83692ca5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0210.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0210 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0210({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0210_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0210 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0210_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: FontWeight.Normal
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..01370953b8b45641e69d5d8a08605131843f06fa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0220.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0220 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0220({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0220_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0220 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0220_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: FontWeight.Regular
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e8e9d4fc2bde67ed2369f42fe9ac9b82c89d77b0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0230.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0230 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0230({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0230_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0230 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0230_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: FontWeight.Medium
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4def8c76120271edef7517ccb68418e2c3edc060
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0240.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0240 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0240({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0240_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0240 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0240_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: FontWeight.Bold
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e25300998bc34a34b652436208c56b62219c6f72
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0250.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0250 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0250({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0250_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0250 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0250_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: FontWeight.Bolder
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..510294d61926aae5c3d26890ba56b61b0272220f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0260.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0260 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0260({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0260_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0260 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0260_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({})
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ae1443438b78b9f44a7ad0cc708dc370b027888d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0270.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0270 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0270({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0270_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0270 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0270_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: 0
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..15221b51b3249289121084877ceb51eda4d26d0a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0280.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0280 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0280({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0280_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0280 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0280_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: 400
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8164e77c2a4e15fc698bd64bc11e8ee9e2088918
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0290.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0290 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0290({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0290_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0290 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0290_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: 500.5
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b72c6ee93c86d1c4d84e20d4d487fd24eaa1ce50
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0300.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0300 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0300({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0300_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0300 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0300_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: 1000
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5bb86d591b075cf32fcf1703f1dd61ab960a3d0a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0310.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0310 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0310({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0310_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0310 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0310_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: -400
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..500c8a594dfc5dde9aef28e14bce90d68a99c23d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0320.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0320 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0320({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0320_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0320 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0320_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({})
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0330.ets
new file mode 100644
index 0000000000000000000000000000000000000000..923ca1b25c63b1fce2f87bd2b740952beb412530
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0330.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0330 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0330({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0330_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0330 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0330_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: ''
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0340.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e7f11a2d57131a4ab652b65472e7c7b43a50ae1b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0340.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0340 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0340({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0340_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0340 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0340_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: '400'
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0350.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e2ddd1a1f512b676a2e1a0bfeed3f8b2de66ec81
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0350.ets
@@ -0,0 +1,116 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0350 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0350({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0350_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0350 {
+ @State m: number = 0;
+ @State weights: string[] = ['200', '600'];
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0350_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ weight: this.weights[this.m]
+ })
+ .onSelect((index: number, text?: string | undefined) => {
+ this.m += 1;
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c91bc76a1b6f7cfc1c94256522690bdc541f954a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0360.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0360 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0360({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0360_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0360 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0360_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ family: 'HarmonyOS Sans'
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0370.ets
new file mode 100644
index 0000000000000000000000000000000000000000..566cc75dc9016de23ce47312db085b86892c76fe
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0370.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0370 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0370({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0370_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0370 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0370_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ family: $r('app.string.family_select')
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..92a579714ab7bc91897f0a8ed1dc5cab58eb3bcf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0380.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0380 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0380({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0380_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0380 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0380_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ style: FontStyle.Normal
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9f0236eb82acb5e62426bb7898ed44e6d3effdcc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0390.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0390 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0390({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0390_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0390 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0390_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ style: FontStyle.Italic
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b02d28cb8d029f98ef620a7901f496a179e393a0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0400.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0400 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0400({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0400_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0400 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0400_002')
+ .value('Select')
+ .selected(0)
+ .selectedOptionFont({
+ style: undefined
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0410.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6204172581a9202f83c85c00c6a5947817754805
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0410.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0410 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0410({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0410_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0410 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0410_002')
+ .value('Select')
+ .selected(0)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0420.ets
new file mode 100644
index 0000000000000000000000000000000000000000..73bc72e3e77e7270b991e1e1642af6b3957efa1d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0420.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0420 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0420({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0420_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0420 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0420_002')
+ .value('Select')
+ .optionFont({
+ size: '0fp'
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0430.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0d705fc8f3047d6c3a39d13298d145cd5e40b5f3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0430.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0430 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0430({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0430_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0430 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0430_002')
+ .value('Select')
+ .optionFont({
+ size: '10fp'
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0440.ets
new file mode 100644
index 0000000000000000000000000000000000000000..20dc4e3ea9f28c00edc02dd4d7d0e54ad3bcb718
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0440.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0440 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0440({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0440_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0440 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0440_002')
+ .value('Select')
+ .optionFont({
+ size: '-10fp'
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0450.ets
new file mode 100644
index 0000000000000000000000000000000000000000..851e67d538212f9bf066656a0511528324f8dc4b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0450.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0450 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0450({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0450_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0450 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0450_002')
+ .value('Select')
+ .optionFont({
+ size: '20.5fp'
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0460.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ffc3976aaf63ed0d545e094541dd3d2bd76b3842
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0460.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0460 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0460({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0460_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0460 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0460_002')
+ .value('Select')
+ .optionFont({})
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0470.ets
new file mode 100644
index 0000000000000000000000000000000000000000..990639495224540c3fe0c1cf8419d9c6a5b7df37
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0470.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0470 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0470({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0470_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0470 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0470_002')
+ .value('Select')
+ .optionFont({
+ weight: FontWeight.Lighter
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0480.ets
new file mode 100644
index 0000000000000000000000000000000000000000..db0bcd66cbe0cac4fca51bce8afb7005228cf8cf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0480.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0480 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0480({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0480_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0480 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0480_002')
+ .value('Select')
+ .optionFont({
+ weight: FontWeight.Normal
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0490.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e3cd035627455ab21276e1bfb9e3d844d0e4d30f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0490.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0490 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0490({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0490_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0490 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0490_002')
+ .value('Select')
+ .optionFont({
+ weight: FontWeight.Regular
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0500.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c09a51e65412877338fe49b2ca45637c58cd3572
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0500.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0500 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0500({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0500_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0500 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0500_002')
+ .value('Select')
+ .optionFont({
+ weight: FontWeight.Medium
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0510.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dff16b7367c73f103c0ef80f62d0cdcf9738b370
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0510.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0510 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0510({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0510_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0510 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0510_002')
+ .value('Select')
+ .optionFont({
+ weight: FontWeight.Bold
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0520.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ec07176e61afdf6a52516ab461eccc93d49edbac
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0520.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0520 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0520({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0520_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0520 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0520_002')
+ .value('Select')
+ .optionFont({
+ weight: FontWeight.Bolder
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0530.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c7da69100fae8a2981f485fcec1841760b5edf9f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0530.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0530 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0530({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0530_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0530 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0530_002')
+ .value('Select')
+ .optionFont({})
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0540.ets
new file mode 100644
index 0000000000000000000000000000000000000000..754b02de9a50fbe204f2881f21113cc065533e47
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0540.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0540 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0540({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0540_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0540 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0540_002')
+ .value('Select')
+ .selected(0)
+ .optionFont({
+ weight: 0
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0550.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4db4b9e3822b361d9be135cba1f1dd8e25ea0edd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0550.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0550 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0550({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0550_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0550 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0550_002')
+ .value('Select')
+ .optionFont({
+ weight: 400
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0560.ets
new file mode 100644
index 0000000000000000000000000000000000000000..34ca6520d69356f0e7b6f3a2bab32c6ccde8e8d1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0560.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0560 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0560({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0560_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0560 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0560_002')
+ .value('Select')
+ .optionFont({
+ weight: 500.5
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0570.ets
new file mode 100644
index 0000000000000000000000000000000000000000..38a2ca6a4145b782d24ec2d352b66d4c63fbb25b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0570.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0570 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0570({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0570_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0570 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0570_002')
+ .value('Select')
+ .optionFont({
+ weight: 1000
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0580.ets
new file mode 100644
index 0000000000000000000000000000000000000000..332ef7a841507a5dfd3b7bb7ab67ac74e0daeff2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0580.ets
@@ -0,0 +1,111 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0580 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0580({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0580_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0580 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0580_002')
+ .value('Select')
+ .selected(0)
+ .optionFont({
+ weight: -400
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0590.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3d09e439076560157610ad12f631455ceb710359
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0590.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0590 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0590({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0590_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0590 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0590_002')
+ .value('Select')
+ .selected(0)
+ .optionFont({})
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0600.ets
new file mode 100644
index 0000000000000000000000000000000000000000..91def3cef086b45353b6042ebd81a7368a977067
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0600.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0600 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0600({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0600_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0600 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0600_002')
+ .value('Select')
+ .optionFont({
+ weight: ''
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0610.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f83916a9e6135d6bf5b9fed5c5e94cf88b92bc30
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0610.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0610 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0610({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0610_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0610 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0610_002')
+ .value('Select')
+ .optionFont({
+ weight: '400'
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0620.ets
new file mode 100644
index 0000000000000000000000000000000000000000..745269b3647e0ba402c17660ffb2dcd8753be3a8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0620.ets
@@ -0,0 +1,116 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0620 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0620({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0620_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0620 {
+ @State m: number = 0;
+ @State weights: string[] = ['200', '600'];
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0620_002')
+ .value('Select')
+ .selected(0)
+ .optionFont({
+ weight: this.weights[this.m]
+ })
+ .onSelect((index: number, text?: string | undefined) => {
+ this.m += 1;
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0630.ets
new file mode 100644
index 0000000000000000000000000000000000000000..df267d2b42a9f5ad75241289fa6d85799657e997
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0630.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0630 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0630({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0630_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0630 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0630_002')
+ .value('Select')
+ .optionFont({
+ family: 'HarmonyOS Sans'
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0640.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ced6a4e10e326c6c723ad72c72ea0601e05cfde2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0640.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0640 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0640({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0640_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0640 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0640_002')
+ .value('Select')
+ .optionFont({
+ family: $r('app.string.family_select')
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0650.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a141bb53ebedf22ce07ae8e25718cc8d289398b4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0650.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0650 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0650({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0650_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0650 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0650_002')
+ .value('Select')
+ .optionFont({
+ style: FontStyle.Normal
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0660.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5125fb30dd9c14cd3aef47542367b658e901c565
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0660.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0660 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0660({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0660_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0660 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0660_002')
+ .value('Select')
+ .optionFont({
+ style: FontStyle.Italic
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0670.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b98470b7a30ffdd6bb2d77a2de13d4253a9cee13
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0670.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0670 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0670({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0670_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0670 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0670_002')
+ .value('Select')
+ .optionFont({})
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0680.ets
new file mode 100644
index 0000000000000000000000000000000000000000..89391fa983bedfcbc8d5c44ded9dc4fa9629f368
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0680.ets
@@ -0,0 +1,107 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0680 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0680({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0680_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0680 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0680_002')
+ .value('Select')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0690.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4ff976eb0fb724a408417d87c4ed7148bf78fc5b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0690.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0690 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0690({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0690_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0690 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0690_002')
+ .value('Select')
+ .selected(0)
+ .optionFontColor(Color.Pink)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0700.ets
new file mode 100644
index 0000000000000000000000000000000000000000..11948f058851dc9fec278d6bd0a9a0f7d03e3d6c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0700.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0700 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0700({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0700_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0700 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0700_002')
+ .value('Select')
+ .selected(0)
+ .optionFontColor(0x008000)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0710.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bfcc4de0c6e6fd84448449dfbf506a712d1402a1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0710.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0710 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0710({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0710_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0710 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0710_002')
+ .value('Select')
+ .selected(0)
+ .optionFontColor('#9e8e5eec')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0720.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ac3007c090ae1b14cef120a640d523e3e4e7dc24
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0720.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0720 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0720({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0720_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0720 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0720_002')
+ .value('Select')
+ .selected(0)
+ .optionFontColor($r('app.color.Pink'))
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0730.ets
new file mode 100644
index 0000000000000000000000000000000000000000..18f9bbd4f9da66ac5e12fc0945b9ac66f76ebb76
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0730.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0730 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0730({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0730_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0730 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0730_002')
+ .value('Select')
+ .selected(0)
+ .optionFontColor($r('app.color.color_purple'))
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0740.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bc46bf9f24037ed3962ef2353801f73e933ec4c1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0740.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0740 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0740({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0740_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0740 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0740_002')
+ .value('Select')
+ .selected(0)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0750.ets
new file mode 100644
index 0000000000000000000000000000000000000000..340734c2b4a808387608fe5b942fc35b82385ed0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0750.ets
@@ -0,0 +1,114 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0750 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0750({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0750_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0750 {
+ @State m: number = 0;
+ @State colors: Color[] = [Color.Red, Color.Green, Color.Orange];
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0750_002')
+ .value('Select')
+ .selected(0)
+ .optionFontColor(this.colors[this.m])
+ .onSelect((index: number, text?: string | undefined) => {
+ this.m += 1;
+ })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0760.ets
new file mode 100644
index 0000000000000000000000000000000000000000..43c8b674e4206ceb4fc2edaf745a4d7da1fcdef3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0760.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0760 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0760({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0760_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0760 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0760_002')
+ .value('Select')
+ .selected(0)
+ .arrowPosition(ArrowPosition.END)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0770.ets
new file mode 100644
index 0000000000000000000000000000000000000000..50fe0dcb183ea6bd1a9d4fd17ff1baa166f6bb10
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0770.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0770 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0770({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0770_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0770 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0770_002')
+ .value('Select')
+ .selected(0)
+ .arrowPosition(ArrowPosition.START)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0780.ets
new file mode 100644
index 0000000000000000000000000000000000000000..550e35f3c668ff87a48632af17e5ed69bb2366e7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0780.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0780 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0780({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0780_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0780 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0780_002')
+ .value('Select')
+ .selected(0)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0790.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dc61dce87182b1c6dc08ce7e1716d4606c6e12e5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0790.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0790 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0790({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0790_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0790 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0790_002')
+ .value('Select')
+ .selected(0)
+ .menuAlign(MenuAlignType.START)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0800.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b1b60f4d3a9622ba931179a2111a5ff3a5e35d62
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0800.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0800 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0800({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0800_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0800 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0800_002')
+ .value('Select')
+ .menuAlign(MenuAlignType.CENTER)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0810.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4f74d29b954c215bb5cc871b3c17ad35fdb06eae
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0810.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0810 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0810({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0810_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0810 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0810_002')
+ .value('Select')
+ .menuAlign(MenuAlignType.END)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0820.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8a978267b97514298b686f834641d4eee1623898
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0820.ets
@@ -0,0 +1,107 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0820 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0820({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0820_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0820 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0820_002')
+ .value('Select')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0830.ets
new file mode 100644
index 0000000000000000000000000000000000000000..736aabe4fa50c1cc2ea9c9f98c2fc35d782bb004
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0830.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0830 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0830({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0830_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0830 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0830_002')
+ .value('Select')
+ .menuAlign(MenuAlignType.START, { dx: 0, dy: 0 })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0840.ets
new file mode 100644
index 0000000000000000000000000000000000000000..42f36281b7180039da875c7eb8970d2c961d0f38
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0840.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0840 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0840({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0840_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0840 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0840_002')
+ .value('Select')
+ .menuAlign(MenuAlignType.START, { dx: -20, dy: 20 })
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0850.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e8a9c24ff9e9c0a46200cdb18e6f5667082be637
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0850.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0850 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0850({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0850_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0850 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0850_002')
+ .value('Select')
+ .selected(0)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0860.ets
new file mode 100644
index 0000000000000000000000000000000000000000..335de251b8ee2b21537d8da9161870c7ff40c32b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0860.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0860 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0860({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0860_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0860 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0860_002')
+ .value('Select')
+ .selected(0)
+ .optionWidth('10px')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0870.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7ac86d4d819623c90a8164c09457548b6ec09ffd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0870.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0870 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0870({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0870_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0870 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0870_002')
+ .value('Select')
+ .selected(0)
+ .optionWidth('0vp')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0880.ets
new file mode 100644
index 0000000000000000000000000000000000000000..af38e33553edb2b1587668dc4b33216d5adb51ef
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0880.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0880 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0880({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0880_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0880 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0880_002')
+ .value('Select')
+ .selected(0)
+ .optionWidth('10fp')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0890.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ccca66dfd2539dc92463096458a1e25246989752
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0890.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0890 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0890({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0890_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0890 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0890_002')
+ .value('Select')
+ .selected(0)
+ .optionWidth('10lpx')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0900.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bc5c39d307ca5554ab5cd5daf199eb8613f7ad00
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0900.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0900 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0900({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0900_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0900 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0900_002')
+ .value('Select')
+ .optionWidth('10%')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0910.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0c456dad63dfa9773202786b5afe4c472518a497
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0910.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0910 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0910({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0910_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0910 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0910_002')
+ .value('Select')
+ .optionWidth(undefined)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0920.ets
new file mode 100644
index 0000000000000000000000000000000000000000..77633f4457833e80a496bd46eb787c21d7226179
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0920.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0920 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0920({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0920_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0920 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0920_002')
+ .value('Select')
+ .optionWidth(null)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0930.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1f15710aca051c593a36b6331e5024aedf8ff243
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0930.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0930 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0930({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0930_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0930 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0930_002')
+ .value('Select')
+ .optionWidth(10)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0940.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1abf757ddd5e8acb3b09dac43c3cbb0c3d6e23fc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0940.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0940 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0940({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0940_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0940 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0940_002')
+ .value('Select')
+ .optionWidth($r('app.string.size_10px'))
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0950.ets
new file mode 100644
index 0000000000000000000000000000000000000000..846537b18c4e747dd32a444b4d37b28344fbe0b5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0950.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0950 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0950({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0950_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0950 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0950_002')
+ .value('Select')
+ .optionWidth(OptionWidthMode.FIT_CONTENT)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0960.ets
new file mode 100644
index 0000000000000000000000000000000000000000..233419402c8d44bcbbf207a67f51eb457baa46f4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0960.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0960 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0960({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0960_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0960 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0960_002')
+ .value('Select')
+ .optionWidth(OptionWidthMode.FIT_TRIGGER)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0970.ets
new file mode 100644
index 0000000000000000000000000000000000000000..612cd3d4d42d81368f70e83ba446863b5cce7200
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0970.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0970 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0970({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0970_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0970 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'a' },
+ { value: 'b' },
+ { value: 'c' },
+ { value: 'd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0970_002')
+ .value('Select')
+ .optionHeight('10px')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0980.ets
new file mode 100644
index 0000000000000000000000000000000000000000..713aa3512c134bdc247a685f856c629a1a2dffa8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0980.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0980 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0980({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0980_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0980 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0980_002')
+ .value('Select')
+ .optionHeight('10vp')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0990.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4d38ea77592d43560c40b9b2e12d9f7ea46f08bd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0990.ets
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface0990 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_0990({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0990_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_0990 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface0990_002')
+ .value('Select')
+ .optionHeight('10fp')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1000.ets
new file mode 100644
index 0000000000000000000000000000000000000000..27b8f08387da3d813a3d19d54bd7967df83f012e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1000.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface1000 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_1000({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface1000_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_1000 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface1000_002')
+ .value('Select')
+ .selected(0)
+ .optionHeight('10lpx')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..20c34268496873b1bf9c7b9ff52c1624b16883fa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1010.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface1010 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_1010({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface1010_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_1010 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface1010_002')
+ .value('Select')
+ .selected(0)
+ .optionHeight('0%')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1da429a0405c82da6b139f171579f3b492c6ec2c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1020.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface1020 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_1020({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface1020_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_1020 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface1020_002')
+ .value('Select')
+ .selected(0)
+ .optionHeight(undefined)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f746b847a36cda0019b4ebe20a7826ebd4b2a8ed
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1030.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface1030 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_1030({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface1030_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_1030 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface1030_002')
+ .value('Select')
+ .selected(0)
+ .optionHeight(null)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5fb5ba6a36ea7542f24ae715a439a2687b3a9b09
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1040.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface1040 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_1040({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface1040_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_1040 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface1040_002')
+ .value('Select')
+ .selected(0)
+ .optionHeight(10)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a391d3808baf25deda0eebb52aff98b1112c6c51
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1050.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentFunctionSpecialComponentsDialogSelectInterface1050 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExample_1050({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ offset: { dx: 0, dy: -20 },
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface1050_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample_1050 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Select([
+ { value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('UIComponentFunctionSpecialComponentsDialogSelectInterface1050_002')
+ .value('Select')
+ .selected(0)
+ .optionHeight($r('app.string.time_picker_10vp'))
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3867359c05834cb283e2a0a10fde05c912864b92
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0050.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 UIComponentPopupBoxActionSheetScenarios0050 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: $r('app.string.action_sheet_title'),
+ message: 'message',
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dc6e5a0adf4414a4ae96b1930218acec451e528e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0060.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 UIComponentPopupBoxActionSheetScenarios0060 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'title',
+ message: 'message',
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ce2de06ef096e8803fb428cf54c655e1a7b11607
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0070.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 UIComponentPopupBoxActionSheetScenarios0070 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: '弹窗标题弹窗标题弹窗标题弹窗标题弹窗标题弹窗标题弹窗标题弹窗标题弹窗标题弹窗标题',
+ message: 'message',
+ autoCancel: true,
+ confirm: {
+ value: 'Confirm',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ cancel: () => {
+ console.log('actionSheet canceled')
+ },
+ sheets: [
+ {
+ title: 'apples',
+ action: () => {
+ console.log('apples')
+ }
+ },
+ {
+ title: 'bananas',
+ action: () => {
+ console.log('bananas')
+ }
+ },
+ {
+ title: 'pears',
+ action: () => {
+ console.log('pears')
+ }
+ }
+ ]
+ })
+ })
+ Row(){}.backgroundColor(Color.White).width('100%').height(40).id('maskClick')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..81c1ee0e3e2896af12b750631cbf68a619fa598c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0080.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 UIComponentPopupBoxActionSheetScenarios0080 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'titletitletitletitletitletitletitletitletitletitletitletitletitletitle',
+ message: 'message',
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8f0129a7665179924e820654c239a0666bb4d8da
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0110.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 UIComponentPopupBoxActionSheetScenarios0110 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: '弹窗标题',
+ message: 'message',
+ confirm: {
+ value: 'Confirm',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ cancel: () => {
+ console.log('actionSheet canceled')
+ },
+ sheets: []
+ })
+ })
+ }.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/UIComponentPopupBoxButtonStyle0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxButtonStyle/UIComponentPopupBoxButtonStyle0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..95fc8c7284606db54d346d0072e98a2a190b7934
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxButtonStyle/UIComponentPopupBoxButtonStyle0080.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 } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct UIComponentPopupBoxButtonStyle0080 {
+ build() {
+ Row() {
+ Button('自定义按钮')
+ .id('btn1')
+ .onClick(()=>{
+ DatePickerDialog.show({
+ start: new Date("2000-1-1"),
+ end: new Date("2100-12-31"),
+ acceptButtonStyle:{
+ type: ButtonType.Normal,
+ style: ButtonStyleMode.TEXTUAL,
+ role: ButtonRole.NORMAL,
+ fontColor: '#00bfff',
+ fontSize: '16fp',
+ fontWeight: FontWeight.Bold,
+ fontStyle: FontStyle.Italic,
+ fontFamily: 'sans-serif',
+ borderRadius:10,
+ backgroundColor:Color.White
+ },
+ cancelButtonStyle:{
+ type: ButtonType.Circle,
+ style: ButtonStyleMode.NORMAL,
+ role: ButtonRole.ERROR,
+ fontColor: Color.Blue,
+ fontSize: '16fp',
+ fontWeight: 500,
+ fontStyle: FontStyle.Normal,
+ fontFamily: 'sans-serif',
+ borderRadius:{topLeft:10,topRight:10,bottomLeft:10,bottomRight:10},
+ backgroundColor:Color.Black
+ }
+ })
+ })
+ }.width('100%').justifyContent(FlexAlign.Center).height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxButtonStyle/UIComponentPopupBoxButtonStyle0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxButtonStyle/UIComponentPopupBoxButtonStyle0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3189319532f1febcfb874705391ca67bc55ae4dc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxButtonStyle/UIComponentPopupBoxButtonStyle0090.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 { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct UIComponentPopupBoxButtonStyle0090 {
+ build() {
+ Row() {
+ Button('参数异常')
+ .id('btn1')
+ .onClick(()=>{
+ DatePickerDialog.show({
+ start: new Date("2000-1-1"),
+ end: new Date("2100-12-31"),
+ acceptButtonStyle:{
+ type: undefined,
+ style: undefined,
+ role: undefined,
+ fontColor: undefined,
+ fontSize: undefined,
+ fontWeight: undefined,
+ fontStyle: undefined,
+ fontFamily: undefined,
+ },
+ cancelButtonStyle:{
+ type: undefined,
+ style: undefined,
+ role: undefined,
+ fontColor: undefined,
+ fontSize: undefined,
+ fontWeight: undefined,
+ fontStyle: undefined,
+ fontFamily: undefined,
+ }
+ })
+ })
+ Button('默认样式')
+ .id('btn2')
+ .onClick(()=>{
+ DatePickerDialog.show({
+ start: new Date("2000-1-1"),
+ end: new Date("2100-12-31")
+ })
+ })
+ }.width('100%').justifyContent(FlexAlign.Start).height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8315baa92c6cf839575150a085255d46e8ec2934
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0010.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.
+ */
+@CustomDialog
+struct CDialog01 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog01({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("SafeAreaEdge All")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([], [SafeAreaEdge.TOP,SafeAreaEdge.BOTTOM,SafeAreaEdge.START,SafeAreaEdge.END])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0010 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog01(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b8817d26c0880e154a8450a81b43bb1822bd8a42
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0020.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.
+ */
+@CustomDialog
+struct CDialog02 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog02({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaEdge.BOTTOM]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([], [SafeAreaEdge.BOTTOM])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0020 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog02(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b4567cd0fc5c8fb9bef69f91b82d2267bb48fab4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0030.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.
+ */
+@CustomDialog
+struct CDialog03 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog03({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaEdge.BOTTOM,SafeAreaEdge.END]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([], [SafeAreaEdge.BOTTOM,SafeAreaEdge.END])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0030 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog03(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..074c3497803360dac982bafe4ef6cb0e86e2b934
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0040.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.
+ */
+@CustomDialog
+struct CDialog04 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog04({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaEdge.BOTTOM,SafeAreaEdge.START]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([], [SafeAreaEdge.BOTTOM,SafeAreaEdge.START])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0040 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog04(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..121fc46d9a18ba77f70fc34e5cfc88cf2f1c1b83
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0050.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.
+ */
+@CustomDialog
+struct CDialog05 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog05({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaEdge.END]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([], [SafeAreaEdge.END])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0050 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog05(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..253111867bdbe42e0290214a88234cff68d6bcdb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0060.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.
+ */
+@CustomDialog
+struct CDialog06 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog06({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaEdge.START]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([], [SafeAreaEdge.START])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0060 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog06(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0405813d8ae1bbc45f77b33944a3b2cab1d09a1c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0070.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.
+ */
+@CustomDialog
+struct CDialog07 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog07({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaEdge.START,SafeAreaEdge.END]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([], [SafeAreaEdge.START,SafeAreaEdge.END])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0070 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog07(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b302028bb41f8af35526faeaff1c021a32c1e5bb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0080.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.
+ */
+@CustomDialog
+struct CDialog08 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog08({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaEdge.TOP]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([], [SafeAreaEdge.TOP])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0080 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog08(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ab63a56ce81293faf0eb0e6dea425fd39eda18ec
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0090.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.
+ */
+@CustomDialog
+struct CDialog09 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog09({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0090 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog09(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d1f5c8c1d8a3624febe2760d781a701a3262c0c7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0100.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.
+ */
+@CustomDialog
+struct CDialog10 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog10({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaEdge.TOP,SafeAreaEdge.END]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([], [SafeAreaEdge.TOP,SafeAreaEdge.END])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0100 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog10(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..24042c54f9eda4f1e0b56ffa0fa45cd4a230cfc0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0110.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.
+ */
+@CustomDialog
+struct CDialog11 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog11({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaEdge.TOP, SafeAreaEdge.START]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([], [SafeAreaEdge.TOP,SafeAreaEdge.START])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0110 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog11(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..81fe739bd2498ab3e3155f291175d2f5bafd2f3c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0120.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.
+ */
+@CustomDialog
+struct CDialog12 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog12({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("SafeAreaEdges:undefined")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0120 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog12(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9b76aa8c276bcc7a445edf72fa2e99b6cf7403af
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0130.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.
+ */
+@CustomDialog
+struct CDialog13 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog13({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("SafeType:All")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([SafeAreaType.SYSTEM,SafeAreaType.CUTOUT,SafeAreaType.KEYBOARD])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0130 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog13(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..50334e5971ef3732691e763997b544068262ece6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0140.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.
+ */
+@CustomDialog
+struct CDialog14 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog14({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaType.CUTOUT]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([SafeAreaType.CUTOUT])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0140 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog14(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5fa889d74ecbbf68359b737ae048651bfc1d6a0c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0150.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.
+ */
+@CustomDialog
+struct CDialog15 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog15({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaType.CUTOUT,SafeAreaType.KEYBOARD]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([SafeAreaType.CUTOUT,SafeAreaType.KEYBOARD])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0150 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog15(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..35d6df92014374b21362cf2f9881ad2a11bc6d96
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0160.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.
+ */
+@CustomDialog
+struct CDialog16 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog16({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaType.KEYBOARD]")
+ .fontColor("#fff")
+ .fontSize(16)
+ TextInput()
+ .id("textInput")
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([SafeAreaType.KEYBOARD], [])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0160 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog16(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2c55e9aea33a5d987c6f9def07419cf2254750d5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0170.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.
+ */
+@CustomDialog
+struct CDialog17 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog17({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("SafeType:None")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea()
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0170 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog17(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3b5a937db094dd6e5aaae5c4483a97b30c62bd97
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0180.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.
+ */
+@CustomDialog
+struct CDialog18 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog18({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaType.SYSTEM]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([SafeAreaType.SYSTEM], [])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0180 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog18(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c31e8363c114dfa85456bdf36a4a778bd38fa427
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0190.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.
+ */
+@CustomDialog
+struct CDialog19 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog19({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaType.SYSTEM,SafeAreaType.CUTOUT]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([SafeAreaType.SYSTEM,SafeAreaType.CUTOUT], [])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0190 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog19(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dc9a7f752f0c0cd31c8ca20ced897983563ed322
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0200.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.
+ */
+@CustomDialog
+struct CDialog20 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog20({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("[SafeAreaType.SYSTEM,SafeAreaType.KEYBOARD]")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([SafeAreaType.SYSTEM,SafeAreaType.KEYBOARD])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0200 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog20(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f76dafaac8659815f42b431b13f10c134a9302f4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0210.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.
+ */
+@CustomDialog
+struct CDialog21 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog21({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("SafeType:undefined")
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0210 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog21(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2c6634b04548c496dfc767a04ce7c638fda388a3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0220.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.
+ */
+@CustomDialog
+struct CDialog22 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog22({})
+ });
+ build() {
+ Column({space:10}) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text("SafeAreaType[]")
+ .fontColor("#fff")
+ .fontSize(16)
+ TextInput()
+ .id("textInput")
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea([], [])
+ }
+}
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0220 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog22(),
+ autoCancel: true,
+ customStyle: true,
+ alignment:DialogAlignment.Bottom
+ });
+ build() {
+ Column() {
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.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/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b7145c051688bb091debaca7805dae08b4319c39
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0230.ets
@@ -0,0 +1,160 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@CustomDialog
+struct CDialog23 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CDialog23({})
+ });
+ @State safeAreaTypes: SafeAreaType[] = [];
+ @State safeAreaEdges: SafeAreaEdge[] = [];
+
+ build() {
+ Column({ space: 10 }) {
+ Text("CustomDialog")
+ .fontColor("#fff")
+ .fontSize(32)
+ Text("width:100%;height:80%")
+ .fontColor("#fff")
+ .fontSize(16)
+ Text(`SafeAreaType:[${this.safeAreaTypes.toString()}]`)
+ .fontColor("#fff")
+ .fontSize(16)
+ Text(`SafeAreaEdge:[${this.safeAreaEdges.toString()}]`)
+ .fontColor("#fff")
+ .fontSize(16)
+ }
+ .width("100%")
+ .height("80%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor("#ff22ac96")
+ .expandSafeArea(this.safeAreaTypes,this.safeAreaEdges)
+ }
+}
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogInterface0230 {
+ selectColor: ResourceStr = '#007DFF';
+ @State safeAreaTypes: SafeAreaType[] = [];
+ @State safeAreaEdges: SafeAreaEdge[] = [];
+
+ changeDataInSafeAreaTypes(select: boolean, type: SafeAreaType) {
+ if (select) {
+ this.safeAreaTypes.push(type);
+ } else {
+ const index: number = this.safeAreaTypes.findIndex((item: SafeAreaType) => item === type);
+ if (index !== -1) {
+ this.safeAreaTypes.splice(index, 1);
+ }
+ }
+ }
+ changeDataInSafeAreaEdges(select: boolean, type: SafeAreaEdge) {
+ if (select) {
+ this.safeAreaEdges.push(type);
+ } else {
+ const index: number = this.safeAreaEdges.findIndex((item: SafeAreaEdge) => item === type);
+ if (index !== -1) {
+ this.safeAreaEdges.splice(index, 1);
+ }
+ }
+ }
+ @Builder
+ checkBoxForType(name: string, type: SafeAreaType) {
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: name, group: "safeAreaType" })
+ .selectedColor(this.selectColor)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ this.changeDataInSafeAreaTypes(value, type);
+ })
+ Text(name)
+ .TextStyle1()
+ }.margin({ left: 36 })
+ }
+ @Builder
+ checkBoxForEdge(name: string, type: SafeAreaEdge) {
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: name, group: "safeAreaEdge" })
+ .selectedColor(this.selectColor)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ this.changeDataInSafeAreaEdges(value, type);
+ })
+ Text(name).TextStyle1()
+ }.margin({ left: 36 })
+ }
+ @Builder
+ safeAreaTypeFunc() {
+ Column() {
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'safeAreaType' })
+ .id("group1")
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(this.selectColor)
+ Text('SafeAreaType')
+ .TextStyle1()
+ }
+ this.checkBoxForType("SYSTEM", SafeAreaType.SYSTEM)
+ this.checkBoxForType("CUTOUT", SafeAreaType.CUTOUT)
+ this.checkBoxForType("KEYBOARD", SafeAreaType.KEYBOARD)
+ }
+ }
+ @Builder
+ safeAreaEdgeFunc() {
+ Column() {
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'safeAreaEdge' })
+ .id("group2")
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor(this.selectColor)
+ Text('SafeAreaEdge').TextStyle1()
+ }
+ this.checkBoxForEdge("TOP", SafeAreaEdge.TOP)
+ this.checkBoxForEdge("BOTTOM", SafeAreaEdge.BOTTOM)
+ this.checkBoxForEdge("START", SafeAreaEdge.START)
+ this.checkBoxForEdge("END", SafeAreaEdge.END)
+ }
+ }
+
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: CDialog23({
+ safeAreaTypes:this.safeAreaTypes,
+ safeAreaEdges:this.safeAreaEdges
+ }),
+ autoCancel: true,
+ customStyle: true,
+ alignment: DialogAlignment.Bottom
+ });
+
+ build() {
+ Column() {
+ this.safeAreaTypeFunc()
+ this.safeAreaEdgeFunc()
+ Button("Open Dialog")
+ .id("open")
+ .onClick(() => {
+ this.dialogController.open();
+ })
+ }
+ .width("100%")
+ .height("100%")
+ }
+}
+
+@Extend(Text)
+function TextStyle1() {
+ .fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500)
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d4035e2e4090ee38b1a2a913773a9ef3e9b41ef6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0050.ets
@@ -0,0 +1,82 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0050 {
+ @State message: string = '第一个弹窗';
+ private customerController: CustomDialogController = new CustomDialogController({
+ builder: this.dialogConcent,
+ showInSubWindow: true,
+ width: 300,
+ height: 400
+ });
+ private customerController1: CustomDialogController = new CustomDialogController({
+ builder: this.dialogConcent2,
+ showInSubWindow: true,
+ width: 300,
+ height: 400
+ });
+
+ build() {
+ Column({ space: 6 }) {
+
+ Button('弹窗')
+ .id('button')
+ .fontSize(50)
+ .fontWeight(FontWeight.Bold)
+ .alignRules({
+ center: { anchor: '__container__', align: VerticalAlign.Center },
+ middle: { anchor: '__container__', align: HorizontalAlign.Center }
+ })
+ .onClick(() => {
+
+ this.customerController.open();
+ })
+
+ }
+ .height('100%')
+ .width('100%')
+ }
+
+ @Builder
+ dialogConcent() {
+ Column({ space: 4 }) {
+ Text('自定义弹窗:' + this.message)
+ .width('50%')
+
+ Button('再次打开弹窗')
+ .id('input')
+ .onClick(() => {
+ this.message = '第二个弹窗';
+ this.customerController1.open();
+ })
+
+
+ }
+ .justifyContent(FlexAlign.Center)
+ }
+
+ @Builder
+ dialogConcent2() {
+ Column({ space: 4 }) {
+ Text('自定义弹窗2:' + this.message)
+ .width('50%')
+ }
+ .justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5b3348d7834331950d98687910a1d43e025d4da1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0060.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.
+ */
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0060 {
+ private portrait: boolean = true;
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0060({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0060_001')
+ .onClick(() => {
+ this.changeOrientation();
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ setTimeout(() => {
+ this.changeOrientation();
+ }, 3000)
+ }).backgroundColor(0x317aff)
+ }
+ .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));
+ }
+ })
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0060 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..82a2d982a32e9ac65f4014365f0c5998db878747
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0070.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0070 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0070({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0070_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0070 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Button('点我关闭弹窗')
+ .id('UIComponentPopupBoxCustomDialogScenarios0070_002')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0500.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c0f5cd4d06942a9c09280eee3d107edffba96f97
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0500.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0500 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0500({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ maskColor: '#0000ff',
+ alignment: DialogAlignment.Center,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0500_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0500 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0510.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5dd2f8cd7d86879befdc26e26a24c62eb45c381d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0510.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0510 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0510({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ maskColor: 0x33000000,
+ alignment: DialogAlignment.Center,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0510_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0510 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0520.ets
new file mode 100644
index 0000000000000000000000000000000000000000..752f4d96974d141134e4209965ec5e22bdd219de
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0520.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0520 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0520({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ maskColor: Color.Gray,
+ alignment: DialogAlignment.Center,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0520_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0520 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0540.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a624c5276046084d0994498aa64aba64642489b0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0540.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0540 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0540({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0540_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0540 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ Button('点我关闭弹窗')
+ .id('UIComponentPopupBoxCustomDialogScenarios0540_002')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0550.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a882b4907239ee8f701a2a9290d35a640b369688
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0550.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.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0550 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0550({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ showInSubWindow: false,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0550_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0550 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ TextInput()
+ .width('90%')
+ .height(60)
+ .id('UIComponentPopupBoxCustomDialogScenarios0550_002')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0560.ets
new file mode 100644
index 0000000000000000000000000000000000000000..73a0f5b550c88cebfdcd93c82c8688eed331c6d5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0560.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0560 {
+ private customerController:CustomDialogController=new CustomDialogController({
+ builder: this.dialogConcent,
+ showInSubWindow:true,
+ width:300,
+ height:400
+ });
+
+ build() {
+ Column({space:6}) {
+
+ Button('弹窗')
+ .id('button')
+ .fontSize(50)
+ .fontWeight(FontWeight.Bold)
+ .alignRules({
+ center: { anchor: '__container__', align: VerticalAlign.Center },
+ middle: { anchor: '__container__', align: HorizontalAlign.Center }
+ })
+ .onClick(()=>{
+ this.customerController.open();
+ })
+ TextInput()
+ .id('input')
+
+ }
+ .height('100%')
+ .width('100%')
+ }
+
+ @Builder
+ dialogConcent() {
+ Column({ space: 4 }) {
+ Text('自定义弹窗')
+ .width('50%')
+ TextInput()
+ .width('80%')
+ .id('input')
+
+
+ }
+ .justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0570.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bb6e0c5235797def172c1d9057c74fce10545817
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0570.ets
@@ -0,0 +1,103 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0570 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0570({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Center,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0570_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0570 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ TextInput()
+ .width('90%')
+ .height(60)
+ .id('UIComponentPopupBoxCustomDialogScenarios0570_002')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0580.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1525dbc2e0fc96a388b3fbccf97e05a94eb279ea
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0580.ets
@@ -0,0 +1,103 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0580 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0580({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.BottomEnd,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0580_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0580 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ TextInput()
+ .width('90%')
+ .height(60)
+ .id('UIComponentPopupBoxCustomDialogScenarios0580_002')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0590.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a8928ba7aced6482886fb6c04d1cbd14cf572e10
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0590.ets
@@ -0,0 +1,103 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0590 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0590({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.TopEnd,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0590_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0590 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ TextInput()
+ .width('90%')
+ .height(60)
+ .id('UIComponentPopupBoxCustomDialogScenarios0590_002')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0600.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b9e93276f65f83d2c274756e3b11d712308d171b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0600.ets
@@ -0,0 +1,103 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0600 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0600({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Top,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0600_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0600 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ TextInput()
+ .width('90%')
+ .height(60)
+ .id('UIComponentPopupBoxCustomDialogScenarios0600_002')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0610.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fcbb141b75313307af446a45d31f46e67d75a0d5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0610.ets
@@ -0,0 +1,103 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0610 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0610({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.TopStart,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0610_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0610 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ TextInput()
+ .width('90%')
+ .height(60)
+ .id('UIComponentPopupBoxCustomDialogScenarios0610_002')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0620.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6c8903508efd245b6c4421ac50c7033ca10b692c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0620.ets
@@ -0,0 +1,103 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0620 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0620({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.BottomStart,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0620_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0620 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ TextInput()
+ .width('90%')
+ .height(60)
+ .id('UIComponentPopupBoxCustomDialogScenarios0620_002')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0630.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c1762c77c66af29987689ffecc00d9c36ee716bc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0630.ets
@@ -0,0 +1,103 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0630 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0630({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Bottom,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0630_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0630 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ TextInput()
+ .width('90%')
+ .height(60)
+ .id('UIComponentPopupBoxCustomDialogScenarios0630_002')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0640.ets
new file mode 100644
index 0000000000000000000000000000000000000000..89f1c63bbae5cab17e869e7d1b5f98d65d5e355c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0640.ets
@@ -0,0 +1,103 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentPopupBoxCustomDialogScenarios0640 {
+ dialogController: CustomDialogController | null = new CustomDialogController({
+ builder: CustomDialogExampleScenarios_0640({
+ cancel: () => {
+ this.onCancel();
+ },
+ confirm: () => {
+ this.onAccept();
+ }
+ }),
+ cancel: this.existApp,
+ autoCancel: true,
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss();
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss();
+ }
+ },
+ alignment: DialogAlignment.Top,
+ customStyle: false,
+ cornerRadius: 20,
+ })
+
+ aboutToDisappear() {
+ this.dialogController = null;
+ }
+
+ onCancel() {
+ console.info('Callback when the first button is clicked');
+ }
+
+ onAccept() {
+ console.info('Callback when the second button is clicked');
+ }
+
+ existApp() {
+ console.info('Click the callback in the blank area');
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button('click me')
+ .id('UIComponentPopupBoxCustomDialogScenarios0640_001')
+ .onClick(() => {
+ if (this.dialogController != null) {
+ this.dialogController.open();
+ }
+ }).backgroundColor(0x317aff)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogExampleScenarios_0640 {
+ controller?: CustomDialogController;
+ cancel: () => void = () => {
+ }
+ confirm: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('这是自定义弹窗')
+ .fontSize(30)
+ .height(100)
+ TextInput()
+ .width('90%')
+ .height(60)
+ .id('UIComponentPopupBoxCustomDialogScenarios0640_002')
+ Button('点我关闭弹窗')
+ .onClick(() => {
+ if (this.controller != undefined) {
+ this.controller.close();
+ }
+ })
+ .margin(20)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionAnimation/UIComponentPopupBoxModalTransitionAnimation0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionAnimation/UIComponentPopupBoxModalTransitionAnimation0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..070d6b1b72de765824b559eb9f622c5dbca18307
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionAnimation/UIComponentPopupBoxModalTransitionAnimation0020.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 '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionAnimation0020 {
+ @State isShow: boolean = false;
+ @Builder
+ myBuilder() {
+ Column() {
+ Text('BindSheet')
+ .fontSize(50)
+ .fontWeight(FontWeight.Bold)
+ .margin(10)
+ }
+ }
+ build() {
+ Row() {
+ Column() {
+ Button("OpenBindSheet")
+ .id("button")
+ .onClick(() => {
+ this.isShow = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ maskColor:"#800080",
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: true,
+ dragBar: true,
+ onWillAppear:()=>{
+ promptAction.showToast({message:"BindSheet onWillAppear"});
+ },
+ onAppear:()=>{
+ promptAction.showToast({message:"BindSheet onAppear"});
+ },
+ onWillDisappear:()=>{
+ promptAction.showToast({message:"BindSheet onWillDisappear"});
+ },
+ onDisappear:()=>{
+ promptAction.showToast({message:"BindSheet onDisappear"});
+ }
+ })
+ }.width("100%")
+ .backgroundColor("#ff578ddd")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010A.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010A.ets
new file mode 100644
index 0000000000000000000000000000000000000000..df818570e0e0251ddeced58cc74197bd84e4987c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010A.ets
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0010A {
+ @State isShow: boolean = false;
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router1")
+ .id("router1")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010B"
+ });
+ })
+ }
+ }
+ build() {
+ Row() {
+ Column() {
+ Button("OpenSheet")
+ .id("open")
+ .offset({y:100})
+ .onClick(()=>{
+ this.isShow = true;
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: false,
+ dragBar: true,
+ mode: SheetMode.EMBEDDED,
+ title: { title: "sheet1" }
+ })
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010B.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010B.ets
new file mode 100644
index 0000000000000000000000000000000000000000..de0bbb0f453c2be75443d911a1453062b2f78c76
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010B.ets
@@ -0,0 +1,78 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0010B {
+ @State isShow: boolean = false;
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Text("sheet2")
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ build() {
+ Row() {
+ Navigation(){
+ NavRouter(){
+ Button("进入NavDestination")
+ .id("navDestination")
+ NavDestination(){
+ Column() {
+ Button("router2")
+ .id("router2")
+ .fontSize(20)
+ .margin(10)
+ .onClick(()=>{
+ router.replaceUrl({
+ url:"testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010C"
+ });
+ })
+ Button("OpenSheet")
+ .id("button")
+ .onClick(() => {
+ this.isShow = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: 200,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: false,
+ dragBar: true,
+ enableOutsideInteractive: true,
+ mode: SheetMode.EMBEDDED
+ })
+ }
+ }
+ }
+ .title("Page1")
+
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010C.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010C.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d4d718a3cf76b104434b5447f438ae5080440913
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010C.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 { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0010C {
+ @State message: string = 'page2';
+
+ build() {
+ Column() {
+ Text(this.message)
+ .fontSize(50)
+ .fontWeight(FontWeight.Bold)
+ Button("back")
+ .id('back')
+ .onClick(() => {
+ router.back();
+ })
+ }
+ .alignItems(HorizontalAlign.Center)
+ .justifyContent(FlexAlign.Center)
+ .height('100%')
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..95ae6809d72140e79e77376eb549728a552811ed
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0030.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 { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0030 {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 300;
+ @State bindSheetPreferType: SheetType = SheetType.POPUP;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetMode: SheetMode = SheetMode.OVERLAY;
+ @State bindSheetTitle: CustomBuilder | SheetTitleOptions = { title: "BindSheet" };
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("push")
+ .id("push")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B"
+ }, router.RouterMode.Single);
+ })
+ TextInput()
+ .id("textInput1")
+ TextInput()
+ .id("textInput2")
+ TextInput()
+ .id("textInput3")
+ TextArea()
+ .id("textInput4")
+ }
+ }
+
+ build() {
+ Row() {
+ Navigation() {
+ NavRouter() {
+ Button("NavDestination")
+ .id("navDestination")
+ NavDestination() {
+ Button("Bottom")
+ .id("Bottom")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.BOTTOM;
+ })
+ .fontSize(20)
+ .margin(10)
+ Button("Center")
+ .id("Center")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.CENTER;
+ })
+ .fontSize(20)
+ .margin(10)
+
+ Button("Popup")
+ .id("Popup")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.POPUP;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: false,
+ dragBar: true,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ mode: this.bindSheetMode,
+ title: this.bindSheetTitle
+ })
+ }
+ }
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..955302f1902c1dc13868347fc379c49033dd8e6b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0040.ets
@@ -0,0 +1,89 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0040 {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 300;
+ @State bindSheetPreferType: SheetType = SheetType.POPUP;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetTitle: CustomBuilder | SheetTitleOptions = { title: "BindSheet" };
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router1")
+ .id("router1")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B"
+ });
+ })
+ TextInput()
+ .id("textInput1")
+ TextInput()
+ .id("textInput2")
+ TextInput()
+ .id("textInput3")
+ TextArea()
+ .id("textInput4")
+ }
+ }
+
+ build() {
+ Navigation() {
+ NavRouter() {
+ Button("navDestination")
+ .id("navDestination")
+ NavDestination() {
+ Button("No_Mode")
+ .id("open")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.BOTTOM;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: false,
+ dragBar: true,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ title: this.bindSheetTitle
+ })
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050A.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050A.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fccbf7d504083162fb82e525215c722faa95f02b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050A.ets
@@ -0,0 +1,103 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0050A {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 300;
+ @State bindSheetPreferType: SheetType = SheetType.POPUP;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetMode: SheetMode = SheetMode.EMBEDDED;
+ @State bindSheetTitle: CustomBuilder | SheetTitleOptions = { title: "BindSheet" };
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router")
+ .id("router")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B"
+ });
+ })
+ TextInput()
+ .id("textInput1")
+ TextInput()
+ .id("textInput2")
+ TextInput()
+ .id("textInput3")
+ TextArea()
+ .id("textInput4")
+ }
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button("Bottom")
+ .id("Bottom")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.BOTTOM;
+ })
+ .fontSize(20)
+ .margin(10)
+ Button("Center")
+ .id("Center")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.CENTER;
+ })
+ .fontSize(20)
+ .margin(10)
+ Button("Popup")
+ .id("Popup")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.POPUP;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: false,
+ dragBar: true,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ mode: this.bindSheetMode,
+ title: this.bindSheetTitle
+ })
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8ca85049dfcb9bf3a1016660de65097399ecc082
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B.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 { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0050B {
+ @State message: string = 'New Page';
+
+ build() {
+ Column() {
+ Text(this.message)
+ .fontSize(50)
+ .fontWeight(FontWeight.Bold)
+ Button("back")
+ .id('back')
+ .onClick(() => {
+ router.back();
+ })
+ }
+ .alignItems(HorizontalAlign.Center)
+ .justifyContent(FlexAlign.Center)
+ .height('100%')
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0060A.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0060A.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f61b33cffd5388353e98d5c69d1596046c64e7b0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0060A.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 { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0060A {
+ build() {
+ Column({space:10}) {
+ Text("page1")
+ .fontSize(20)
+ Button("turn to page2")
+ .id("push")
+ .onClick(()=>{
+ router.pushUrl({url:"testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0060B"})
+ });
+ }.width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0060B.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0060B.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d3a9ec2d82d88a5eb936e7328ecf8fb9dcaf3043
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0060B.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 { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0060B {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 300;
+ @State bindSheetPreferType: SheetType = SheetType.POPUP;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetMode: SheetMode = SheetMode.OVERLAY;
+ @State bindSheetTitle: CustomBuilder | SheetTitleOptions = { title: "BindSheet" };
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("pop")
+ .id("pop")
+ .onClick(() => {
+ router.back();
+ })
+ TextInput()
+ .id("textInput1")
+ TextInput()
+ .id("textInput2")
+ TextInput()
+ .id("textInput3")
+ TextArea()
+ .id("textInput4")
+ }
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button("Bottom")
+ .id("Bottom")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.BOTTOM;
+ })
+ .fontSize(20)
+ .margin(10)
+ Button("Center")
+ .id("Center")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.CENTER;
+ })
+ .fontSize(20)
+ .margin(10)
+ Button("Popup")
+ .id("Popup")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.POPUP;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: false,
+ dragBar: true,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ mode: this.bindSheetMode,
+ title: this.bindSheetTitle
+ })
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..86b282ac84e2df8334877cc64d547b7d963970a0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0070.ets
@@ -0,0 +1,85 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0070 {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 300;
+ @State bindSheetPreferType: SheetType = SheetType.POPUP;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetTitle: CustomBuilder | SheetTitleOptions = { title: "BindSheet" };
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router1")
+ .id("router1")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B"
+ });
+ })
+ TextInput()
+ .id("textInput1")
+ TextInput()
+ .id("textInput2")
+ TextInput()
+ .id("textInput3")
+ TextArea()
+ .id("textInput4")
+ }
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button("No_Mode")
+ .id("open")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.BOTTOM;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: false,
+ dragBar: true,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ title: this.bindSheetTitle
+ })
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080A.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080A.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f618407957f60078be6cf63c51c30f7a46995f17
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080A.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 { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0080A {
+
+ @State isShow:boolean = false;
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router1")
+ .id("router1")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080B"
+ });
+ })
+ }
+ }
+ build() {
+ Column({space:150}) {
+ Text("index")
+ .fontSize(20)
+ Button("OpenSheet")
+ .id("open")
+ .onClick(()=>{
+ this.isShow = true;
+ })
+ }.width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Start)
+ .alignItems(HorizontalAlign.Center)
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ dragBar: true,
+ mode:SheetMode.OVERLAY,
+ enableOutsideInteractive: true,
+ title: { title:"sheet1" }
+ })
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080B.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080B.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7156d147fce80997547b594beb555ffb8f448293
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080B.ets
@@ -0,0 +1,90 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0080B {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 300;
+ @State bindSheetPreferType: SheetType = SheetType.BOTTOM;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetTitle: SheetTitleOptions = { title: "BindSheet" };
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router2")
+ .id("router2")
+ .onClick(() => {
+ router.replaceUrl({url:"testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080C"});
+ })
+ .fontSize(20)
+ .margin(10)
+ TextInput()
+ .id("textInput1")
+ TextInput()
+ .id("textInput2")
+ TextInput()
+ .id("textInput3")
+ TextArea()
+ .id("textInput4")
+ }
+ }
+
+ build() {
+ Navigation(){
+ NavRouter(){
+ Button("进入NavDestination")
+ .id("navDestination")
+ NavDestination(){
+ Button("OverLay")
+ .id("open")
+ .onClick(() => {
+ this.isShow = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .title("page1")
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: this.bindSheetShowClose,
+ dragBar: true,
+ mode:SheetMode.OVERLAY,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ title: this.bindSheetTitle
+ })
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080C.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080C.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5df6d12ec08883316b0c9989d56ae4b032b63499
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080C.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 { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0080C {
+ @State message: string = 'New Page';
+
+ build() {
+ Column() {
+ Text(this.message)
+ .fontSize(50)
+ .fontWeight(FontWeight.Bold)
+ Button("back")
+ .id('back')
+ .onClick(() => {
+ router.back()
+ })
+ }
+ .alignItems(HorizontalAlign.Center)
+ .justifyContent(FlexAlign.Center)
+ .height('100%')
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e7a5f0c5f19a029a58a223864e7b245b6783303c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0110.ets
@@ -0,0 +1,85 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0110 {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 300;
+ @State bindSheetPreferType: SheetType = SheetType.POPUP;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetMode: SheetMode = SheetMode.EMBEDDED;
+ @State bindSheetTitle: CustomBuilder | SheetTitleOptions = { title: "BindSheet" };
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router")
+ .id("router")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B"
+ });
+ })
+ TextInput()
+ .id("textInput1")
+ TextInput()
+ .id("textInput2")
+ TextInput()
+ .id("textInput3")
+ TextArea()
+ .id("textInput4")
+ }
+ }
+ build() {
+ Row() {
+ Column() {
+ Button("Open BindSheet")
+ .id("open")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.BOTTOM;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: false,
+ dragBar: true,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ mode: this.bindSheetMode,
+ title: this.bindSheetTitle
+ })
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c6edfa95f9686c4611d2a137fd0b1dc49a0ddc93
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0120.ets
@@ -0,0 +1,85 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0110 {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 300;
+ @State bindSheetPreferType: SheetType = SheetType.POPUP;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetMode: SheetMode = SheetMode.OVERLAY;
+ @State bindSheetTitle: CustomBuilder | SheetTitleOptions = { title: "BindSheet" };
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router")
+ .id("router")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B"
+ });
+ })
+ TextInput()
+ .id("textInput1")
+ TextInput()
+ .id("textInput2")
+ TextInput()
+ .id("textInput3")
+ TextArea()
+ .id("textInput4")
+ }
+ }
+ build() {
+ Row() {
+ Column() {
+ Button("Open BindSheet")
+ .id("open")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.BOTTOM;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: false,
+ dragBar: true,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ mode: this.bindSheetMode,
+ title: this.bindSheetTitle
+ })
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6f40945673f7c332ac48325672a0e49f4a17524b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0170.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 { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0170 {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 300;
+ @State bindSheetPreferType: SheetType = SheetType.BOTTOM;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetTitle: SheetTitleOptions = { title: "BindSheet" };
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router1")
+ .id("router1")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B"
+ });
+ })
+ TextInput()
+ .id("textInput1")
+ TextInput()
+ .id("textInput2")
+ TextInput()
+ .id("textInput3")
+ TextArea()
+ .id("textInput4")
+ }
+ }
+
+ build() {
+ Row() {
+ Column({space:10}) {
+ Button("Open BindSheet")
+ .id("open")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.BOTTOM;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: this.bindSheetShowClose,
+ dragBar: true,
+ mode:SheetMode.EMBEDDED,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ title: this.bindSheetTitle
+ })
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2ab5b506ac0335997d9ec6ebf8ddd4bc9ad84075
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0180.ets
@@ -0,0 +1,90 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { promptAction, router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0180 {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 300;
+ @State bindSheetPreferType: SheetType = SheetType.BOTTOM;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetTitle: SheetTitleOptions = { title: "BindSheet" };
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router1")
+ .id("router1")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B"
+ });
+ })
+ TextInput()
+ .id("textInput1")
+ TextInput()
+ .id("textInput2")
+ TextInput()
+ .id("textInput3")
+ TextArea()
+ .id("textInput4")
+ }
+ }
+
+ build() {
+ Navigation(){
+ NavRouter(){
+ Button("NavDesNoFull_EMBEDDED")
+ .id("navDestination")
+ NavDestination(){
+ Button("Open BindSheet")
+ .id("open")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.BOTTOM;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: this.bindSheetShowClose,
+ dragBar: true,
+ mode:SheetMode.EMBEDDED,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ title: this.bindSheetTitle
+ })
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..37e44c1c54d4ac0705f3ae95eac56788ded458e2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0190.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0190 {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 250;
+ @State bindSheetPreferType: SheetType = SheetType.BOTTOM;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetMode: SheetMode = SheetMode.EMBEDDED;
+ @State bindSheetTitle: CustomBuilder | SheetTitleOptions = { title: "BindSheet" };
+ mockData: number[] = new Array(30).fill(0);
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router1")
+ .id("router1")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B"
+ });
+ })
+ List() {
+ ForEach(this.mockData, (item: number, index: number) => {
+ ListItem() {
+ Text("this is text" + index.toString())
+ .fontSize(20)
+ .width("100%")
+ .textAlign(TextAlign.Center)
+ }
+ })
+ }
+ }
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button("openSheet")
+ .id("open")
+ .onClick(() => {
+ this.isShow = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: this.bindSheetBlurStyle,
+ showClose: this.bindSheetShowClose,
+ dragBar: this.bindSheetDragBar,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ title: this.bindSheetTitle
+ })
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..921493453393c7907f97e236cc3c27c0c44b7282
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0210.ets
@@ -0,0 +1,109 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0210 {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 180;
+ @State bindSheetPreferType: SheetType = SheetType.BOTTOM;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetMode: SheetMode = SheetMode.OVERLAY;
+ @State bindSheetTitle: CustomBuilder | SheetTitleOptions = { title: "BindSheet" };
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router1")
+ .id("router1")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B"
+ });
+ })
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ Text("t")
+ }
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button("openSheet")
+ .id("open")
+ .onClick(() => {
+ this.isShow = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: this.bindSheetBlurStyle,
+ showClose: this.bindSheetShowClose,
+ dragBar: this.bindSheetDragBar,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ title: this.bindSheetTitle
+ })
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..029f5abd0730ba58c2726ecc9c3a795369c6de2f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0230.ets
@@ -0,0 +1,112 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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, router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0230 {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 300;
+ @State bindSheetPreferType: SheetType = SheetType.POPUP;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetTitle: SheetTitleOptions = { title: "BindSheet" };
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router1")
+ .id("router1")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B"
+ });
+ })
+ TextInput()
+ .id("textInput1")
+ TextInput()
+ .id("textInput2")
+ TextInput()
+ .id("textInput3")
+ TextArea()
+ .id("textInput4")
+ }
+ }
+
+ build() {
+ Row() {
+ Column({ space: 10 }) {
+ Row() {
+ Text("标题:")
+ TextInput({ text: this.bindSheetTitle.title })
+ .id("title")
+ .onChange((val) => {
+ this.bindSheetTitle.title = val;
+ })
+ }
+ Row() {
+ Text("高度:")
+ TextInput({ text: this.bindSheetHeight.toString() })
+ .id("height")
+ .type(InputType.Number)
+ .onChange((val) => {
+ this.bindSheetHeight = Number(val);
+ })
+ }
+ Row() {
+ Text("是否显示关闭按钮:")
+ Toggle({ type: ToggleType.Switch, isOn: this.bindSheetShowClose })
+ .id("switch")
+ .onChange((val) => {
+ this.bindSheetShowClose = val;
+ })
+ }
+
+ Button("EMBEDDED")
+ .id("open")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.BOTTOM;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: this.bindSheetShowClose,
+ dragBar: true,
+ mode: SheetMode.EMBEDDED,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ title: this.bindSheetTitle
+ })
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..04ed58fe1c43c37d391b7c4f468ca1e9405bab91
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0250.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 { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0250 {
+ @State isShow: boolean = false;
+ @State bindSheetHeight: number = 300;
+ @State bindSheetPreferType: SheetType = SheetType.POPUP;
+ @State bindSheetShowClose: boolean = false;
+ @State bindSheetDragBar: boolean = true;
+ @State bindSheetBlurStyle: BlurStyle = BlurStyle.Thick;
+ @State bindSheetEnableOutsideInteractive: boolean = false;
+ @State bindSheetWidth: Dimension = "100%";
+ @State bindSheetBorderStyle: BorderStyle = BorderStyle.Dashed;
+ @State bindSheetShadow: ShadowOptions = { radius: 0 };
+ @State bindSheetBorderWidth: Dimension = 0;
+ @State bindSheetTitle: CustomBuilder | SheetTitleOptions = { title: "BindSheet" };
+
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router1")
+ .id("router1")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B"
+ });
+ })
+ TextInput()
+ .id("textInput1")
+ TextInput()
+ .id("textInput2")
+ TextInput()
+ .id("textInput3")
+ TextArea()
+ .id("textInput4")
+ }
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Button("EMBEDDED")
+ .id("open")
+ .onClick(() => {
+ this.isShow = true;
+ this.bindSheetPreferType = SheetType.BOTTOM;
+ })
+ .fontSize(20)
+ .margin(10)
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ height: this.bindSheetHeight,
+ width: this.bindSheetWidth,
+ borderWidth: this.bindSheetBorderWidth,
+ preferType: this.bindSheetPreferType,
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: false,
+ dragBar: true,
+ mode:SheetMode.EMBEDDED,
+ enableOutsideInteractive: this.bindSheetEnableOutsideInteractive,
+ shadow: this.bindSheetShadow,
+ title: this.bindSheetTitle
+ })
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..561783ed09dc70f38655f4db2be1407f4626925a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0280.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 { router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupBoxModalTransitionMode0280 {
+ @State isShow: boolean = false;
+
+ @State bindSheetEnableOutsideInteractive: boolean = true;
+ @State bindSheetMode: SheetMode = SheetMode.OVERLAY;
+ @State bindSheetTitle: CustomBuilder | SheetTitleOptions = { title: "BindSheet" };
+ @Builder
+ myBuilder() {
+ Column({ space: 10 }) {
+ Button("router1")
+ .id("router1")
+ .onClick(() => {
+ router.pushUrl({
+ url: "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B"
+ });
+ })
+ }
+ }
+ build() {
+ Row() {
+ Column() {
+ Button("openBindSheet")
+ .id("open")
+ .onClick(() => {
+ this.isShow = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ Button(this.bindSheetMode===SheetMode.OVERLAY?"当前mode:overlay":"当前mode:embedded")
+ .id("change")
+ .onClick(()=>{
+ this.bindSheetMode = this.bindSheetMode===SheetMode.OVERLAY?SheetMode.EMBEDDED:SheetMode.OVERLAY;
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ detents: [220, 330, SheetSize.LARGE],
+ backgroundColor: Color.White,
+ mode:this.bindSheetMode,
+ enableOutsideInteractive:true,
+ title: this.bindSheetTitle
+ })
+ }.width("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionStrong/UIComponentPopupBoxModalTransitionStrong0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionStrong/UIComponentPopupBoxModalTransitionStrong0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..603fc8f5c1d42ed4db4146350b57faec790f0c2b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxModalTransitionStrong/UIComponentPopupBoxModalTransitionStrong0160.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 UIComponentPopupBoxModalTransitionStrong0160 {
+ @State buttonColor: Color = Color.Orange;
+ @State isShow: boolean = false;
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Button('ChangeColor')
+ .backgroundColor(this.buttonColor)
+ .onClick(() => {
+ this.buttonColor = Color.Red;
+ })
+
+ Button('Exit')
+ .onClick(() => {
+ this.isShow = false;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('Enter BindContentCover')
+ .bindContentCover($$this.isShow, this.myBuilder(), {
+ backgroundColor: Color.Gray,
+ transition: TransitionEffect.translate({ x: '100%', y: 0, z: 0 }).animation({ duration: 5000 })
+ })
+ .id('BindContentCover')
+ .onClick(() => {
+ this.isShow = true
+ })
+ }
+ .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/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0340.ets
new file mode 100644
index 0000000000000000000000000000000000000000..253beb3749bda1c088d77d1fcf3b68ebf4c3009c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0340.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 UIComponentPopupBoxSpecificationsShadow0340 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("ShowCalendarPickerDialog")
+ .id('ComponentCalendarPicker')
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ shadow: ShadowStyle.OUTER_DEFAULT_LG
+ })
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .backgroundColor('#FFFFFF')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0350.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7be15152316f271bf3d7e1807271961d16a607df
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0350.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 UIComponentPopupBoxSpecificationsShadow0350 {
+
+ showCalendarPickerDialog(): void {
+ CalendarPickerDialog.show({
+ shadow:ShadowStyle.OUTER_DEFAULT_SM
+ })
+ }
+
+ build() {
+ Column() {
+ Button('CalendarPickerDialog')
+ .onClick(() => {
+ this.showCalendarPickerDialog()
+ })
+ .id('CalendarPickerDialog')
+ }.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/UIComponentPopupBoxSpecificationsShadow0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0b68f1632517076116618519ab9249d51a3f88dc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0360.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 UIComponentPopupBoxSpecificationsShadow0360 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("ShowCalendarPickerDialog")
+ .id('ComponentCalendarPicker')
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ shadow: ShadowStyle.OUTER_DEFAULT_XS
+ })
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .backgroundColor('#FFFFFF')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0370.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6985b1f3f92e8166b07cd0dab0828e74096e9e8c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0370.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 UIComponentPopupBoxSpecificationsShadow0370 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("ShowCalendarPickerDialog")
+ .id('ComponentCalendarPicker')
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ shadow: ShadowStyle.OUTER_FLOATING_MD
+ })
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .backgroundColor('#FFFFFF')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..87b626836dee2687ae2f00655aea5a51a149ed02
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0380.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 UIComponentPopupBoxSpecificationsShadow0380 {
+
+ showCalendarPickerDialog(): void {
+ CalendarPickerDialog.show({
+ shadow:ShadowStyle.OUTER_FLOATING_SM
+ })
+ }
+
+ build() {
+ Column() {
+ Button('CalendarPickerDialog')
+ .onClick(() => {
+ this.showCalendarPickerDialog()
+ })
+ .id('CalendarPickerDialog')
+ }.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/UIComponentPopupBoxSpecificationsShadow0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b8c9af718b04e4e8eebea3e06577920ae8bd734b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0390.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 UIComponentPopupBoxSpecificationsShadow0390 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("ShowCalendarPickerDialog")
+ .id('ComponentCalendarPicker')
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ shadow: ({
+ radius: 30,
+ type: ShadowType.COLOR,
+ color: Color.Black,
+ offsetX: 30,
+ offsetY: 30,
+ fill: true
+ })
+ })
+ })
+ }
+ .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/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b0ee856eb83417b51756be58fcd2749a95ca0df7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0400.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 UIComponentPopupBoxSpecificationsShadow0400 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("ShowCalendarPickerDialog")
+ .id('ComponentCalendarPicker')
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ shadow: ({
+ radius: getContext().resourceManager.getNumber($r('app.integer.integer100')),
+ type: ShadowType.COLOR,
+ color: ColoringStrategy.AVERAGE,
+ offsetX: getContext().resourceManager.getNumber($r('app.integer.string30')),
+ offsetY: getContext().resourceManager.getNumber($r('app.integer.string30')),
+ fill: false
+ })
+ })
+ })
+ }
+ .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/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0420.ets
new file mode 100644
index 0000000000000000000000000000000000000000..989741368a8f0b82c2c3a2da75f34ac30481c389
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0420.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 UIComponentPopupBoxSpecificationsShadow0420 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("ShowCalendarPickerDialog")
+ .id('ComponentCalendarPicker')
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ shadow: ({
+ radius: getContext().resourceManager.getNumber($r('app.integer.integer100')),
+ type: ShadowType.COLOR,
+ color: ColoringStrategy.PRIMARY,
+ offsetX: getContext().resourceManager.getNumber($r('app.integer.string30')),
+ offsetY: getContext().resourceManager.getNumber($r('app.integer.string30')),
+ fill: false
+ })
+ })
+ })
+ }
+ .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/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0430.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c32d14a5d92401fe6959552f522dc0b1262d774e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0430.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 UIComponentPopupBoxSpecificationsShadow0430 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("ShowCalendarPickerDialog")
+ .id('ComponentCalendarPicker')
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ shadow: ({
+ radius: getContext().resourceManager.getNumber($r('app.integer.integer30')),
+ type: ShadowType.BLUR,
+ color: '#FF00FF',
+ offsetX: getContext().resourceManager.getNumber($r('app.integer.integer30')),
+ offsetY: getContext().resourceManager.getNumber($r('app.integer.integer30')),
+ fill: false
+ })
+ })
+ })
+ }
+ .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/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0440.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2b505f7f54da4813c91af68fca6e91648611bf17
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0440.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 UIComponentPopupBoxSpecificationsShadow0440 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("ShowCalendarPickerDialog")
+ .id('ComponentCalendarPicker')
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ 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
+ })
+ })
+ })
+ }
+ .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/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow045.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow045.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e6d0c2c2910cfd5dc04470d4cf2563caf4e446ba
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow045.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 UIComponentPopupBoxSpecificationsShadow045 {
+
+ showDatePickerDialog(): void {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date(),
+ shadow: ShadowStyle.OUTER_DEFAULT_LG
+ })
+ }
+
+ build() {
+ Column() {
+ Button('TextPickerDialog')
+ .onClick(() => {
+ this.showDatePickerDialog()
+ })
+ }.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/UIComponentPopupBoxSpecificationsShadow047.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow047.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ee9b8b70ab65d196bdc6664889a1dd6df234decf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow047.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 UIComponentPopupBoxSpecificationsShadow047 {
+
+ showDatePickerDialog(): void {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date(),
+ shadow: ShadowStyle.OUTER_DEFAULT_XS
+ })
+ }
+
+ build() {
+ Column() {
+ Button('TextPickerDialog')
+ .onClick(() => {
+ this.showDatePickerDialog()
+ })
+ }.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/UIComponentPopupBoxSpecificationsShadow048.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow048.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a9bc8c5544e6155962d4cab10fb3489687429977
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow048.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 UIComponentPopupBoxSpecificationsShadow048 {
+
+ showDatePickerDialog(): void {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date(),
+ shadow: ShadowStyle.OUTER_FLOATING_MD
+ })
+ }
+
+ build() {
+ Column() {
+ Button('TextPickerDialog')
+ .onClick(() => {
+ this.showDatePickerDialog()
+ })
+ }.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/UIComponentPopupBoxSpecificationsShadow049.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow049.ets
new file mode 100644
index 0000000000000000000000000000000000000000..64a911d35e7e54d285da3481014f97126911a944
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow049.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 UIComponentPopupBoxSpecificationsShadow049 {
+
+ showDatePickerDialog(): void {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date(),
+ shadow: ShadowStyle.OUTER_FLOATING_SM
+ })
+ }
+
+ build() {
+ Column() {
+ Button('TextPickerDialog')
+ .onClick(() => {
+ this.showDatePickerDialog()
+ })
+ }.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/UIComponentPopupBoxSpecificationsShadow0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0500.ets
new file mode 100644
index 0000000000000000000000000000000000000000..33416c055225e559f1438c571ac23c7b959aa60e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0500.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 UIComponentPopupBoxSpecificationsShadow0500 {
+
+ showDatePickerDialog(): void {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date(),
+ shadow: ({
+ radius: getContext().resourceManager.getNumber($r("app.integer.integer30")),
+ type: ShadowType.COLOR,
+ color: getContext().resourceManager.getColorSync($r("app.color.txt_color")),
+ offsetX: getContext().resourceManager.getNumber($r("app.integer.integer30")),
+ offsetY: getContext().resourceManager.getNumber($r("app.integer.integer30")),
+ fill: true
+ })
+ })
+ }
+
+ build() {
+ Column() {
+ Button('030 DatePickerDialog')
+ .id('button')
+ .onClick(() => {
+ this.showDatePickerDialog()
+ })
+ }.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/UIComponentPopupBoxSpecificationsShadow0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0510.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a161e9252d6773ad2440473cf0f21c8b63707054
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0510.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 UIComponentPopupBoxSpecificationsShadow0510 {
+
+ showDatePickerDialog(): void {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date(),
+ shadow: ({
+ radius: getContext().resourceManager.getNumber($r("app.integer.integer100")),
+ type: ShadowType.COLOR,
+ color: getContext().resourceManager.getColorSync($r("app.color.gray_color")),
+ offsetX: getContext().resourceManager.getNumber($r("app.integer.integer30")),
+ offsetY: getContext().resourceManager.getNumber($r("app.integer.integer30")),
+ fill: false
+ })
+ })
+ }
+
+ build() {
+ Column() {
+ Button('030 DatePickerDialog')
+ .id('button')
+ .onClick(() => {
+ this.showDatePickerDialog()
+ })
+ }.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/UIComponentPopupBoxSpecificationsShadow052.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow052.ets
new file mode 100644
index 0000000000000000000000000000000000000000..308083c7cab4be344d08d5facbb9ef3ee5eeba27
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow052.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupBoxSpecificationsShadow052 {
+
+ showDatePickerDialog(): void {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date(),
+ 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.showDatePickerDialog()
+ })
+ }.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/UIComponentPopupBoxSpecificationsShadow053.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow053.ets
new file mode 100644
index 0000000000000000000000000000000000000000..288498837d7b06bd1c2cd07e4d5a2ec98c95fa6a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow053.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupBoxSpecificationsShadow053 {
+
+ showDatePickerDialog(): void {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date(),
+ 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.showDatePickerDialog()
+ })
+ }.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/UIComponentPopupBoxSpecificationsShadow055.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow055.ets
new file mode 100644
index 0000000000000000000000000000000000000000..42f7b6e46871c819ac5c7cab99418be10a457a39
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow055.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupBoxSpecificationsShadow055 {
+
+ showDatePickerDialog(): void {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date(),
+ 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.showDatePickerDialog()
+ })
+ }.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/UIComponentPopupBoxSpecificationsShadow0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0560.ets
new file mode 100644
index 0000000000000000000000000000000000000000..30473cec7050249c11ef1f10987a8bdb8b4ec0b3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0560.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 UIComponentPopupBoxSpecificationsShadow0560 {
+
+ showCalendarPickerDialog(): void {
+ CalendarPickerDialog.show({
+ shadow:null
+ })
+ }
+
+ build() {
+ Column() {
+ Button('CalendarPickerDialog')
+ .onClick(() => {
+ this.showCalendarPickerDialog()
+ })
+ .id('CalendarPickerDialog')
+ }.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/UIComponentPopupBoxSpecificationsShadow057.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow057.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e5375ced49fc563c2646af5cd6485eda9f3716f4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow057.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 UIComponentPopupBoxSpecificationsShadow057 {
+
+ showDatePickerDialog(): void {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date(),
+ shadow: null
+ })
+ }
+
+ build() {
+ Column() {
+ Button('TextPickerDialog')
+ .onClick(() => {
+ this.showDatePickerDialog()
+ })
+ }.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/UIComponentPopupBoxSpecificationsShadow0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0850.ets
new file mode 100644
index 0000000000000000000000000000000000000000..813d58c54b3a89cc74d1ff17a1fed471ea11c38c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0850.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 UIComponentPopupBoxSpecificationsShadow0850 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("ShowCalendarPickerDialog")
+ .id('ComponentCalendarPicker')
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ shadow: undefined
+ })
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .backgroundColor('#FFFFFF')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow086.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow086.ets
new file mode 100644
index 0000000000000000000000000000000000000000..25259bd85026b44454ac531b861f30eb56d0dac2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow086.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 UIComponentPopupBoxSpecificationsShadow086 {
+
+ showDatePickerDialog(): void {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date(),
+ shadow: undefined
+ })
+ }
+
+ build() {
+ Column() {
+ Button('TextPickerDialog')
+ .onClick(() => {
+ this.showDatePickerDialog()
+ })
+ }.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/UIComponentPopupBoxSpecificationsShadow0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0920.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4a75b4dfb2f51f92e35db25fa0c8cab45b35da38
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0920.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 UIComponentPopupBoxSpecificationsShadow0920 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("ShowCalendarPickerDialog")
+ .id('ComponentCalendarPicker')
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate
+ })
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .backgroundColor('#FFFFFF')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow093.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow093.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9da500e238022bacc89d2dd15f8886b223ebaaa6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow093.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 UIComponentPopupBoxSpecificationsShadow093 {
+
+ showDatePickerDialog(): void {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date(),
+ })
+ }
+
+ build() {
+ Column() {
+ Button('TextPickerDialog')
+ .onClick(() => {
+ this.showDatePickerDialog()
+ })
+ }.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/UIComponentPopupBoxSpecificationsShadow0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0990.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6c3851fce9e14c953f004b76c30343406a1e1599
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0990.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 UIComponentPopupBoxSpecificationsShadow0990 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ Button("ShowCalendarPickerDialog")
+ .id('ComponentCalendarPicker')
+ .onClick(() => {
+ CalendarPickerDialog.show({
+ selected: this.selectedDate,
+ shadow: ShadowStyle.OUTER_DEFAULT_MD
+ })
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .backgroundColor('#FFFFFF')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow1000.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5473691bed02cbcc9167c8d95ad8987cafabad86
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow1000.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 UIComponentPopupBoxSpecificationsShadow1000 {
+
+ showDatePickerDialog(): void {
+ DatePickerDialog.show({
+ shadow:ShadowStyle.OUTER_DEFAULT_MD
+ })
+ }
+
+ build() {
+ Column() {
+ Button('DatePickerDialog')
+ .onClick(() => {
+ this.showDatePickerDialog()
+ })
+ .id('DatePickerDialog')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..154890b94e179558206f3086e2853612bfe01abc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0050.ets
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxActionSheetInterface0050 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: '弹窗标题',
+ message: 'message',
+ alignment: DialogAlignment.Center,
+ offset: { dx: 10, dy: 10 },
+ confirm: {
+ defaultFocus: true,
+ value: 'Confirm',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: [
+ {
+ title: 'apples',
+ action: () => {
+ console.log('apples')
+ }
+ },
+ {
+ title: 'bananas',
+ action: () => {
+ console.log('bananas')
+ }
+ },
+ {
+ title: 'pears',
+ action: () => {
+ console.log('pears')
+ }
+ }
+ ]
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d15c42d8938fcd2d3134998f5fb421d1e787dccf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0070.ets
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxActionSheetInterface0070 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: '弹窗标题',
+ message: 'message',
+ alignment: DialogAlignment.Center,
+ offset: { dx: '', dy: '' },
+ confirm: {
+ defaultFocus: true,
+ value: 'Confirm',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: [
+ {
+ title: 'apples',
+ action: () => {
+ console.log('apples')
+ }
+ },
+ {
+ title: 'bananas',
+ action: () => {
+ console.log('bananas')
+ }
+ },
+ {
+ title: 'pears',
+ action: () => {
+ console.log('pears')
+ }
+ }
+ ]
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..18f70b4481365919e433dea7e3cae1223fe4b3f9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0080.ets
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxActionSheetInterface0080 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: '弹窗标题',
+ message: 'message',
+ alignment: DialogAlignment.Center,
+ offset: { dx: '10', dy: '10' },
+ confirm: {
+ defaultFocus: true,
+ value: 'Confirm',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: [
+ {
+ title: 'apples',
+ action: () => {
+ console.log('apples')
+ }
+ },
+ {
+ title: 'bananas',
+ action: () => {
+ console.log('bananas')
+ }
+ },
+ {
+ title: 'pears',
+ action: () => {
+ console.log('pears')
+ }
+ }
+ ]
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9f983f75c856d6dedee143662d47bb9284c5b35a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0200.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 UIComponentPopupboxActionSheetInterface0200 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: '弹窗标题',
+ message: 'message',
+ autoCancel: true,
+ confirm: {
+ value: 'Confirm',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ cancel: () => {
+ console.log('actionSheet canceled')
+ },
+ sheets: [
+ {
+ title: 'apples',
+ action: () => {
+ console.log('apples')
+ }
+ },
+ {
+ title: 'bananas',
+ action: () => {
+ console.log('bananas')
+ }
+ },
+ {
+ title: 'pears',
+ action: () => {
+ console.log('pears')
+ }
+ }
+ ]
+ })
+ })
+ Row(){}.backgroundColor(Color.White).width('100%').height(40).id('maskClick')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1620064846c6fd024b502e95d93ef2d64ee95f17
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0210.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 UIComponentPopupboxActionSheetInterface0210 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: '弹窗标题',
+ message: 'message',
+ confirm: {
+ defaultFocus: true,
+ value: $r('app.string.action_sheet_confirm'),
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: [
+ {
+ title: 'apples',
+ action: () => {
+ console.log('apples')
+ }
+ },
+ {
+ title: 'bananas',
+ action: () => {
+ console.log('bananas')
+ }
+ },
+ {
+ title: 'pears',
+ action: () => {
+ console.log('pears')
+ }
+ }
+ ]
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..249211dd61580d930e7c912ec16986502a4ab519
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0220.ets
@@ -0,0 +1,59 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxActionSheetInterface0220 {
+
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'弹窗标题',
+ message:'message',
+ confirm:{
+ defaultFocus: true,
+ value: 'Confirm',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ sheets: [
+ {
+ title: 'apples',
+ action: () => {
+ console.log('apples')
+ }
+ },
+ {
+ title: 'bananas',
+ action: () => {
+ console.log('bananas')
+ }
+ },
+ {
+ title: 'pears',
+ action: () => {
+ console.log('pears')
+ }
+ }
+ ]
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..57b4cef9d724cd6b1dd76ca3525654e66622d196
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0260.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 UIComponentPopupboxActionSheetInterface0260 {
+
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title:'弹窗标题',
+ message:'messagemessagemessagemessagemessagemessagemessagemessage',
+ sheets: [
+ {
+ title: 'apples',
+ action: () => {
+ console.log('apples')
+ }
+ },
+ {
+ title: 'bananas',
+ action: () => {
+ console.log('bananas')
+ }
+ },
+ {
+ title: 'pears',
+ action: () => {
+ console.log('pears')
+ }
+ }
+ ]
+ })
+ })
+ }.width('100%') .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0350.ets
new file mode 100644
index 0000000000000000000000000000000000000000..13c70c01a9272ae2c0f4735ea2413bde1ed41e5e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0350.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 UIComponentPopupboxActionSheetInterface0350 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ ActionSheet.show({
+ title: '弹窗标题弹窗标题弹窗标题弹窗标题弹窗标题弹窗标题弹窗标题弹窗标题弹窗标题弹窗标题',
+ message: 'message',
+ sheets: [
+ {
+ title: 'apples',
+ action: () => {
+ console.log('apples')
+ }
+ },
+ {
+ title: 'bananas',
+ action: () => {
+ console.log('bananas')
+ }
+ },
+ {
+ title: 'pears',
+ action: () => {
+ console.log('pears')
+ }
+ }
+ ]
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3e5ddfe41d9c06df8b39fe682155b8472b7d6a6a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0360.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 { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct UIComponentPopupboxActionSheetInterface0360 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ autoCancel: false,
+ sheets: []
+ })
+ })
+ Row(){}.backgroundColor(Color.White).width('100%').height(40).id('maskClick')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0370.ets
new file mode 100644
index 0000000000000000000000000000000000000000..92a488a2c82059ec74028406f0af3d6894808de0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0370.ets
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct UIComponentPopupboxActionSheetInterface0370 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ autoCancel: true,
+ cancel: () => {
+ console.log("cancel")
+ promptAction.showToast({
+ message: 'apples',
+ duration: 3000
+ });
+ },
+ sheets: []
+ })
+ })
+ Row(){}.backgroundColor(Color.White).width('100%').height(40).id('maskClick')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4856da82b2c8a541da5127b78357b9d010f4d526
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0380.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 UIComponentPopupboxActionSheetInterface0380 {
+ build() {
+ Column() {
+ Row() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.message'),
+ sheets: null,
+ autoCancel: true,
+ alignment: DialogAlignment.Bottom,
+ cancel: () => {
+ console.log("cancel")
+ }
+ })
+ })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ba126735f16d962d5a55a89fab537e34fff00b97
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0390.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 { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct UIComponentPopupboxActionSheetInterface0390 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ autoCancel: true,
+ alignment: DialogAlignment.Bottom,
+ cancel: () => {
+ console.log("cancel")
+ },
+ sheets: 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/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2c784fe43a2170b01809771d2607523cc2d2c19b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0400.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 UIComponentPopupboxActionSheetInterface0400 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ autoCancel: true,
+ alignment: DialogAlignment.Bottom,
+ cancel: () => {
+ console.log("cancel")
+ },
+ sheets: [
+ {
+ title: 'apples',
+ action: () => {
+ console.log('apples')
+ }
+ },
+ {
+ title: 'bananas',
+ action: () => {
+ console.log('bananas')
+ }
+ },
+ {
+ title: 'pears',
+ action: () => {
+ console.log('pears')
+ }
+ }
+ ],
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0410.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1daa469971f0d30fd8225124003e0ee85a10b630
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0410.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 { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct UIComponentPopupboxActionSheetInterface0400 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ autoCancel: true,
+ alignment: DialogAlignment.Bottom,
+ cancel: () => {
+ console.log("cancel")
+ },
+ sheets: [
+ {
+ title: 'apples',
+ action: () => {
+ console.log('apples')
+ promptAction.showToast({
+ message: 'apples',
+ duration: 3000
+ });
+ }
+ },
+ {
+ title: 'bananas',
+ action: () => {
+ console.log('bananas')
+ }
+ },
+ {
+ title: 'pears',
+ action: () => {
+ console.log('pears')
+ }
+ }
+ ],
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0420.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c951fece68c5b5fc5dc9888b4a00fcd9e3e2a9bf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0420.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 UIComponentPopupboxActionSheetInterface0420 {
+ build() {
+ Column() {
+ Row() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.message'),
+ sheets: [],
+ autoCancel: true,
+ alignment: DialogAlignment.Bottom,
+ cancel: () => {
+ console.log("cancel")
+ }
+ })
+ })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0430.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4792eeef0444cdf55d6a95265026b41c5e37f39a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0430.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 UIComponentPopupboxActionSheetInterface0430 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ sheets: [],
+ autoCancel: true,
+ alignment: DialogAlignment.Bottom,
+ offset: { dx: 10, dy: 10 },
+ cancel: () => {
+ console.log("cancel")
+ }
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0440.ets
new file mode 100644
index 0000000000000000000000000000000000000000..000611061ba867c37c24da2c6cb1588b5463ff7f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0440.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 UIComponentPopupboxActionSheetInterface0440 {
+ build() {
+ Column() {
+ Row() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.message'),
+ sheets: [],
+ autoCancel: true,
+ alignment: DialogAlignment.Bottom,
+ offset: { dx: '10px', dy: '10px' },
+ cancel: () => {
+ console.log("cancel")
+ }
+ })
+ })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0450.ets
new file mode 100644
index 0000000000000000000000000000000000000000..01b7ee13c9cf659ec59988d1adca342043cf9823
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0450.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 UIComponentPopupboxActionSheetInterface0450 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ sheets: [],
+ autoCancel: true,
+ alignment: DialogAlignment.BottomEnd,
+ cancel: () => {
+ console.log("cancel")
+ }
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0460.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4a0f67269313acf475139ee226dcc586081d023b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0460.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 UIComponentPopupboxActionSheetInterface0460 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ sheets: [],
+ autoCancel: true,
+ alignment: DialogAlignment.BottomStart,
+ cancel: () => {
+ console.log("cancel")
+ }
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0470.ets
new file mode 100644
index 0000000000000000000000000000000000000000..923eade15c7c93e53ae0ed91c82dd4e6bbb67f14
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0470.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 UIComponentPopupboxActionSheetInterface0470 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ sheets: [],
+ autoCancel: true,
+ alignment: DialogAlignment.Bottom,
+ cancel: () => {
+ console.log("cancel")
+ }
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0480.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c5b8c85067f049a0e3c728b93eb6d140326e8a12
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0480.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 UIComponentPopupboxActionSheetInterface0480 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ sheets: [],
+ autoCancel: true,
+ alignment: DialogAlignment.CenterEnd,
+ cancel: () => {
+ console.log("cancel")
+ }
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0490.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a91ee27b13e2036e0adc1e12d7c7bf0eb0afd393
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0490.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 { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct UIComponentPopupboxActionSheetInterface0490 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ autoCancel: true,
+ alignment: DialogAlignment.CenterStart,
+ cancel: () => {
+ console.log("cancel")
+ },
+ sheets: 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/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0500.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3bf654a3e679654ec82d1a16595249b15ef45281
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0500.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 UIComponentPopupboxActionSheetInterface0500 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ sheets: [],
+ autoCancel: true,
+ alignment: DialogAlignment.Center,
+ cancel: () => {
+ console.log("cancel")
+ }
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0510.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c15bd2367f81e2bcecd24a53007126a09cb66411
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0510.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 { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct UIComponentPopupboxActionSheetInterface0510 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ autoCancel: true,
+ alignment: DialogAlignment.Default,
+ cancel: () => {
+ console.log("cancel")
+ },
+ sheets: []
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0520.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e1f4d45eec35a9c41ddeaf2fae09b4c0a02d4349
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0520.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 UIComponentPopupboxActionSheetInterface0520 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ sheets: [],
+ autoCancel: true,
+ alignment: DialogAlignment.TopEnd,
+ cancel: () => {
+ console.log("cancel")
+ }
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0530.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8199fe6854a39546a2efb6d0c454944c75475e8d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0530.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 UIComponentPopupboxActionSheetInterface0530 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ sheets: [],
+ autoCancel: true,
+ alignment: DialogAlignment.TopStart,
+ cancel: () => {
+ console.log("cancel")
+ }
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0540.ets
new file mode 100644
index 0000000000000000000000000000000000000000..88bed33324629e802162bb425d47099ca878ec84
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0540.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 UIComponentPopupboxActionSheetInterface0540 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ sheets: [],
+ autoCancel: true,
+ alignment: DialogAlignment.Top,
+ cancel: () => {
+ console.log("cancel")
+ }
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0550.ets
new file mode 100644
index 0000000000000000000000000000000000000000..04d26c5aedd3e3256484f3eba1b8536ab0437453
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0550.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 UIComponentPopupboxActionSheetInterface0550 {
+ build() {
+ Column() {
+ Button('show ActionSheet')
+ .id('button')
+ .onClick(() => {
+ this.getUIContext().showActionSheet({
+ title: '弹窗标题',
+ message: $r('app.string.action_sheet_message'),
+ autoCancel: true,
+ alignment: DialogAlignment.Bottom,
+ cancel: () => {
+ console.log("cancel")
+ },
+ confirm: {
+ value: 'OK',
+ action: () => {
+ console.log("Get Alert Dialog handled")
+ }
+ },
+ sheets: [],
+ })
+ })
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a6d00af079e9ef9778fd87378fea66193115721b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0010.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0010 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Bottom
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a5c4856b5f349db635405b1b2987a7b106085330
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0020.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0020 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.BottomEnd
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5d0841fdb50205c7edde1366b608dc6adddccf44
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0030.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0030 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.BottomStart
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..41c31a43965e8b20c82a421a4b45f0f4257b6600
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0040.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0040 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Center
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7f697ff798e2b26a9ce1012d43ab3970800899de
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0050.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0050 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.CenterEnd
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d803f92a701022908c91d88fd04f4736f13cfca6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0060.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0060 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.CenterStart
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9fac68457af42603c1510855bdd29c098dd25ad1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0070.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0070 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Default
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..43b49e175e89298bed68a4b2b4f711989a67ff4c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0080.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0080 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Top
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1aa5c54f684c532b639707643fa27f7ca96e6911
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0090.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0090 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.TopEnd
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5de21b1c168eaab7d692b7542173e862e3204457
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0100.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0100 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.TopStart
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bee4a994a234309aaa4ee184b28582ded7a49a26
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0110.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0110 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ autoCancel: false
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..62107d61fcea89e82aa6a4339516e7a82746c3f1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0120.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0120 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a7fd343e14aa21d12082e38747f35390b95a86cf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0140.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0140 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Center,
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..70c88ef0077b8f9522941ab05760a5af793d7275
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0150.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0150 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Default,
+ gridCount: 4
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f9fe932ca4e56bb716032a0864b9292b134a5bd3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0170.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0170 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: $r('app.string.message'),
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a3d8900c87164d3de8fa73bc684d5d7f9abc1ffb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0180.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0170 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'message',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d4828135614a7b201f90787d511b2b3f842a9a5b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0190.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0190 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World ',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c70bbdc671609ed1b54a5d9bfc4a5ef0dad4a0f0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0200.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0200 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Default,
+ offset: {dx:0, dy:0}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..96f5794e5b3e1a4f7ade856de52044a4caf508eb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0210.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0210 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Default,
+ offset: {dx:10, dy:10}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1e9ebb8d1abe16e71e5a0f270c466acc09fa93f0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0220.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0220 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Default,
+ offset: {dx:-10, dy:-10}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0aeb904557c775e006bb9666dc6aac631d41eb95
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0230.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0240 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ gridCount:100,
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Center,
+ offset:{dx:$r("app.string.dx"),dy:$r("app.string.dy")}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..aa11491179f68f5411a51ab2a37cac3819296ed1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0240.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0240 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ gridCount:100,
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Center,
+ offset:{dx:"",dy:""}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d0d0fe4f708d91ad3018882550671543c4637062
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0250.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0250 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Default,
+ offset: {dx:10, dy:10}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..aff34e05555388219d48ec8700da11a762810e19
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0260.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0260 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Default,
+ offset: {dx:-10, dy:-10}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ff6ed06c8987d3e65614eff9fa1c66fd55965b98
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0270.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0270 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: $r("app.string.value"), action: () => {
+
+ }},
+ alignment: DialogAlignment.Default,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6f57e4f966c7f7a1aec6c3c5fd69c9533f7df10f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0380.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0380 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: $r("app.string.value"), action: () => {
+
+ }},
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e29a4eeef880e5b2b46ea110c8297a51634b376c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0390.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0390 {
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ autoCancel: true,
+ primaryButton: {
+ value: 'Primary', action: () => {
+ }
+ },
+ secondaryButton: {
+ value: 'Secondary', action: () => {
+ }
+ }
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog();
+ })
+ .margin({ top: 100 })
+ .id('showButton')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3db8e7b71b7b2e2356c76f4dc98f1ea82ce64258
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0400.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0400 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: $r("app.string.title"),
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0410.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3aed5e283df658088985b49282e93103944ff057
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0410.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0410{
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Center,
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0420.ets
new file mode 100644
index 0000000000000000000000000000000000000000..930c40119aa1d1630ab4b60bc44c8573277c5621
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0420.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0420 {
+ message: string =
+ 'Hello World Hello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello World' +
+ 'Hello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello World'
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: this.message,
+ primaryButton: {
+ value: 'Primary', action: () => {
+
+ }
+ },
+ secondaryButton: {
+ value: 'Secondary', action: () => {
+
+ }
+ },
+ alignment: DialogAlignment.Center,
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({ top: 100 })
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0660.ets
new file mode 100644
index 0000000000000000000000000000000000000000..57d10f4254bbe349c0b9cb2c12925f79f5a0f2e0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0660.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0660 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: { value: $r("app.string.value"), action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0670.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3ada9dffe56938881c9d89f7a9800b116a9a4ac4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0670.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0670 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: { value: 'Confirm', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0690.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a7c250be26bc6d142b3c5085986dbc0003901c0d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0690.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0690 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ gridCount:100,
+ confirm:{
+ enabled: true,
+ defaultFocus: true,
+ style: DialogButtonStyle.DEFAULT,
+ value: 'Test Confirm',
+ fontColor: Color.Brown,
+ backgroundColor: Color.Blue,
+ action: () => {}
+ },
+ // primaryButton: { value: 'Primary', action: () => {
+ //
+ // }},
+ // secondaryButton: { value: 'Secondary', action: () => {
+ //
+ // }},
+ alignment: DialogAlignment.Center
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0730.ets
new file mode 100644
index 0000000000000000000000000000000000000000..da2cd05a32c83105941589b4c0b2312ab422186e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0730.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0730 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World ',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0740.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ab36274d26f9833de229fb5bd01d20c7d91aaa18
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0740.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0740 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Default,
+ offset: {dx:0, dy:0}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0750.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7a5a16db277823271285939d40bcc92daf5f224b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0750.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIComponentPopupboxAlertDialogInterface0750 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: { value: 'Confirm', action: () => {
+
+ }},
+ alignment: DialogAlignment.Default,
+ offset: {dx:10, dy:10}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0770.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a307a6b6baa7849e1d07da8d4c9949cb985638d0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0770.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIComponentPopupboxAlertDialogInterface0770 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: { value: 'Confirm', action: () => {
+
+ }},
+ alignment: DialogAlignment.Default,
+ offset: {dx:$r("app.string.dx"), dy:$r("app.string.dy")}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0780.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3c5b2b20dc49d8c3cb7ce5309ba5f7b2c6681a66
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0780.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0780 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ offset:{dx:"",dy:""},
+ confirm:{
+ enabled: true,
+ defaultFocus: true,
+ style: DialogButtonStyle.DEFAULT,
+ value: 'Test Confirm',
+ fontColor: Color.Brown,
+ backgroundColor: Color.Blue,
+ action: () => {}
+ },
+ // primaryButton: { value: 'Primary', action: () => {
+ //
+ // }},
+ // secondaryButton: { value: 'Secondary', action: () => {
+ //
+ // }},
+ alignment: DialogAlignment.Center
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0790.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b251d69f81c31cf075f9833a7d06ed8b91dc66de
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0790.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIComponentPopupboxAlertDialogInterface0790 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: { value: 'Confirm', action: () => {
+
+ }},
+ alignment: DialogAlignment.Default,
+ offset: {dx:'10', dy:'10'}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0800.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6c2134c15f70c5c657723c914d8b95f36b22ed80
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0800.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0800 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ offset:{dx:"-10",dy:"-10"},
+ confirm:{
+ enabled: true,
+ defaultFocus: true,
+ style: DialogButtonStyle.DEFAULT,
+ value: 'Test Confirm',
+ fontColor: Color.Brown,
+ backgroundColor: Color.Blue,
+ action: () => {}
+ },
+ // primaryButton: { value: 'Primary', action: () => {
+ //
+ // }},
+ // secondaryButton: { value: 'Secondary', action: () => {
+ //
+ // }},
+ alignment: DialogAlignment.Center
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0830.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1c3059c17b0918572a2d62046583570c8cf8649d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0830.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0830 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0840.ets
new file mode 100644
index 0000000000000000000000000000000000000000..43dd9b4efad9bd6c5433861fbd4fc1a8a686acc7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0840.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0840 {
+ @State log: string = '';
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ cancel:() => {
+ this.log = 'cancel';
+ console.log('cancel')
+ },
+ autoCancel: false
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ Text(this.log)
+ .margin({top: 100})
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0850.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1b6f42e4c145bb51148b848a404fbe1254535752
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0850.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0850 {
+ @State log: string = '';
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ cancel:() => {
+ this.log = 'cancel';
+ console.log('cancel')
+ },
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ Text(this.log)
+ .margin({top: 100})
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0860.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0442cf9ed65d1a4fd99f2ac13c4067a282f000f8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0860.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0860 {
+ @State log: string = '';
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ cancel:() => {
+ this.log = 'cancel';
+ console.log('cancel')
+ },
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ Text(this.log)
+ .margin({top: 100})
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0870.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d102d84a9b61917b3a85936870b2eb97566aeaba
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0870.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 UIComponentPopupboxAlertDialogInterface0870 {
+
+ showAlertDialog(): void {
+ this.getUIContext().showAlertDialog({
+ title:'title',
+ message: '',
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0880.ets
new file mode 100644
index 0000000000000000000000000000000000000000..20639fe9e8c165a485fbb4304d3ba8e7f4d3f55b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0880.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIComponentPopupboxAlertDialogInterface0880 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ message: null,
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0890.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c349e1ee9e95bb6af901d9ba9c28c25837019038
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0890.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0890 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: $r('app.string.message'),
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0900.ets
new file mode 100644
index 0000000000000000000000000000000000000000..164b15d7963f565ff0bea4eb9ce0cec44dd98ad0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0900.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0900 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ message: undefined,
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0910.ets
new file mode 100644
index 0000000000000000000000000000000000000000..88fc4e92ee14b9abe54d226fbda95f2a6d458087
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0910.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0910{
+
+ showAlertDialog(): void {
+ this.getUIContext().showAlertDialog({
+ title: 'Test',
+ message: 'Hello World',
+ autoCancel:true,
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ offset:{dx:-10,dy:-10},
+ alignment: DialogAlignment.Center,
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0920.ets
new file mode 100644
index 0000000000000000000000000000000000000000..77f4f98510a4f4bc52e0bd3689c1a216acb3b36c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0920.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0920 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.BottomEnd,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0930.ets
new file mode 100644
index 0000000000000000000000000000000000000000..026862cbc7c7d7d339012ab6be99786fb367801f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0930.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0930 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.BottomStart,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0940.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f057a433795c33df8bdc0cf631f585d8067a8862
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0940.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0940 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Bottom,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0950.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4b586989a61ec585429384ebe7de9eb2b705a180
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0950.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0950 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.CenterEnd,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0960.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e53006e94819ba3788b8e7f51b359fb5e59aaea3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0960.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0960 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.CenterStart,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0970.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dba1bc5429da1d2ea0a7f44729398c9346e7ae68
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0970.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0970 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Center,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0980.ets
new file mode 100644
index 0000000000000000000000000000000000000000..00d88aa45d627b695932b475ba0ac85fbe1ebe1f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0980.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0980 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Default,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0990.ets
new file mode 100644
index 0000000000000000000000000000000000000000..57a82a031a00d2d1899a74299c4f7716a13c288e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0990.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface0990 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.TopEnd,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1000.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a28228aadeef8671fc5cb9681f645f8613390f4d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1000.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1000 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.TopStart,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..36fa60bc9ca49c133cd5ec24adedacae61d604fd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1010.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1010 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Top,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9aefd6481507a6fe11275b75e95c3fd259089660
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1020.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1020 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Bottom,
+ autoCancel: true,
+ gridCount: 4
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1caf7cdc2e93461bafcbf67cb866766a1faf8b66
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1030.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1030 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Bottom,
+ autoCancel: true,
+ gridCount: -10
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1266aeba3db99972bea1801d4c7192b96874d126
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1040.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1040 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: $r('app.string.title'),
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..546fe4b25a46237e3da7a6339f313211fc70ed6c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1050.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1050 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..07793c7cf040313ad0f2a9e0d417e47bb1d096cd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1060.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1060 {
+ @State log: string = '';
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ cancel:() => {
+ this.log = 'cancel';
+ console.log('cancel')
+ },
+ autoCancel: false
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ Text(this.log)
+ .margin({top: 100})
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..71ed529abe94ad757f6ca8b2ad39558b43bd22b9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1070.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1070 {
+ @State log: string = '';
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ cancel:() => {
+ this.log = 'cancel';
+ console.log('cancel')
+ },
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ Text(this.log)
+ .margin({top: 100})
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..aab390eb7c0035188594e1b48ed0367b0d2393e9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1080.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1080 {
+ @State log: string = '';
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ cancel:() => {
+ this.log = 'cancel';
+ console.log('cancel')
+ },
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ Text(this.log)
+ .margin({top: 100})
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4c9a77b0a1430018983a93cff4d6bcfb479cf176
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1090.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1090 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'button', fontColor: $r('app.color.Blue'), backgroundColor: $r('app.color.Gray'), action: () => {
+ console.log('Button-clicking callback')
+ }},
+ secondaryButton: { value: 'button', fontColor: $r('app.color.Blue'), backgroundColor: $r('app.color.Gray'), action: () => {
+ console.log('Button-clicking callback')
+ }},
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0a8a22b5d0f17818e34e360c262969e7613ba01b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1100.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1100 {
+ @State log: string = '';
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'button', fontColor: 0x0000ff, backgroundColor: 0x878787, action: () => {
+ this.log = 'Button-clicking callback';
+ console.log('Button-clicking callback')
+ }},
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ Text(this.log)
+ .margin({top: 100})
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0cc07c02b33fc3335d62510c99d8daf75db0c9c5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1110.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1110 {
+ @State log: string = '';
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'button', fontColor: $r('app.color.Blue'), backgroundColor: $r('app.color.Gray'), action: () => {
+ this.log = 'Button-clicking callback';
+ console.log('Button-clicking callback')
+ }},
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ Text(this.log)
+ .margin({top: 100})
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9cf4d1a99e8b11927677cabedf3e88e14c7424b1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1120.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1120{
+
+ showAlertDialog(): void {
+ this.getUIContext().showAlertDialog({
+ title: 'Test',
+ message: 'Hello World',
+ autoCancel:true,
+ primaryButton: {
+ value: 'button',
+ fontColor:"#0000ff",
+ backgroundColor:"#787878",
+ action: () => {
+ console.info("Button-clicking callback")
+ }}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5cba980d333abcf7bb71117b6999dd3647c0e06e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1130.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1130 {
+ @State log: string = '';
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'button', fontColor: Color.Blue, backgroundColor: Color.Gray, action: () => {
+ this.log = 'Button-clicking callback';
+ console.log('Button-clicking callback')
+ }},
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ Text(this.log)
+ .margin({top: 100})
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9f78e67868def73a1b1dd79dcccf00bdb34e7ee3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1140.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1140 {
+ @State log: string = '';
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ secondaryButton: { value: 'button', fontColor: 0x0000ff, backgroundColor: 0x787378, action: () => {
+ this.log = 'Button-clicking callback';
+ console.log('Button-clicking callback')
+ }},
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ Text(this.log)
+ .margin({top: 100})
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..15924a93bf774d824a12e3956e1bcd435cbae57a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1150.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1150 {
+ @State log: string = '';
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ secondaryButton: { value: 'button', fontColor: Color.Blue, backgroundColor: Color.Gray, action: () => {
+ this.log = 'Button-clicking callback';
+ console.log('Button-clicking callback')
+ }},
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ Text(this.log)
+ .margin({top: 100})
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..787e5d526ec5c8e43a770bd8b2443d3fd6bca3df
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1160.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 UIComponentPopupboxAlertDialogInterface1160 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ secondaryButton: { value: 'button', fontColor: '#0000FF', backgroundColor: '#787878', action: () => {
+ console.log('Button-clicking callback')
+ }},
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b2d2bb94c4ce8c11c913379fc5686df2da63e40a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1170.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1170 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ autoCancel:true,
+ secondaryButton: {
+ value: 'button',
+ fontColor:Color.Blue,
+ backgroundColor:Color.Gray,
+ action: () => {
+ console.info("Button-clicking callback")
+ }},
+ alignment: DialogAlignment.Center
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d212054713199d810c8e96d15acc02cf6758d4fa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1180.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 UIComponentPopupboxAlertDialogInterface1180 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ message: '',
+ confirm: { value: 'Confirm', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c2b08c9d73668d93e15b57b5d6e7f778922b7790
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1190.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 UIComponentPopupboxAlertDialogInterface1190 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ message: null,
+ confirm: { value: 'Confirm', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..285de585c3794f93e1d5bae8a5258ab4eb061ddd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1210.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 UIComponentPopupboxAlertDialogInterface1210 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ message: undefined,
+ confirm: { value: 'Confirm', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9af2735d45b9bc76bc110a821ab63b9166d5080d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1220.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1220 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: { value: 'Confirm', action: () => {
+
+ }},
+ alignment: DialogAlignment.Bottom,
+ offset: {dx:-10, dy:-10},
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e40b5c46c1c1f1db90ea02bf258f07480fe86cf1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1230.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1230 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.BottomEnd,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0209ea379dfce76b0b1b4716879bf67140bb1bfd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1240.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1240 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.BottomStart,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..53ab5f0430018271fbf2ec6c5279882904a5d44f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1250.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1250 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Bottom,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..77d1d69ad4861647ae06b210f3de27230be1adf2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1260.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1260 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.CenterEnd,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b49c39c1507986c68e1e486547caed5f17773df0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1270.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1270 {
+
+ showAlertDialog(): void {
+
+ this.getUIContext().showAlertDialog({
+ title: 'Test',
+ message: 'Hello World',
+ autoCancel:true,
+ alignment: DialogAlignment.CenterStart
+ })
+ // AlertDialog.show({
+ // title: 'Test',
+ // message: 'Hello World',
+ // autoCancel:true,
+ // alignment: DialogAlignment.CenterStart
+ // })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d43c457ac8ba6d883d48efcd6ba5da8925389df3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1280.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1280 {
+
+ showAlertDialog(): void {
+ this.getUIContext().showAlertDialog({
+ title: 'Test',
+ message: 'Hello World',
+ autoCancel:true,
+ alignment: DialogAlignment.Center
+ })
+ // AlertDialog.show({
+ // title: 'Test',
+ // message: 'Hello World',
+ // autoCancel:true,
+ // alignment: DialogAlignment.Center
+ // })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..09cfdc909b5c0623ff40f91dde3f9b1ca2938eca
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1290.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1290 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Default,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b9004499a75337eb46f3f0a083b80fbca846f94d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1300.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1300 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.TopEnd,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c119401a7351a7294c8935ba550f56b52dcc5855
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1310.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1310 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.TopStart,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7d179ce823a064c1b9a24a5e3d091784c14b1552
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1320.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1320 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ alignment: DialogAlignment.Top,
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1330.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5723e98012573082372d0bba84f25b4a9b3cfe0f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1330.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1330 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: $r('app.string.title'),
+ message: 'hello world',
+ autoCancel:true,
+ alignment:DialogAlignment.Bottom,
+ gridCount:4,
+ confirm: { value: 'Confirm', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ }.width(300).height(600).id('page')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1340.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2df0de81d0c92d46034f8cbb530100b9e2117bb4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1340.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1340 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: $r('app.string.title'),
+ message: 'hello world',
+ autoCancel:true,
+ alignment:DialogAlignment.Bottom,
+ gridCount:-10,
+ confirm: { value: 'Confirm', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ }.width(300).height(600).id('page')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1350.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6b1759d249646f0232232dc07a6c914b8015775c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1350.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1350 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: $r('app.string.title'),
+ message: null,
+ confirm: { value: 'Confirm', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1a46d496105f2ddfcf3a8e2f40168181ab1dfadf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1360.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1360 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: null,
+ confirm: { value: 'Confirm', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1370.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f8b30ce49053d986a7e24d23c60348decec51013
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1370.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1370 {
+ showAlertDialog(): void {
+
+ this.getUIContext().showAlertDialog({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: {
+ enabled: true,
+ defaultFocus: true,
+ value: 'button',
+ fontColor: 0x0000ff,
+ backgroundColor: 0x787878,
+ action: () => {
+ console.info("Button-clicking callback")
+ }
+ },
+
+ alignment: DialogAlignment.Center
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({ top: 100 })
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7080c595707e7f351fa2c75e6a5a0365b28bf633
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1380.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1380 {
+ @State log: string = '';
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: { value: 'button', fontColor: $r('app.color.Blue'), backgroundColor: $r('app.color.Gray'), action: () => {
+ this.log = 'Button-clicking callback';
+ console.log('Button-clicking callback')
+ }},
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ Text(this.log)
+ .margin({top: 100})
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4ca52bef6bb136b39db7a3994665941cbffb3725
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1390.ets
@@ -0,0 +1,81 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1390 {
+
+ showAlertDialog(): void {
+ this.getUIContext().showAlertDialog({
+ title: 'Test',
+ message: 'Hello World',
+ gridCount:100,
+ confirm:{
+ enabled: true,
+ defaultFocus: true,
+ style: DialogButtonStyle.DEFAULT,
+ value: 'TestConfirm',
+ fontColor: "#0000ff",
+ backgroundColor: "#787878",
+ action: () => {
+ console.info("Button-clicking callback")
+ }
+ },
+ // primaryButton: { value: 'Primary', action: () => {
+ //
+ // }},
+ // secondaryButton: { value: 'Secondary', action: () => {
+ //
+ // }},
+ alignment: DialogAlignment.Center
+ })
+ // AlertDialog.show({
+ // title: 'Test',
+ // message: 'Hello World',
+ // gridCount:100,
+ // confirm:{
+ // enabled: true,
+ // defaultFocus: true,
+ // style: DialogButtonStyle.DEFAULT,
+ // value: 'TestConfirm',
+ // fontColor: "#0000ff",
+ // backgroundColor: "#787878",
+ // action: () => {
+ // console.info("Button-clicking callback")
+ // }
+ // },
+ // // primaryButton: { value: 'Primary', action: () => {
+ // //
+ // // }},
+ // // secondaryButton: { value: 'Secondary', action: () => {
+ // //
+ // // }},
+ // alignment: DialogAlignment.Center
+ // })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButtons')
+ }.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/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..006b8d99be92c9f51020d085d43f9e27d795f03d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1400.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogInterface1400 {
+ @State log: string = '';
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: { value: 'button', fontColor: Color.Blue, backgroundColor: Color.Gray, action: () => {
+ this.log = 'Button-clicking callback';
+ console.log('Button-clicking callback')
+ }},
+ autoCancel: true
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ Text(this.log)
+ .margin({top: 100})
+ }.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/UIComponentPopupboxAlertDialogScenarios/UIComponentPopupboxAlertDialogScenarios0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogScenarios/UIComponentPopupboxAlertDialogScenarios0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cf74ba65d57652080b1efcc4b478a2ae4775c640
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogScenarios/UIComponentPopupboxAlertDialogScenarios0060.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogScenarios0060 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxAlertDialogScenarios/UIComponentPopupboxAlertDialogScenarios0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogScenarios/UIComponentPopupboxAlertDialogScenarios0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cc50ba67440756209c923fc1ddfb44cda2e74483
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxAlertDialogScenarios/UIComponentPopupboxAlertDialogScenarios0070.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxAlertDialogScenarios0070 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxEnter/UIComponentPopupboxEnter0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..731a9459cd32513bdf2e5c7494a78b886b9a0539
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0020.ets
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxEnter0020 {
+
+ showActionSheet(): void {
+ ActionSheet.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: {
+ value: 'OK',
+ defaultFocus: true,
+ action: () => {
+
+ }
+ },
+ sheets: [
+ {title: 'One', action: () => {
+
+ }},
+ {title: 'Two', action: () => {
+
+ }},
+ {title: 'Three', action: () => {
+
+ }}
+ ],
+ alignment: DialogAlignment.TopEnd
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showActionSheet()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxEnter/UIComponentPopupboxEnter0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..483d4cf522b1e206232902c5482e8acde5859ee9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0030.ets
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxEnter0030 {
+
+ showActionSheet(): void {
+ ActionSheet.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: {
+ value: 'OK',
+ defaultFocus: true,
+ action: () => {
+
+ }
+ },
+ sheets: [
+ {title: 'One', action: () => {
+
+ }},
+ {title: 'Two', action: () => {
+
+ }},
+ {title: 'Three', action: () => {
+
+ }}
+ ],
+ alignment: DialogAlignment.CenterEnd
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showActionSheet()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxEnter/UIComponentPopupboxEnter0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..176a541923d08dbf38c89b65b9758bcb173147a8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0040.ets
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxEnter0040 {
+
+ showActionSheet(): void {
+ ActionSheet.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: {
+ value: 'OK',
+ defaultFocus: true,
+ action: () => {
+
+ }
+ },
+ sheets: [
+ {title: 'One', action: () => {
+
+ }},
+ {title: 'Two', action: () => {
+
+ }},
+ {title: 'Three', action: () => {
+
+ }}
+ ],
+ offset: {dx: 30, dy: 0}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showActionSheet()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxEnter/UIComponentPopupboxEnter0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fbdc6c4cfa1e13aff49b7c32fc0d7443b658a759
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0050.ets
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxEnter0050 {
+
+ showActionSheet(): void {
+ ActionSheet.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: {
+ value: 'OK',
+ defaultFocus: true,
+ action: () => {
+
+ }
+ },
+ sheets: [
+ {title: 'One', action: () => {
+
+ }},
+ {title: 'Two', action: () => {
+
+ }},
+ {title: 'Three', action: () => {
+
+ }}
+ ],
+ offset: {dx: -30, dy: 0}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showActionSheet()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxEnter/UIComponentPopupboxEnter0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b3c82d0f6d4771474d3ad443d01e0f6692331db8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0060.ets
@@ -0,0 +1,82 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxEnter0060 {
+
+ showActionSheet1(): void {
+ ActionSheet.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: {
+ value: 'OK',
+ defaultFocus: true,
+ action: () => {
+ }
+ },
+ sheets: [
+ {title: 'One', action: () => {
+
+ }},
+ {title: 'Two', action: () => {
+
+ }},
+ {title: 'Three', action: () => {
+
+ }}
+ ],
+ offset: {dx: 0, dy: 0}
+ })
+ }
+ showActionSheet2(): void {
+ ActionSheet.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: {
+ value: 'OK',
+ defaultFocus: false,
+ action: () => {
+ }
+ },
+ sheets: [
+ {title: 'One', action: () => {
+
+ }},
+ {title: 'Two', action: () => {
+
+ }},
+ {title: 'Three', action: () => {
+
+ }}
+ ],
+ offset: {dx: 0, dy: -300}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showActionSheet1()
+ this.showActionSheet2()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxEnter/UIComponentPopupboxEnter0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..eb3bcb3540b65aa39f3c5726b6c0c7fe847ef348
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0070.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 UIComponentPopupboxEnter0070 {
+ showActionSheet1(): void {
+ ActionSheet.show({
+ title: 'Test',
+ message: 'Hello World',
+ showInSubWindow:true,
+ subtitle:'Test1',
+ confirm: {
+ value: 'OK',
+ defaultFocus: true,
+ action: () => {
+ }
+ },
+ sheets: [
+ {title: 'One', action: () => {
+ }},
+ {title: 'Two', action: () => {
+
+ }},
+ {title: 'Three', action: () => {
+
+ }}
+ ],
+ offset: {dx: 0, dy: 0}
+ })
+ }
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showActionSheet1()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxEnter/UIComponentPopupboxEnter0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b49395b476f2e0d301099a51c4af7bd64aed6e7d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0090.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 UIComponentPopupboxEnter0090 {
+ showActionSheet1(): void {
+ ActionSheet.show({
+ title: 'Test',
+ message: 'Hello World',
+ subtitle:'Test1',
+ confirm: {
+ value: 'OK',
+ defaultFocus: false,
+ action: () => {
+ AlertDialog.show({message:'success'})
+ }
+ },
+ sheets: [
+ {title: 'One', action: () => {
+ }},
+ {title: 'Two', action: () => {
+
+ }},
+ {title: 'Three', action: () => {
+
+ }}
+ ],
+ offset: {dx: 0, dy: 0}
+ })
+ }
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showActionSheet1()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxEnter/UIComponentPopupboxEnter0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c1a606aead88399f9f1519eb660297f20ee8eceb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0110.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxEnter0110 {
+
+ showActionSheet(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: {
+ value: 'OK',
+ defaultFocus: true,
+ action: () => {
+
+ }
+ },
+ alignment: DialogAlignment.TopEnd
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showActionSheet()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxEnter/UIComponentPopupboxEnter0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d3930c4bb72e7b76c0f51770983f2ebbeefb86e5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0120.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxEnter0120 {
+
+ showActionSheet(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: {
+ value: 'OK',
+ defaultFocus: true,
+ action: () => {
+
+ }
+ },
+ alignment: DialogAlignment.CenterEnd
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showActionSheet()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxEnter/UIComponentPopupboxEnter0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c2d4496d604bff2dd74ab3c83e499a997159c58f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0130.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxEnter0130 {
+
+ showActionSheet(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: {
+ value: 'OK',
+ defaultFocus: true,
+ action: () => {
+
+ }
+ },
+ offset: {dx: 30, dy: 0}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showActionSheet()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxEnter/UIComponentPopupboxEnter0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2a33cbb4492981c678717d2d582900d69ba27380
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0140.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxEnter0140 {
+
+ showActionSheet(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: {
+ value: 'OK',
+ defaultFocus: true,
+ action: () => {
+
+ }
+ },
+ offset: {dx: -30, dy: 0}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showActionSheet()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxEnter/UIComponentPopupboxEnter0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..438fa8524c677cac7631c74841985e2383d1f526
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0150.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxEnter0150 {
+
+ showAlertDialog1(): void {
+ AlertDialog.show({
+ title:'title1',
+ message:'message1',
+ primaryButton: {
+ value: 'cancel',
+ enabled:true,
+ action: () => {
+ console.info('Callback when the first button is clicked')
+ }
+ },
+ secondaryButton: {
+ enabled: true,
+ defaultFocus: true,
+ style: DialogButtonStyle.HIGHLIGHT,
+ value: 'ok',
+ action: () => {
+ console.info('Callback when the second button is clicked')
+ }
+ },
+ cancel: () => {
+ console.info('Closed callbacks')
+ },
+ offset: {dx: 0, dy: 0}
+ })
+ }
+ showAlertDialog2(): void {
+ AlertDialog.show({
+ title:'title2',
+ message:'message2',
+ primaryButton: {
+ value: 'cancel',
+ enabled:true,
+ action: () => {
+ console.info('Callback when the first button is clicked')
+ }
+ },
+ secondaryButton: {
+ enabled: true,
+ defaultFocus: false,
+ style: DialogButtonStyle.HIGHLIGHT,
+ value: 'ok',
+ action: () => {
+ console.info('Callback when the second button is clicked')
+ }
+ },
+ cancel: () => {
+ console.info('Closed callbacks')
+ },
+ offset: {dx: 0, dy: -300}
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showAlertDialog1()
+ this.showAlertDialog2()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxEnter/UIComponentPopupboxEnter0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b2be4d4bf3a0696f31c1c89332503668155e477c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0160.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxEnter0160 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title:'title',
+ message:'message',
+ showInSubWindow:true,
+ primaryButton: {
+ value: 'cancel',
+ enabled:true,
+ action: () => {
+ console.info('Callback when the first button is clicked')
+ }
+ },
+ secondaryButton: {
+ enabled: true,
+ defaultFocus: true,
+ style: DialogButtonStyle.HIGHLIGHT,
+ value: 'ok',
+ action: () => {
+ console.info('Callback when the second button is clicked')
+ }
+ },
+ cancel: () => {
+ console.info('Closed callbacks')
+ },
+ offset: {dx: 0, dy: 0}
+ })
+ }
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .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/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest0530.ets
new file mode 100644
index 0000000000000000000000000000000000000000..94efa214baf392cf67bfb5c9b8bc50abb3595743
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest0530.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxMenuMenutest0530 {
+ @State select: boolean = true;
+ @Builder
+ MyMenu(){
+ Menu() {
+ MenuItem(
+ { startIcon: $r("app.media.icon"),
+ content: "菜单选项" ,
+ }
+ )
+
+
+ }
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Text('click to show menu')
+ .id('button')
+ .fontSize(30)
+ .fontWeight(FontWeight.Bold)
+ }
+ .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/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest1130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest1130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6b3440e5c6b714a110fe55593aabbad2de3c8fab
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest1130.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxMenuMenutest1130 {
+ @State select: boolean = true;
+ @Builder
+ MyMenu(){
+ Menu() {
+ MenuItem(
+ { startIcon: $r("app.media.icon"),
+ content: "菜单选项" ,
+ }
+ )
+ .labelFont({weight:FontWeight.Normal})
+
+
+ }
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Text('click to show menu')
+ .id('button')
+ .fontSize(30)
+ .fontWeight(FontWeight.Bold)
+ }
+ .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/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest2010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest2010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2e55345e70ee482a73d702d4810bf86be97e24c6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest2010.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 UIComponentPopupboxMenuMenutest2010 {
+ @State select: boolean = true;
+ private iconStr: ResourceStr = $r("app.media.icon");
+ private iconStr2: ResourceStr = $r("app.media.icon");
+
+ @Builder
+ SubMenu() {
+ Menu() {
+ MenuItem({ content: "复制", labelInfo: "Ctrl+C" })
+ MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" })
+ }
+ }
+
+ @Builder
+ MyMenu(){
+ Menu() {
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ .enabled(false)
+ MenuItem({
+ startIcon: this.iconStr,
+ content: "菜单选项",
+ endIcon: this.iconStr2,
+ builder: ():void=>this.SubMenu()
+ })
+ MenuItemGroup({ header: '小标题' }) {
+ MenuItem({
+ startIcon: this.iconStr,
+ content: "菜单选项",
+ endIcon: this.iconStr2,
+ builder: ():void=>this.SubMenu()
+ })
+ MenuItem({
+ startIcon: $r("app.media.app_icon"),
+ content: "菜单选项",
+ endIcon: this.iconStr2,
+ builder: ():void=>this.SubMenu()
+ })
+ }
+ MenuItem({
+ startIcon: this.iconStr,
+ content: "菜单选项",
+ })
+ }
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Text('click to show menu')
+ .id('button')
+ .fontSize(30)
+ .fontWeight(FontWeight.Bold)
+ }
+ .bindMenu(this.MyMenu,{offset:{x: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/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest2130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest2130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..56a72331d817b22fbc8d23eaeeebdfe1b4efda76
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest2130.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 UIComponentPopupboxMenuMenutest2130 {
+ @State select: boolean = true;
+ private iconStr: ResourceStr = $r("app.media.icon");
+ private iconStr2: ResourceStr = $r("app.media.icon");
+
+ @Builder
+ SubMenu() {
+ Menu() {
+ MenuItem({ content: "复制", labelInfo: "Ctrl+C" })
+ MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" })
+ }
+ }
+
+ @Builder
+ MyMenu(){
+ Menu() {
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ .enabled(false)
+ MenuItem({
+ startIcon: this.iconStr,
+ content: "菜单选项",
+ endIcon: this.iconStr2,
+ builder: ():void=>this.SubMenu()
+ })
+ MenuItemGroup({ header: '小标题' }) {
+ MenuItem({
+ startIcon: this.iconStr,
+ content: "菜单选项",
+ endIcon: this.iconStr2,
+ builder: ():void=>this.SubMenu()
+ })
+ MenuItem({
+ startIcon: $r("app.media.app_icon"),
+ content: "菜单选项",
+ endIcon: this.iconStr2,
+ builder: ():void=>this.SubMenu()
+ })
+ }
+ MenuItem({
+ startIcon: this.iconStr,
+ content: "菜单选项",
+ })
+ }
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Text('click to show menu')
+ .id('button')
+ .fontSize(30)
+ .fontWeight(FontWeight.Bold)
+ }
+ .bindMenu(this.MyMenu,{placement:Placement.LeftBottom})
+ .width('100%')
+ }
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/SubWindow.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/SubWindow.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1dac015987b323f3b29008ad00590b0855046f94
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/SubWindow.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 SubWindow {
+ @State isShow: boolean = false;
+
+ @Builder
+ myBuilder() {
+ Text('ccc')
+ }
+
+ build() {
+ Column() {
+ Button('Show BindSheet02')
+ .margin({ top: 20 })
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 50],
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Pink)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/UIComponentPopupboxModalTransitionOverrunsUIExtension0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/UIComponentPopupboxModalTransitionOverrunsUIExtension0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b787ed2e40a06bb3393393f0f3f7a8e3769dacd7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/UIComponentPopupboxModalTransitionOverrunsUIExtension0040.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+
+@Entry
+@Component
+struct UIComponentPopupboxModalTransitionOverrunsUIExtension0040 {
+ @State isShow: boolean = false;
+ private portrait: boolean = true;
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Text('aaa')
+ }
+ }
+
+ build() {
+ Column() {
+ Button('Show BindSheet01')
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 50],
+ preferType: SheetType.BOTTOM,
+ backgroundColor: Color.Gray
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ Button('切换横屏')
+ .id('button')
+ .onClick(() => {
+ this.changeOrientation();
+ });
+ }
+ .width('100%')
+ .height('100%')
+ .padding({ top: 30 })
+ }
+
+ private changeOrientation() {
+ //获取上下文
+ //var context = getContext(this) as any
+ // 获取上下文,使用common模块
+ 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/UIComponentPopupboxModalTransitionOverrunsUIExtension/UIComponentPopupboxModalTransitionOverrunsUIExtension0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/UIComponentPopupboxModalTransitionOverrunsUIExtension0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..23fd70375386528f487290496abff173c0c9352c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/UIComponentPopupboxModalTransitionOverrunsUIExtension0060.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 UIComponentPopupboxModalTransitionOverrunsUIExtension0060 {
+ @State isShow: boolean = false;
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Text('aaa')
+ }
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Button('Show BindSheet01')
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 50],
+ preferType: SheetType.BOTTOM,
+ backgroundColor: Color.Gray,
+ showClose: false
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+
+ UIExtension();
+ }
+ .width(200)
+ .height(400)
+ .justifyContent(FlexAlign.Center)
+ }
+}
+
+@Component
+struct UIExtension {
+ @State isShow: boolean = false;
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Text('bbb')
+ }
+ }
+
+ build() {
+ Column() {
+ Button('Show BindSheet02')
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 50],
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e0f37c6b776d9154d665ed5f41242536ce144453
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0230.ets
@@ -0,0 +1,47 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0230 {
+
+ @State isShow: boolean = false;
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bindContentCover")
+ .id('button1')
+ .margin({top: 20})
+ .bindContentCover($$this.isShow, this.myBuilder, {
+ modalTransition: ModalTransition.ALPHA
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.width('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a9e59097a701c8808025cab80285caf2ab781b84
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0240.ets
@@ -0,0 +1,47 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0240 {
+
+ @State isShow: boolean = false;
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("bindContentCover")
+ .id('button1')
+ .margin({top: 20})
+ .bindContentCover($$this.isShow, this.myBuilder, {
+ modalTransition: ModalTransition.DEFAULT
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.width('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9509029d171795b345c1ea1b88e504b4144402e0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0260.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 UIComponentPopupboxModaltransitionBindcontentcoveret0260 {
+
+ @State count: number = 0;
+ @State isShow: boolean = false;
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Count:${this.count}`)
+ Button("bindContentCover")
+ .id('button1')
+ .margin({top: 20})
+ .bindContentCover($$this.isShow, this.myBuilder, {
+ modalTransition: ModalTransition.ALPHA,
+ onAppear: () => {
+ this.count += 1
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.width('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..33a531fb4d3f36784e5d7633d72f331dc2036d90
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0270.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 UIComponentPopupboxModaltransitionBindcontentcoveret0270 {
+
+ @State count: number = 0;
+ @State isShow: boolean = false;
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Count:${this.count}`)
+ Button("bindContentCover")
+ .id('button1')
+ .margin({top: 20})
+ .bindContentCover($$this.isShow, this.myBuilder, {
+ modalTransition: ModalTransition.DEFAULT,
+ onAppear: () => {
+ this.count += 1
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.width('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..84c29b898a2b6cfaa296d4e3df391a117067af17
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0400.ets
@@ -0,0 +1,87 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0400 {
+ @State isShow: boolean = false;
+
+ @Builder
+ bindSheetBuilder() {
+ Column() {
+ Text("半模态弹窗")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("切换为主页面")
+ .id("home")
+ .ButtonStyles400()
+ .onClick(()=>{
+ this.isShow = false;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover1() {
+ Column() {
+ Text("第一个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ build() {
+ Column({ space: 15 }) {
+ Text("MainPage")
+ .fontSize(48)
+ Button("打开半模态和全模态1")
+ .id("open1")
+ .ButtonStyles400()
+ .onClick(() => {
+ this.isShow = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindSheet($$this.isShow, this.bindSheetBuilder(), {
+ backgroundColor: "#ABDAF3",
+ height: 320
+ })
+ .bindContentCover(this.isShow, this.BindContentCover1(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#6D98BA",
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Extend(Button)
+function ButtonStyles400() {
+ .type(ButtonType.Normal)
+ .fontSize(20)
+ .borderRadius(5)
+ .backgroundColor("#3498DB")
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0410.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2b7cd8a6b68ab282d886be98529f59aa5a0b517b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0410.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.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0410 {
+ @State isShow: boolean = false;
+ @State isShow2: boolean = false;
+ @State isShow3: boolean = false;
+
+ @Builder
+ bindSheetBuilder() {
+ Column() {
+ Text("半模态弹窗")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("切换为主页面")
+ .id("home")
+ .ButtonStyles0410()
+ .onClick(()=>{
+ this.isShow = false
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover1() {
+ Column() {
+ Text("第一个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover2() {
+ Column() {
+ Text("第二个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("打开全模态3")
+ .ButtonStyles0410()
+ .id("open3")
+ .onClick(() => {
+ this.isShow3 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow3, this.BindContentCover3(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#A8DBE1",
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover3() {
+ Column() {
+ Text("第三个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("返回主页面")
+ .id("back")
+ .ButtonStyles0410()
+ .onClick(() => {
+ this.isShow2 = false;
+ this.isShow3 = false;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ build() {
+ Column({ space: 15 }) {
+ Text("MainPage")
+ .fontSize(48)
+ Button("打开半模态和全模态1")
+ .id("open1")
+ .ButtonStyles0410()
+ .onClick(() => {
+ this.isShow = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindSheet($$this.isShow, this.bindSheetBuilder(), {
+ backgroundColor: "#ABDAF3",
+ height: 320
+ })
+ .bindContentCover(this.isShow, this.BindContentCover1(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#6D98BA",
+ })
+ Button("打开全模态2")
+ .id("open2")
+ .ButtonStyles0410()
+ .onClick(() => {
+ this.isShow2 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow2, this.BindContentCover2(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#9ACDDB",
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Extend(Button)
+function ButtonStyles0410() {
+ .type(ButtonType.Normal)
+ .fontSize(20)
+ .borderRadius(5)
+ .backgroundColor("#3498DB")
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0420.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dfddc8380eeb5c3a6a4f028ccf8cfc332071e2bb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0420.ets
@@ -0,0 +1,87 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0420 {
+ @State isShow: boolean = false;
+
+ @Builder
+ bindSheetBuilder() {
+ Column() {
+ Text("半模态弹窗")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("切换为主页面")
+ .id("home")
+ .ButtonStyles420()
+ .onClick(()=>{
+ this.isShow = false;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover1() {
+ Column() {
+ Text("第一个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ build() {
+ Column({ space: 15 }) {
+ Text("MainPage")
+ .fontSize(48)
+ Button("打开半模态和全模态1")
+ .id("open1")
+ .ButtonStyles420()
+ .onClick(() => {
+ this.isShow = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindSheet($$this.isShow, this.bindSheetBuilder(), {
+ backgroundColor: "#ABDAF3",
+ height: 320
+ })
+ .bindContentCover(this.isShow, this.BindContentCover1(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#6D98BA",
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Extend(Button)
+function ButtonStyles420() {
+ .type(ButtonType.Normal)
+ .fontSize(20)
+ .borderRadius(5)
+ .backgroundColor("#3498DB")
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0430.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f9d07a9f1004951b5a55cf15bb3cfca4c4c78fff
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0430.ets
@@ -0,0 +1,89 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0430 {
+ @State isShow: boolean = false;
+ @State isShow2: boolean = false;
+
+ @Builder
+ bindSheetBuilder() {
+ Column() {
+ Text("半模态弹窗")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("打开全模态")
+ .id("open2")
+ .ButtonStyles430()
+ .onClick(()=>{
+ this.isShow = false;
+ this.isShow2 = true;
+ })
+ .bindContentCover(this.isShow2, this.BindContentCover1(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#6D98BA",
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover1() {
+ Column() {
+ Text("第一个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ build() {
+ Column({ space: 15 }) {
+ Text("MainPage")
+ .fontSize(48)
+ Button("打开半模态")
+ .id("open1")
+ .ButtonStyles430()
+ .onClick(() => {
+ this.isShow = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindSheet($$this.isShow, this.bindSheetBuilder(), {
+ backgroundColor: "#ABDAF3",
+ height: 320
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Extend(Button)
+function ButtonStyles430() {
+ .type(ButtonType.Normal)
+ .fontSize(20)
+ .borderRadius(5)
+ .backgroundColor("#3498DB")
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0440.ets
new file mode 100644
index 0000000000000000000000000000000000000000..156cbaffdeb764e3b66e73cabda1fc030a111023
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0440.ets
@@ -0,0 +1,87 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0440 {
+ @State isShow: boolean = false;
+
+ @Builder
+ bindSheetBuilder() {
+ Column() {
+ Text("半模态弹窗")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("切换为主页面")
+ .id("home")
+ .ButtonStyles()
+ .onClick(()=>{
+ this.isShow = false;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover1() {
+ Column() {
+ Text("第一个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ build() {
+ Column({ space: 15 }) {
+ Text("MainPage")
+ .fontSize(48)
+ Button("打开半模态和全模态1")
+ .id("open1")
+ .ButtonStyles()
+ .onClick(() => {
+ this.isShow = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindSheet($$this.isShow, this.bindSheetBuilder(), {
+ backgroundColor: "#ABDAF3",
+ height: 320
+ })
+ .bindContentCover(this.isShow, this.BindContentCover1(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#6D98BA",
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Extend(Button)
+function ButtonStyles() {
+ .type(ButtonType.Normal)
+ .fontSize(20)
+ .borderRadius(5)
+ .backgroundColor("#3498DB")
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0480.ets
new file mode 100644
index 0000000000000000000000000000000000000000..265435b7e61b522febcb34b44567230fb8f01776
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0480.ets
@@ -0,0 +1,150 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0480 {
+ @State isShow: boolean = false;
+ @State isShow2: boolean = false;
+ @State isShow3: boolean = false;
+
+ @Builder
+ bindSheetBuilder() {
+ Column() {
+ Text("半模态弹窗")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("切换为主页面")
+ .id("home")
+ .ButtonStyles0480()
+ .onClick(()=>{
+ this.isShow = false
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover1() {
+ Column() {
+ Text("第一个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover2() {
+ Column() {
+ Text("第二个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("打开全模态3")
+ .ButtonStyles0480()
+ .id("open3")
+ .onClick(() => {
+ this.isShow3 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow3, this.BindContentCover3(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#A8DBE1",
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover3() {
+ Column() {
+ Text("第三个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("返回第一个全模态页面")
+ .id("back")
+ .ButtonStyles0480()
+ .onClick(() => {
+ this.isShow2 = false;
+ this.isShow3 = false;
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ build() {
+ Column({ space: 15 }) {
+ Text("MainPage")
+ .fontSize(48)
+ Button("打开半模态和全模态1")
+ .id("open1")
+ .ButtonStyles0480()
+ .onClick(() => {
+ this.isShow = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindSheet($$this.isShow, this.bindSheetBuilder(), {
+ backgroundColor: "#ABDAF3",
+ height: 320
+ })
+ .bindContentCover(this.isShow, this.BindContentCover1(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#6D98BA",
+ })
+ Button("打开全模态2")
+ .id("open2")
+ .ButtonStyles0480()
+ .onClick(() => {
+ this.isShow2 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow2, this.BindContentCover2(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#9ACDDB",
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Extend(Button)
+function ButtonStyles0480() {
+ .type(ButtonType.Normal)
+ .fontSize(20)
+ .borderRadius(5)
+ .backgroundColor("#3498DB")
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0910.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0ca80c3c268298b0cb8bd03a5636c3a73c59d2d4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0910.ets
@@ -0,0 +1,70 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0910 {
+
+ pageStack: NavPathStack = new NavPathStack();
+ @State isShow:boolean = true;
+ timeoutId:number= -1;
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Text('BindSheet')
+ .fontSize(50)
+ .fontWeight(FontWeight.Bold)
+ .margin(10)
+ }
+ }
+
+ build() {
+ Navigation(){
+
+ NavRouter(){
+
+ Row(){
+ Button("进入二级页面")
+ .fontSize(24)
+ .id("button")
+ }
+
+ NavDestination(){
+ Column() {
+ }
+ .width("100%")
+ .height("100%")
+ .bindSheet($$this.isShow, this.myBuilder(), {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ backgroundColor: Color.White,
+ blurStyle: BlurStyle.Thick,
+ showClose: true,
+ dragBar: true,
+ onAppear:()=>{
+ this.timeoutId = setTimeout(()=>{
+ this.isShow = false;
+ },1000)
+ },
+ onWillDisappear:()=>{
+ clearTimeout(this.timeoutId);
+ }
+ })
+ }
+ .title("二级页面")
+ }
+ }
+ .title("一级页面")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0940.ets
new file mode 100644
index 0000000000000000000000000000000000000000..37f6a76057d0d5b949f1f0f3f0c9fe606ef24a17
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0940.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0940 {
+ @State isShow: boolean = false;
+ @State isShow2: boolean = false;
+ @State isShow3: boolean = false;
+
+
+ @Builder
+ BindContentCover2() {
+ Column() {
+ Text("第一个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("打开全模态2")
+ .ButtonStyles0940()
+ .id("open3")
+ .onClick(() => {
+ this.isShow3 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow3, this.BindContentCover3(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#A8DBE1",
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover3() {
+ Column() {
+ Text("第二个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("返回主页面")
+ .id("back")
+ .ButtonStyles0940()
+ .onClick(() => {
+ this.isShow2 = false;
+ this.isShow3 = false;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ build() {
+ Column({ space: 15 }) {
+ Text("MainPage")
+ .fontSize(48)
+ Button("打开全模态")
+ .id("open2")
+ .ButtonStyles0940()
+ .onClick(() => {
+ this.isShow2 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow2, this.BindContentCover2(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#9ACDDB",
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Extend(Button)
+function ButtonStyles0940() {
+ .type(ButtonType.Normal)
+ .fontSize(20)
+ .borderRadius(5)
+ .backgroundColor("#3498DB")
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0950.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c1d8dce3a65694ae2eab307bad0e9d0099fe2496
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0950.ets
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0950 {
+ @State isShow: boolean = false;
+ @State isShow2: boolean = false;
+ @State isShow3: boolean = false;
+
+
+ @Builder
+ BindContentCover2() {
+ Column() {
+ Text("第一个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("打开全模态2")
+ .ButtonStyles0950()
+ .id("open3")
+ .onClick(() => {
+ this.isShow3 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow3, this.BindContentCover3(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#A8DBE1",
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover3() {
+ Column() {
+ Text("第二个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("返回主页面")
+ .id("back")
+ .ButtonStyles0950()
+ .onClick(() => {
+ this.isShow2 = false;
+ this.isShow3 = false;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ build() {
+ Column({ space: 15 }) {
+ Text("MainPage")
+ .fontSize(48)
+ Button("打开全模态")
+ .id("open2")
+ .ButtonStyles0950()
+ .onClick(() => {
+ this.isShow2 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow2, this.BindContentCover2(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#9ACDDB",
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Extend(Button)
+function ButtonStyles0950() {
+ .type(ButtonType.Normal)
+ .fontSize(20)
+ .borderRadius(5)
+ .backgroundColor("#3498DB")
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0960.ets
new file mode 100644
index 0000000000000000000000000000000000000000..361277bed1ce4be4894f88d0a53b8e7ff8edd515
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0960.ets
@@ -0,0 +1,158 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0960 {
+ @State isShow1: boolean = false;
+ @State isShow2: boolean = false;
+ @State isShow11: boolean = false;
+ @State isShow22: boolean = false;
+ @Builder
+ BindContentCover1() {
+ Column() {
+ Text("全模态页面1")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("打开全模态1.1")
+ .ButtonStyles0960()
+ .id("open11")
+ .onClick(() => {
+ this.isShow11 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow11, this.BindContentCover11(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#A8DBE1",
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover2() {
+ Column() {
+ Text("全模态页面2")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("打开全模态2.2")
+ .ButtonStyles0960()
+ .id("open22")
+ .onClick(() => {
+ this.isShow22 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow22, this.BindContentCover22(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#A8DBE1",
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover11() {
+ Column() {
+ Text("全模态页面1.1")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("返回主页面")
+ .id("back")
+ .ButtonStyles0960()
+ .onClick(() => {
+ this.isShow1 = false;
+ this.isShow11 = false;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover22() {
+ Column() {
+ Text("全模态页面2.2")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("返回主页面")
+ .id("back")
+ .ButtonStyles0960()
+ .onClick(() => {
+ this.isShow2 = false;
+ this.isShow22 = false;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ build() {
+ Column({ space: 15 }) {
+ Text("MainPage")
+ .fontSize(48)
+ Button("打开全模态1")
+ .id("open1")
+ .ButtonStyles0960()
+ .onClick(() => {
+ this.isShow1 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow1, this.BindContentCover1(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#9ACDDB",
+ })
+ Button("打开全模态2")
+ .id("open2")
+ .ButtonStyles0960()
+ .onClick(() => {
+ this.isShow2 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow2, this.BindContentCover2(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#9ACDDB",
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Extend(Button)
+function ButtonStyles0960() {
+ .type(ButtonType.Normal)
+ .fontSize(20)
+ .borderRadius(5)
+ .backgroundColor("#3498DB")
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0970.ets
new file mode 100644
index 0000000000000000000000000000000000000000..52eb5b962260cf39d2476510a22583a04476f5ba
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0970.ets
@@ -0,0 +1,99 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0970 {
+ @State isShow: boolean = false;
+ @State isShow2: boolean = false;
+ @State isShow3: boolean = false;
+
+ @Builder
+ BindContentCover2() {
+ Column() {
+ Text("第一个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("打开全模态2")
+ .ButtonStyles0970()
+ .id("open3")
+ .onClick(() => {
+ this.isShow3 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow3, this.BindContentCover3(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#A8DBE1",
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover3() {
+ Column() {
+ Text("第二个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("返回主页面")
+ .id("back")
+ .ButtonStyles0970()
+ .onClick(() => {
+ this.isShow2 = false;
+ this.isShow3 = false;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ build() {
+ Column({ space: 15 }) {
+ Text("MainPage")
+ .fontSize(48)
+ Button("打开全模态")
+ .id("open2")
+ .ButtonStyles0970()
+ .onClick(() => {
+ this.isShow2 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow2, this.BindContentCover2(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#9ACDDB",
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Extend(Button)
+function ButtonStyles0970() {
+ .type(ButtonType.Normal)
+ .fontSize(20)
+ .borderRadius(5)
+ .backgroundColor("#3498DB")
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0980.ets
new file mode 100644
index 0000000000000000000000000000000000000000..13add58192d35f581fe36c5c82e1a3219aa90d73
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0980.ets
@@ -0,0 +1,99 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0980 {
+ @State isShow: boolean = false;
+ @State isShow2: boolean = false;
+ @State isShow3: boolean = false;
+
+ @Builder
+ BindContentCover2() {
+ Column() {
+ Text("第一个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("打开全模态2")
+ .ButtonStyles0980()
+ .id("open3")
+ .onClick(() => {
+ this.isShow3 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow3, this.BindContentCover3(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#A8DBE1",
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover3() {
+ Column() {
+ Text("第二个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("返回主页面")
+ .id("back")
+ .ButtonStyles0980()
+ .onClick(() => {
+ this.isShow2 = false;
+ this.isShow3 = false;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ build() {
+ Column({ space: 15 }) {
+ Text("MainPage")
+ .fontSize(48)
+ Button("打开全模态")
+ .id("open2")
+ .ButtonStyles0980()
+ .onClick(() => {
+ this.isShow2 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow2, this.BindContentCover2(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#9ACDDB",
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Extend(Button)
+function ButtonStyles0980() {
+ .type(ButtonType.Normal)
+ .fontSize(20)
+ .borderRadius(5)
+ .backgroundColor("#3498DB")
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0990.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8bbdbd0be3f9c7d5d6fb5e30c221f959325519ff
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0990.ets
@@ -0,0 +1,150 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionBindcontentcoveret0990 {
+ @State isShow: boolean = false;
+ @State isShow2: boolean = false;
+ @State isShow3: boolean = false;
+
+ @Builder
+ bindSheetBuilder() {
+ Column() {
+ Text("半模态弹窗")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("切换为主页面")
+ .id("home")
+ .ButtonStyles0990()
+ .onClick(()=>{
+ this.isShow = false
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover1() {
+ Column() {
+ Text("第一个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover2() {
+ Column() {
+ Text("第二个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("打开全模态3")
+ .ButtonStyles0990()
+ .id("open3")
+ .onClick(() => {
+ this.isShow3 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow3, this.BindContentCover3(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#A8DBE1",
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ @Builder
+ BindContentCover3() {
+ Column() {
+ Text("第三个全模态页面")
+ .fontColor(Color.White)
+ .margin(10)
+ .fontSize(20)
+ Button("返回第一个全模态页面")
+ .id("back")
+ .ButtonStyles0990()
+ .onClick(() => {
+ this.isShow2 = false;
+ this.isShow3 = false;
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+
+ build() {
+ Column({ space: 15 }) {
+ Text("MainPage")
+ .fontSize(48)
+ Button("打开半模态和全模态1")
+ .id("open1")
+ .ButtonStyles0990()
+ .onClick(() => {
+ this.isShow = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindSheet($$this.isShow, this.bindSheetBuilder(), {
+ backgroundColor: "#ABDAF3",
+ height: 320
+ })
+ .bindContentCover(this.isShow, this.BindContentCover1(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#6D98BA",
+ })
+ Button("打开全模态2")
+ .id("open2")
+ .ButtonStyles0990()
+ .onClick(() => {
+ this.isShow2 = true;
+ })
+ .fontSize(20)
+ .margin(10)
+ .bindContentCover($$this.isShow2, this.BindContentCover2(), {
+ modalTransition: ModalTransition.NONE,
+ backgroundColor: "#9ACDDB",
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
+
+@Extend(Button)
+function ButtonStyles0990() {
+ .type(ButtonType.Normal)
+ .fontSize(20)
+ .borderRadius(5)
+ .backgroundColor("#3498DB")
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8a6e713ddae02f77714369478fa49be0d7f420e1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0010.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 Logger from '../../../test/model/Logger';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0010 {
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Current detents: ${this.currentDetents}`).margin(20)
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 200,
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents: number) => {
+ this.currentDetents = Math.floor(px2vp(detents));
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0010 onDetentsDidChange: ${this.currentDetents}`);
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6ee21ca7070e2e406aacf00471baf975edcad7ae
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0030.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 Logger from '../../../test/model/Logger';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0030 {
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Current detents: ${this.currentDetents}`).margin(20)
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200, 400, 600],
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents: number) => {
+ this.currentDetents = Math.floor(px2vp(detents));
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0030 onDetentsDidChange: ${this.currentDetents}`);
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..57001508fa83e14a13759dc61ba0a3f2cf4d12ac
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_1.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 Logger from '../../../test/model/Logger';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0040_1 {
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Current detents: ${this.currentDetents}`).margin(20)
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents: [200, 400, 600],
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents: number) => {
+ this.currentDetents = Math.floor(px2vp(detents));
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040 onDetentsDidChange: ${this.currentDetents}`);
+ }
+ })
+ .onClick(() => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040 click: ${this.isShow}`);
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_2.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c207db707ac728eaa1b491ffe8eb40f36d7eea4b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_2.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 Logger from '../../../test/model/Logger';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0040_2 {
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Current detents: ${this.currentDetents}`).margin(20)
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents: [200, 400, 600],
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents: number) => {
+ this.currentDetents = Math.floor(px2vp(detents));
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040 onDetentsDidChange: ${this.currentDetents}`);
+ }
+ })
+ .onClick(() => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040 click: ${this.isShow}`);
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_3.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_3.ets
new file mode 100644
index 0000000000000000000000000000000000000000..effb46f905535ed94f413ae84c70ddcc8d2f8999
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_3.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 Logger from '../../../test/model/Logger';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0040_3 {
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Current detents: ${this.currentDetents}`).margin(20)
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet($$this.isShow, this.myBuilder, {
+ detents: [200, 400, 600],
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents: number) => {
+ this.currentDetents = Math.floor(px2vp(detents));
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040 onDetentsDidChange: ${this.currentDetents}`);
+ }
+ })
+ .onClick(() => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0040 click: ${this.isShow}`);
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..65971e65be5baaa6fc3efd4328741e030321da0b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0080.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 Logger from '../../../test/model/Logger';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0080 {
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Current detents: ${this.currentDetents}`).margin(20)
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200, 400, 600],
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents: number) => {
+ this.currentDetents = Math.floor(px2vp(detents));
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0080 onDetentsDidChange: ${this.currentDetents}`);
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..efe6303b7f24556b76d12170771f2d33d2906048
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0090.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 Logger from '../../../test/model/Logger';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0090 {
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Current detents: ${this.currentDetents}`).margin(20)
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200, 400, 600],
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents: number) => {
+ this.currentDetents = Math.floor(px2vp(detents));
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0090 onDetentsDidChange: ${this.currentDetents}`);
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6fb0781adddda11ce7e6c56e9c533790869ade8f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0100.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 Logger from '../../../test/model/Logger';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0100 {
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Current detents: ${this.currentDetents}`).margin(20)
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200, 400, 600],
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents: number) => {
+ this.currentDetents = Math.floor(px2vp(detents));
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0100 onDetentsDidChange: ${this.currentDetents}`);
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f4f41b8493a0eb0cd82e69e1e6b4bec8a8bdab59
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0110.ets
@@ -0,0 +1,25 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0110 {
+
+ build() {
+ Column() {
+ }.width('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..55e65fdcb906b26926211cd2c27cb52d470c6229
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0120.ets
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import Logger from '../../../test/model/Logger';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0120 {
+
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Current detents: ${this.currentDetents}`).margin(20)
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200, 200, 200],
+ height: SheetSize.MEDIUM,
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents: number) => {
+ this.currentDetents = Math.floor(px2vp(detents));
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0120 onDetentsDidChange: ${this.currentDetents}`);
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..09e650498fd2a3310cb7852bd327c9aa8ead693d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0130.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 Logger from '../../../test/model/Logger';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0130 {
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Current detents: ${this.currentDetents}`).margin(20)
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200, SheetSize.MEDIUM, SheetSize.LARGE],
+ height: SheetSize.MEDIUM,
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents: number) => {
+ this.currentDetents = Math.floor(px2vp(detents));
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0130 onDetentsDidChange: ${this.currentDetents}`);
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e6cde041593e75fa588919f6fafd63caebb8f10a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0140.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 Logger from '../../../test/model/Logger';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0140 {
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Current detents: ${this.currentDetents}`).margin(20)
+ Button("bind sheet")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200, SheetSize.MEDIUM, SheetSize.LARGE],
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents: number) => {
+ this.currentDetents = Math.floor(px2vp(detents));
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0140 onDetentsDidChange: ${this.currentDetents}`);
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1382c0341b7658e6c7e01f79e1ff4a6e157e001b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0150.ets
@@ -0,0 +1,89 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import Logger from '../../../test/model/Logger';
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0150 {
+
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ private portrait: boolean = true
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Current detents: ${this.currentDetents}`).margin(20)
+ Button("切换横屏")
+ .margin({bottom: 20})
+ .id("button1")
+ .onClick(() => {
+ this.changeOrientation();
+ })
+ Button("bind sheet")
+ .id('button2')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200, SheetSize.MEDIUM, SheetSize.LARGE],
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents: number) => {
+ this.currentDetents = Math.floor(px2vp(detents));
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0150 onDetentsDidChange: ${this.currentDetents}`);
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ private changeOrientation() {
+ // 获取上下文,使用common模块
+ 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));
+ }
+ })
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6b3fdd60d3b2608604a68d5d273a1855a182d62c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0160.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';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionGear0160 {
+
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Button("bind show = false")
+ .id("button2")
+ .onClick(() => {
+ this.isShow = false;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Text(`Current detents: ${this.currentDetents}`).margin(20)
+ Button("bind sheet show = true")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200, 400, 600],
+ preferType: SheetType.BOTTOM,
+ onDetentsDidChange: (detents: number) => {
+ this.currentDetents = Math.floor(px2vp(detents));
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MODALTRANSITION_GEAR_0160 onDetentsDidChange: ${this.currentDetents}`);
+ }
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..558409a6a331f12f97783ae62401c5ed6c46b7ec
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0050.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 { ComponentContent, FrameNode } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionImperative0050 {
+
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ contentNode?: ComponentContent;
+
+ aboutToAppear() {
+ this.contentNode = new ComponentContent(this.getUIContext(), wrapBuilder(myBuilder), new Params(this.arr));
+ }
+
+ build() {
+ Column() {
+ Button("openBindSheet")
+ .id("button1")
+ .margin({top: 20})
+ .onClick(() => {
+ const id = this.getUniqueId();
+ let frameNode: FrameNode | null = this.getUIContext().getFrameNodeByUniqueId(id);
+ let targetId = frameNode?.getFirstChild()?.getUniqueId();
+ this.getUIContext().openBindSheet(this.contentNode, {
+ mode: SheetMode.OVERLAY
+ }, targetId);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
+
+class Params {
+ arr: number[] = []
+
+ constructor(arr: number[]) {
+ this.arr = arr;
+ }
+}
+
+@Builder
+function myBuilder(param: Params) {
+ Column() {
+ ForEach(param.arr, (item: number) => {
+ Text(`item ${item}`).height(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/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5d51bfb178c5051d8b8498b013e7991b6411726a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0060.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 { ComponentContent, FrameNode } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionImperative0060 {
+
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ contentNode?: ComponentContent;
+
+ aboutToAppear() {
+ this.contentNode = new ComponentContent(this.getUIContext(), wrapBuilder(myBuilder), new Params(this.arr));
+ }
+
+ build() {
+ Column() {
+ Button("openBindSheet")
+ .id("button1")
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().openBindSheet(this.contentNode,undefined);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
+
+class Params {
+ arr: number[] = []
+
+ constructor(arr: number[]) {
+ this.arr = arr;
+ }
+}
+
+@Builder
+function myBuilder(param: Params) {
+ Column() {
+ ForEach(param.arr, (item: number) => {
+ Text(`item ${item}`).height(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/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5142b534f7178b8a4c137adf442624bdfafe559a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0100.ets
@@ -0,0 +1,87 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { ComponentContent, FrameNode } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionImperative0100 {
+
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ contentNode?: ComponentContent;
+
+ aboutToAppear() {
+ this.contentNode = new ComponentContent(this.getUIContext(), wrapBuilder(myBuilder), new Params(this.arr));
+ }
+
+ build() {
+ Column() {
+ Button("openBindSheet")
+ .id("button1")
+ .margin({top: 20})
+ .onClick(() => {
+ const id = this.getUniqueId();
+ let frameNode: FrameNode | null = this.getUIContext().getFrameNodeByUniqueId(id);
+ let targetId = frameNode?.getFirstChild()?.getUniqueId();
+ this.getUIContext().openBindSheet(this.contentNode, {
+ height: 600,
+ enableOutsideInteractive: true,
+ mode: SheetMode.OVERLAY
+ }, targetId)
+ })
+ Button('updateBindSheet')
+ .id('button2')
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().updateBindSheet(this.contentNode, {
+ backgroundColor: Color.Yellow,
+ borderColor: Color.Green,
+ borderWidth: 10,
+ height: 400
+ }, true);
+ })
+
+ Button('closeBindSheet')
+ .id('button3')
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().closeBindSheet(this.contentNode);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
+
+class Params {
+ arr: number[] = []
+
+ constructor(arr: number[]) {
+ this.arr = arr;
+ }
+}
+
+@Builder
+function myBuilder(param: Params) {
+ Column() {
+ ForEach(param.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..27c39694a84201beedaf82ec3d46bb301b8cd359
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0170.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 { ComponentContent } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionImperative0170 {
+
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ contentNode?: ComponentContent;
+
+ aboutToAppear() {
+ this.contentNode = new ComponentContent(this.getUIContext(), wrapBuilder(myBuilder), new Params(this.arr));
+ }
+
+ build() {
+ Column() {
+ Button("openBindSheet")
+ .id("button1")
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().openBindSheet(this.contentNode, {
+ height: SheetSize.MEDIUM,
+ enableOutsideInteractive: true,
+ mode: SheetMode.OVERLAY
+ })
+ })
+ Button('updateBindSheet(content, undefined)')
+ .id('button2')
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().updateBindSheet(this.contentNode, undefined);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
+class Params {
+ arr: number[] = []
+
+ constructor(arr: number[]) {
+ this.arr = arr;
+ }
+}
+
+@Builder
+function myBuilder(param: Params) {
+ Column() {
+ ForEach(param.arr, (item: number) => {
+ Text(`item ${item}`).height(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/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2c7f3369cc8309106e92fee71d759194c2a74b54
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0180.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 { ComponentContent } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionImperative0180 {
+
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ contentNode?: ComponentContent;
+
+ aboutToAppear() {
+ this.contentNode = new ComponentContent(this.getUIContext(), wrapBuilder(myBuilder), new Params(this.arr));
+ }
+
+ build() {
+ Column() {
+ Button("openBindSheet")
+ .id("button1")
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().openBindSheet(this.contentNode, {
+ height: SheetSize.MEDIUM,
+ enableOutsideInteractive: true,
+ mode: SheetMode.OVERLAY
+ })
+ })
+ Button('updateBindSheet(this.contentNode, undefined, true)')
+ .id('button2')
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().updateBindSheet(this.contentNode, undefined, true);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
+
+class Params {
+ arr: number[] = []
+
+ constructor(arr: number[]) {
+ this.arr = arr;
+ }
+}
+
+@Builder
+function myBuilder(param: Params) {
+ Column() {
+ ForEach(param.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7f64965459d20d95d681fe03d00ee36ae04751cc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0190.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 { ComponentContent } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionImperative0190 {
+
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ contentNode?: ComponentContent;
+
+ aboutToAppear() {
+ this.contentNode = new ComponentContent(this.getUIContext(), wrapBuilder(myBuilder), new Params(this.arr));
+ }
+
+ build() {
+ Column() {
+ Button("openBindSheet")
+ .id("button1")
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().openBindSheet(this.contentNode, {
+ height: SheetSize.MEDIUM,
+ enableOutsideInteractive: true,
+ mode: SheetMode.OVERLAY
+ })
+ })
+ Button('updateBindSheet(this.contentNode, {}, true)')
+ .id('button2')
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().updateBindSheet(this.contentNode, {}, true);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
+
+class Params {
+ arr: number[] = []
+
+ constructor(arr: number[]) {
+ this.arr = arr;
+ }
+}
+
+@Builder
+function myBuilder(param: Params) {
+ Column() {
+ ForEach(param.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e64350d9a222a3f56ae4a5f75220c13d2d3890e8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0220.ets
@@ -0,0 +1,100 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { ComponentContent } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionImperative0220 {
+
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ contentNode?: ComponentContent;
+
+ aboutToAppear() {
+ this.contentNode = new ComponentContent(this.getUIContext(), wrapBuilder(myBuilder), new Params(this.arr));
+ }
+
+ build() {
+ Column() {
+ Button("openBindSheet")
+ .id("button1")
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().openBindSheet(this.contentNode, {
+ detents: [500, 600, 700],
+ height: SheetSize.LARGE,
+ enableOutsideInteractive: true,
+ preferType: SheetType.CENTER,
+ maskColor: '#88888888',
+ borderColor: '#053f86',
+ borderWidth: 10,
+ backgroundColor: '#fe7890',
+ showClose: true,
+ dragBar: false,
+ title: {
+ title: 'open sheet',
+ subtitle: 'open sub title'
+ },
+ mode: SheetMode.OVERLAY
+ })
+ })
+ Button('updateBindSheet(全量更新)')
+ .id('button2')
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().updateBindSheet(this.contentNode, {
+ detents: [200, 400, 600],
+ height: SheetSize.MEDIUM,
+ enableOutsideInteractive: false,
+ preferType: SheetType.BOTTOM,
+ maskColor: '#88000000',
+ borderColor: '#fe0000',
+ borderWidth: 5,
+ backgroundColor: '#457890',
+ showClose: false,
+ dragBar: true,
+ title: {
+ title: 'updateBindSheet(全量更新)',
+ subtitle: 'sub title'
+ },
+ mode: SheetMode.EMBEDDED
+ }, false);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
+
+class Params {
+ arr: number[] = []
+
+ constructor(arr: number[]) {
+ this.arr = arr;
+ }
+}
+
+@Builder
+function myBuilder(param: Params) {
+ Column() {
+ ForEach(param.arr, (item: number) => {
+ Text(`item ${item}`).height(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/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0b7a9660f7b71ae4737c2cf98cfea927d7dff3f4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0230.ets
@@ -0,0 +1,85 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { ComponentContent } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionImperative0230 {
+
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ contentNode?: ComponentContent;
+
+ aboutToAppear() {
+ this.contentNode = new ComponentContent(this.getUIContext(), wrapBuilder(myBuilder), new Params(this.arr));
+ }
+
+ build() {
+ Column() {
+ Button("openBindSheet")
+ .id("button1")
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().openBindSheet(this.contentNode, {
+ height: SheetSize.MEDIUM,
+ enableOutsideInteractive: true,
+ mode: SheetMode.OVERLAY,
+ borderColor: '#fe0000',
+ borderWidth: 5,
+ })
+ })
+ Button('updateBindSheet(增量更新)')
+ .id('button2')
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().updateBindSheet(this.contentNode, {
+ detents: [200, 400, 600],
+ enableOutsideInteractive: false,
+ maskColor: '#88000000',
+ backgroundColor: '#457890',
+ showClose: false,
+ dragBar: true,
+ title: {
+ title: 'updateBindSheet(全量更新)',
+ subtitle: 'sub title'
+ },
+ }, true);
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
+
+class Params {
+ arr: number[] = []
+
+ constructor(arr: number[]) {
+ this.arr = arr;
+ }
+}
+
+@Builder
+function myBuilder(param: Params) {
+ Column() {
+ ForEach(param.arr, (item: number) => {
+ Text(`item ${item}`).height(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/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..92f4a7f2914e10489b083e587c080aa1a5b8d383
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0290.ets
@@ -0,0 +1,78 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { ComponentContent, FrameNode } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionImperative0290 {
+
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ contentNode1?: ComponentContent;
+ contentNode2?: ComponentContent;
+
+ aboutToAppear() {
+ this.contentNode1 = new ComponentContent(this.getUIContext(), wrapBuilder(myBuilder), new Params(this.arr));
+ this.contentNode2 = new ComponentContent(this.getUIContext(), wrapBuilder(myBuilder), new Params([1,2,3]));
+ }
+
+ build() {
+ Column() {
+ Button("openBindSheet(半模态内容超出半模态高度)")
+ .id("button1")
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().openBindSheet(this.contentNode1, {
+ height: SheetSize.MEDIUM,
+ mode: SheetMode.OVERLAY
+ });
+ })
+ Button("openBindSheet(半模态内容不长)")
+ .id("button2")
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().openBindSheet(this.contentNode2, {
+ height: SheetSize.MEDIUM,
+ mode: SheetMode.OVERLAY
+ });
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
+
+class Params {
+ arr: number[] = []
+
+ constructor(arr: number[]) {
+ this.arr = arr;
+ }
+}
+
+@Builder
+function myBuilder(param: Params) {
+ Scroll() {
+ Column() {
+ ForEach(param.arr, (item: number) => {
+ Text(`item ${item}`).height(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/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d8418bf1b3cf37009ec31b9de5444eb880c5f635
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0300.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 { ComponentContent, FrameNode } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionImperative0290 {
+
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ contentNode1?: ComponentContent;
+
+ aboutToAppear() {
+ this.contentNode1 = new ComponentContent(this.getUIContext(), wrapBuilder(myBuilder), new Params(this.arr));
+ }
+
+ build() {
+ Column() {
+ Image('cat.jpg').invert({
+ low: 0.3,
+ high: 0.8,
+ threshold: 0.5,
+ thresholdRange: 0
+ }).height(200)
+ Button("openBindSheet")
+ .id("button1")
+ .margin({top: 30})
+ .onClick(() => {
+ this.getUIContext().openBindSheet(this.contentNode1, {
+ height: SheetSize.MEDIUM,
+ mode: SheetMode.OVERLAY
+ });
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
+
+class Params {
+ arr: number[] = []
+
+ constructor(arr: number[]) {
+ this.arr = arr;
+ }
+}
+
+@Builder
+function myBuilder(param: Params) {
+ Scroll() {
+ Column() {
+ ForEach(param.arr, (item: number) => {
+ Text(`item ${item}`).height(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/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dc6494aeef8a8cc343df18cf03bb331c17ad12be
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0310.ets
@@ -0,0 +1,77 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { ComponentContent, FrameNode } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionImperative0310 {
+
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ contentNode?: ComponentContent;
+
+ aboutToAppear() {
+ this.contentNode = new ComponentContent(this.getUIContext(), wrapBuilder(myBuilder), new Params(this.arr));
+ }
+
+ build() {
+ Column() {
+ Button("openBindSheet(content)")
+ .id("button1")
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().openBindSheet(this.contentNode);
+ })
+ Button("openBindSheet(content, {})")
+ .id("button2")
+ .margin({top: 20})
+ .onClick(() => {
+ this.getUIContext().openBindSheet(this.contentNode, {})
+ })
+ Button("openBindSheet(content, undefined, targetId)")
+ .id("button3")
+ .margin({top: 20})
+ .onClick(() => {
+ const id = this.getUniqueId();
+ let frameNode: FrameNode | null = this.getUIContext().getFrameNodeByUniqueId(id);
+ let targetId = frameNode?.getFirstChild()?.getUniqueId();
+ this.getUIContext().openBindSheet(this.contentNode, undefined, targetId)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
+
+class Params {
+ arr: number[] = []
+
+ constructor(arr: number[]) {
+ this.arr = arr;
+ }
+}
+
+@Builder
+function myBuilder(param: Params) {
+ Column() {
+ ForEach(param.arr, (item: number) => {
+ Text(`item ${item}`).height(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/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fb2e66aff954604e42f8f80735b85daaa34e0c82
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0020.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 { webview } from '@kit.ArkWeb';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionNetedscrolling0020 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ controller: webview.WebviewController = new webview.WebviewController();
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Web({ src: 'https://www.huawei.com/cn/corporate-information', controller: this.controller })
+ }.width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('嵌套Web单挡位:height: 500')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [ 500],
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bb1908355a3aa478e82094068654c306579ddd1b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0030.ets
@@ -0,0 +1,61 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionNetedscrolling0030 {
+ @State isShow: boolean = false
+ arr1: number[] = [1,2];
+ arr2: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Grid() {
+ ForEach(this.arr1, (item1: number) => {
+ ForEach(this.arr2, (item2: number) => {
+ GridItem() {
+ Text(`item-${item1}-${item2}`)
+ .fontSize(16)
+ .height(40)
+ .width('49%')
+ .backgroundColor(0xF9CF93)
+ .textAlign(TextAlign.Center)
+ }
+ }, (day: string) => day)
+ }, (day: string) => day)
+ }.columnsTemplate('1fr 1fr')
+ }
+ .width('100%')
+ .height(1000)
+ }
+
+ build() {
+ Column() {
+ Button('嵌套多挡位:detents:[300,500,700]')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [300, 500, 700],
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..769bd2573b59588b45adbb6918ad00c5858683de
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0040.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 UIComponentPopupboxModaltransitionNetedscrolling0040 {
+ @State isShow: boolean = false
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height(1000)
+ }
+
+ build() {
+ Column() {
+ Button('无嵌套多挡位:detents:[SheetSize]')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b0cf4e28037ac324cd9401ad65b71bade0b56333
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0050.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 UIComponentPopupboxModaltransitionNetedscrolling0050 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ WaterFlow() {
+ ForEach(this.arr, (item: number) => {
+ FlowItem() {
+ Text(`item${item}`).height(40)
+ }
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }.width('100%')
+ .height(1000)
+ }
+
+ build() {
+ Column() {
+ Button('嵌套WaterFlow多挡位:detents:[300,500,700]')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [300, 500, 700],
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c1c0a592db407773f58266c32570da101e44ca64
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0060.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 UIComponentPopupBoxModalTransitionNetedScrolling0060 {
+ @State isShow: boolean = false
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height(1000)
+ }
+
+ build() {
+ Column() {
+ Button('无嵌套多挡位:detents:[200,400,600]')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200, 400, 600],
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = 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/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ccc428bf515e200883ca331c5a6d7db8fdea418c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0070.ets
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { webview } from '@kit.ArkWeb';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionNetedscrolling0070 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ controller: webview.WebviewController = new webview.WebviewController();
+
+ @Builder
+ myBuilder() {
+
+ Column() {
+ Scroll(new Scroller()) {
+ Web({ src: 'https://www.huawei.com/cn/corporate-information', controller: this.controller })
+ }.height('100%')
+ .nestedScroll({
+ scrollForward: NestedScrollMode.SELF_FIRST,
+ scrollBackward: NestedScrollMode.SELF_FIRST
+ })
+ }.width('100%')
+ .height(1000)
+ }
+
+ build() {
+ Column() {
+ Button('嵌套Scroll+Web多挡位:detents:[300,500,700]')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [300, 500, 700],
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..405a315e212a254909a3617bc997cb1f65e1995d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0080.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 UIComponentPopupboxModaltransitionNetedscrolling0080 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+
+ @Builder
+ myBuilder() {
+ Column() {
+ List(){
+ ForEach(this.arr, (item: number) => {
+ ListItem() {
+ Text(`item ${item}`).height(40)
+ }
+ })
+ }
+ }.width('100%')
+ .height(1000)
+ }
+
+ build() {
+ Column() {
+ Button('嵌套List多挡位:detents:[300,500,700]')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [300, 500, 700],
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b6636b4a65b4d9e0905156ca601b824bfdfbb07d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0090.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 UIComponentPopupboxModaltransitionNetedscrolling0090 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Scroll() {
+ WaterFlow() {
+ ForEach(this.arr, (item: number) => {
+ FlowItem() {
+ Text(`item${item}`).height(40)
+ }
+ })
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('嵌套Scroll+WaterFlow单挡位:height 500')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 500,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f4cf41d9ab007190b6bbde9e1ff76932aad9055c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0100.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 UIComponentPopupboxModaltransitionNetedscrolling0100 {
+ @State isShow: boolean = false
+ arr1: number[] = [1,2];
+ arr2: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Scroll(new Scroller()) {
+ Grid() {
+ ForEach(this.arr1, (item1: number) => {
+ ForEach(this.arr2, (item2: number) => {
+ GridItem() {
+ Text(`item-${item1}-${item2}`)
+ .fontSize(16)
+ .height(40)
+ .width('49%')
+ .backgroundColor(0xF9CF93)
+ .textAlign(TextAlign.Center)
+ }
+ }, (day: string) => day)
+ }, (day: string) => day)
+ }.columnsTemplate('1fr 1fr')
+ }.height('100%')
+ .nestedScroll({
+ scrollForward: NestedScrollMode.SELF_FIRST,
+ scrollBackward: NestedScrollMode.SELF_FIRST
+ })
+ }.width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('嵌套Scroll+Grid单挡位:height:500')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 500,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..58c21c02d004b56b3ebda02c730306a3d7530af7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0110.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 { webview } from '@kit.ArkWeb';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionNetedscrolling0110 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ controller: webview.WebviewController = new webview.WebviewController();
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Scroll(new Scroller()) {
+ Web({ src: 'https://www.huawei.com/cn/corporate-information', controller: this.controller })
+ }.height('100%')
+ .nestedScroll({
+ scrollForward: NestedScrollMode.SELF_FIRST,
+ scrollBackward: NestedScrollMode.SELF_FIRST
+ })
+ }.width('100%')
+ .height(1000)
+ }
+
+ build() {
+ Column() {
+ Button('嵌套Scroll+Web单挡位:height: 500')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 500,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8f92cb6bb733de0b3130510fe3de2e32c872b51b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0120.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 UIComponentPopupboxModaltransitionNetedscrolling0120 {
+ @State isShow: boolean = false
+ arr2: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Scroll(new Scroller()) {
+ List() {
+ ForEach(this.arr2, (item: number) => {
+ ListItem() {
+ Text(`item-${item}`)
+ .fontSize(16)
+ .height(40)
+ .width('49%')
+ .backgroundColor(0xF9CF93)
+ .textAlign(TextAlign.Center)
+ }
+ })
+ }
+ }.height('100%')
+ .nestedScroll({
+ scrollForward: NestedScrollMode.SELF_FIRST,
+ scrollBackward: NestedScrollMode.SELF_FIRST
+ })
+ }.width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('嵌套Scroll+List单挡位:height:500')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 500,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5616405208ff5e196ae2241c8ce35684ed4b4575
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0140.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 UIComponentPopupboxModaltransitionNetedscrolling0140 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+
+ @Builder
+ myBuilder() {
+ Column() {
+ List(){
+ ForEach(this.arr, (item: number) => {
+ ListItem() {
+ Text(`item ${item}`).height(40)
+ }
+ })
+ }
+ }.width('100%')
+ .height(1000)
+ }
+
+ build() {
+ Column() {
+ Button('嵌套List单挡位:height:500')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 500,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b942fe6deed7923e209604899153d0b90d6cc671
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0150.ets
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionNetedscrolling0150 {
+ @State isShow: boolean = false
+ arr1: number[] = [1,2];
+ arr2: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Grid() {
+ ForEach(this.arr1, (item1: number) => {
+ ForEach(this.arr2, (item2: number) => {
+ GridItem() {
+ Text(`item-${item1}-${item2}`)
+ .fontSize(16)
+ .height(40)
+ .width('49%')
+ .backgroundColor(0xF9CF93)
+ .textAlign(TextAlign.Center)
+ }
+ }, (day: string) => day)
+ }, (day: string) => day)
+ }.columnsTemplate('1fr 1fr')
+ }.width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('嵌套Grid单挡位:height:500')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 500,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3b9bb3ab38ddfa0d24996a4ca2e355dd80629206
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0160.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 UIComponentPopupboxModaltransitionNetedscrolling0160 {
+ @State isShow: boolean = false
+ arr1: number[] = [1,2];
+ arr2: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Scroll(new Scroller()) {
+ Grid() {
+ ForEach(this.arr1, (item1: number) => {
+ ForEach(this.arr2, (item2: number) => {
+ GridItem() {
+ Text(`item-${item1}-${item2}`)
+ .fontSize(16)
+ .height(40)
+ .width('49%')
+ .backgroundColor(0xF9CF93)
+ .textAlign(TextAlign.Center)
+ }
+ }, (day: string) => day)
+ }, (day: string) => day)
+ }.columnsTemplate('1fr 1fr')
+ }.height('100%')
+ .nestedScroll({
+ scrollForward: NestedScrollMode.SELF_FIRST,
+ scrollBackward: NestedScrollMode.SELF_FIRST
+ })
+ }.width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('嵌套Scroll+Grid多挡位:detents: [300, 500, 700]')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [300, 500, 700],
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..752a8bbcecbbfb9fc42074a9aad35201fa04a9ae
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0170.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 UIComponentPopupboxModaltransitionNetedscrolling0170 {
+ @State isShow: boolean = false
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height(1000)
+ }
+
+ build() {
+ Column() {
+ Button('无嵌套单挡位:height: 500')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 500,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9a668be390ce72b76353c502cecf6bf06f334500
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0180.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 { webview } from '@kit.ArkWeb';
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionNetedscrolling0180 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+ controller: webview.WebviewController = new webview.WebviewController();
+
+ @Builder
+ myBuilder() {
+ Column() {
+ Web({ src: 'https://www.huawei.com/cn/corporate-information', controller: this.controller })
+ }.width('100%')
+ .height(1000)
+ }
+
+ build() {
+ Column() {
+ Button('嵌套Web多挡位:detents:[300,500,700]')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [300, 500, 700],
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b5ae65e3bcd53df47d388c93c439df2554a886f6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0190.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 UIComponentPopupboxModaltransitionNetedscrolling0190 {
+ @State isShow: boolean = false
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ WaterFlow() {
+ ForEach(this.arr, (item: number) => {
+ FlowItem() {
+ Text(`item${item}`).height(40)
+ }
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button('嵌套WaterFlow单挡位:height 500')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ height: 500,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9b2a0107a5c9c544082f9b39c38b09f54d251875
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0030.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 Window from '@ohos.window'
+import { common } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionSubwindow0030 {
+
+ @State isShow: boolean = false
+ private portrait: boolean = true
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("HelloWord")
+ .id('button2')
+ .onClick(() => {
+ this.changeOrientation();
+ })
+ Button('子窗口_底部弹窗')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ enableOutsideInteractive: true,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .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));
+ }
+ })
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8a3d01735b07d8389250b75561ee1b26ac7c43a3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0040.ets
@@ -0,0 +1,81 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import Window from '@ohos.window'
+import { common } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionSubwindow0040 {
+
+ @State isShow: boolean = false
+ private portrait: boolean = true
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("HelloWord")
+ .id('button2')
+ .onClick(() => {
+ this.changeOrientation();
+ })
+ Button('子窗口_size_居中弹窗_档位')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ enableOutsideInteractive: true,
+ preferType: SheetType.CENTER
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .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));
+ }
+ })
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..56b30475c42afa0324fad4ff51093ba2e084b1ad
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0050.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 Window from '@ohos.window'
+import { common } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionSubwindow0050 {
+
+ @State isShow: boolean = false
+ private portrait: boolean = true
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("HelloWord")
+ .id('button2')
+ .onClick(() => {
+ this.changeOrientation();
+ })
+ Button('子窗口跟手弹窗')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ enableOutsideInteractive: true,
+ preferType: SheetType.POPUP
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .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));
+ }
+ })
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d775d752c7306c9d03f661cea701dfda7be2c980
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0060.ets
@@ -0,0 +1,80 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import Window from '@ohos.window'
+import { common } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionSubwindow0060 {
+
+ @State isShow: boolean = false
+ private portrait: boolean = true
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("HelloWord")
+ .id('button2')
+ .onClick(() => {
+ this.changeOrientation();
+ })
+ Button('子窗口_size_底部弹窗')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ enableOutsideInteractive: true,
+ preferType: SheetType.BOTTOM
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .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/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..54845e426549d194027c7b9e401c3690d1fbe748
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0070.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 Window from '@ohos.window'
+import { common } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionSubwindow0070 {
+
+ @State isShow: boolean = false
+ private portrait: boolean = true
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("HelloWord")
+ .id('button2')
+ .onClick(() => {
+ this.changeOrientation();
+ })
+ Button('子窗口居中弹窗')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ enableOutsideInteractive: true,
+ preferType: SheetType.CENTER
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .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));
+ }
+ })
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6fe8a876c674f36100c92c6774502fc81e74a1a6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0080.ets
@@ -0,0 +1,81 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import Window from '@ohos.window'
+import { common } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionSubwindow0080 {
+
+ @State isShow: boolean = false
+ private portrait: boolean = true
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("HelloWord")
+ .id('button2')
+ .onClick(() => {
+ this.changeOrientation();
+ })
+ Button('子窗口_size_跟手弹窗_档位')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ enableOutsideInteractive: true,
+ preferType: SheetType.POPUP
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .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));
+ }
+ })
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9502dba6a53d6d9bd3c8187d36e5000bf2301d60
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0090.ets
@@ -0,0 +1,80 @@
+
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import Window from '@ohos.window'
+import { common } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentPopupboxModaltransitionSubwindow0090 {
+
+ @State isShow: boolean = false
+ private portrait: boolean = true
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],(item: number, index) => {
+ Text(`item${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("HelloWord")
+ .id('button2')
+ .onClick(() => {
+ this.changeOrientation();
+ })
+ Button('子窗口_size_居中弹窗')
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ enableOutsideInteractive: true,
+ preferType: SheetType.CENTER
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }.backgroundColor(Color.Green)
+ .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/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..17714e84513066e35f605c93cdcb74fafe5249e9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0020.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 UIComponentPopupboxModaltransitionSwipetorefresh0020 {
+
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("不设置_多挡位:detents[200, 400, 600]")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200,400,600],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..77ac71990a516150c12d4a962d057d31756d9a70
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0030.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 UIComponentPopupboxModaltransitionSwipetorefresh0030 {
+
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("null_多挡位:detents[200,400,600]")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200,400,600],
+ preferType: SheetType.BOTTOM,
+ scrollSizeMode: null
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7e112afc48c96b6848f719d35c7844f3f2813a9b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0040.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 UIComponentPopupboxModaltransitionSwipetorefresh0040 {
+
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("不设置_多挡位:detents[SheetSize]")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ preferType: SheetType.BOTTOM,
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..75410ca0e46bcde7c27f8afe0c97b8644f0d9a1d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0050.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 UIComponentPopupboxModaltransitionSwipetorefresh0050 {
+
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("undefined_多挡位:detents[SheetSize]")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ preferType: SheetType.BOTTOM,
+ scrollSizeMode: undefined
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b30742b1dd4ef028a0529787477d860d897bbb89
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0060.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 UIComponentPopupboxModaltransitionSwipetorefresh0060 {
+
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("FOLLOW_多挡位:detents[SheetSize]")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ preferType: SheetType.BOTTOM,
+ scrollSizeMode: ScrollSizeMode.FOLLOW_DETENT
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..96649c2b5704eb50deed3b6be7d14b0d2f6655a9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0070.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 UIComponentPopupboxModaltransitionSwipetorefresh0070 {
+
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("CONTINUOUS_多挡位:detents[SheetSize]")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ preferType: SheetType.BOTTOM,
+ scrollSizeMode: ScrollSizeMode.CONTINUOUS
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3a4bd1b6e3caf8d57354e5aff605ef323fcedead
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0080.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 UIComponentPopupboxModaltransitionSwipetorefresh0080 {
+
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("null_多挡位:detents[SheetSize]")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200],
+ preferType: SheetType.BOTTOM,
+ scrollSizeMode: null
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4e7a5dd8a0af58f3c95c9fa3466587c761ec5fee
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0090.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 UIComponentPopupboxModaltransitionSwipetorefresh0090 {
+
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("FOLLOW_DETENT_多挡位:detents[200,400,600]")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200,400,600],
+ preferType: SheetType.BOTTOM,
+ scrollSizeMode: ScrollSizeMode.FOLLOW_DETENT
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..956dda1fc35a8d4d65c1a86837d3e1af0562b80f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0100.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 UIComponentPopupboxModaltransitionSwipetorefresh0100 {
+
+ @State isShow: boolean = false
+ @State currentDetents: (SheetSize | Length) = 0;
+ arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];
+
+ @Builder
+ myBuilder() {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(`item ${item}`).height(40)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+
+ build() {
+ Column() {
+ Button("CONTINUOUS_多挡位:detents[200,400,600]")
+ .id('button1')
+ .margin({top: 20})
+ .bindSheet(this.isShow, this.myBuilder, {
+ detents: [200,400,600],
+ preferType: SheetType.BOTTOM,
+ scrollSizeMode: ScrollSizeMode.CONTINUOUS
+ })
+ .onClick(() => {
+ this.isShow = true;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0260_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0260_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5de9d8d0d0c8c5ef522a179b2c26d2e1eebea544
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0260_1.ets
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxPickerold0260_1 {
+ build() {
+ Column() {
+ CalendarPicker({ selected: new Date('2024-03-05') })
+ .width('300vp').height('30vp')
+ .id('click')
+ }.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/UIComponentPopupboxPickerold0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cd9495ac3b1c77955e2f0847ebc8736f76c79c48
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0270.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 UIComponentPopupboxPickerold0270 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ CalendarPicker({ hintRadius: 10, selected: this.selectedDate })
+ .margin({ top: 100 })
+ .width(400)
+ .height(50)
+ .id('ComponentCalendarPicker')
+ .edgeAlign(CalendarAlign.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/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a596e40c04a374d571e8722e46ce7865c29718ad
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0280.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 UIComponentPopupboxPickerold0280 {
+ private selectedDate: Date = new Date('2024-10-14');
+
+ build() {
+ Column() {
+ CalendarPicker({ hintRadius: 10, selected: this.selectedDate })
+ .margin({ top: 100 })
+ .width(undefined)
+ .height(undefined)
+ .id('ComponentCalendarPicker')
+ .edgeAlign(CalendarAlign.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/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0600.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f80eb60ce4ffcb775bd620a0562cf20aab5ece5a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0600.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 UIComponentPopupboxPickerold0600 {
+ build() {
+ Column() {
+ DatePicker()
+ .width(250)
+ .height(180)
+ }
+ .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/UIComponentPopupboxPickerold0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0610.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b19e07f37710ed92697a5c1b6b0f7c23970e7a26
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0610.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 UIComponentPopupboxPickerold0610 {
+ build() {
+ Column() {
+ DatePicker()
+ .width(400)
+ .height(400)
+ }
+ .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/UIComponentPopupboxPickerold0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0620.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e15a2d295f5a604bcd17e5403883ef362439d30e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0620.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 UIComponentPopupboxPickerold0620 {
+ build() {
+ Column() {
+ DatePicker()
+ .width(undefined)
+ .height(undefined)
+ }
+ .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/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2f4d62355621648255a2ae244155d5e2e1497456
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0010.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 UIComponentPopupboxSpecificationsAlignment0010 {
+ @State message: string = 'Termination:'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0010Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+ }
+
+ build() {
+ Column() {
+ Text(this.message).margin(5)
+
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('90%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code + '错误:->' + error.message + '\n' + error.name;
+ })
+
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0010_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0010_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..20498bfa2c3632e80fcff90e50409925f209a72c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0010_1.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 UIComponentPopupboxSpecificationsAlignment0010_1 {
+ build() {
+ Column() {
+ Button('AlertDialog')
+ .id('UIComponentPopupboxSpecificationsAlignment0010_1_001')
+ .onClick(() => {
+ AlertDialog.show({
+ message: 'AlertDialog In UIExtension Window'
+ })
+ })
+ }
+ .justifyContent(FlexAlign.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/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1b79a837962453fc789b46e9a3e9f0638071bb7e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0040.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 UIComponentPopupboxSpecificationsAlignment0040 {
+ @State message: string = 'Termination:'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0040Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+ }
+
+ build() {
+ Column({space:3}) {
+ Text(this.message).margin(5)
+
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('90%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code + '错误:->' + error.message + '\n' + error.name;
+ })
+
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0040_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0040_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c0327b022fd0f0928bf6f348e436b6a1e81e777a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0040_1.ets
@@ -0,0 +1,76 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxSpecificationsAlignment0040_1 {
+ @State alignment: DialogAlignment = DialogAlignment.Top
+ private customController: CustomDialogController = new CustomDialogController({
+ builder: BuilderCustomDialog2({ closeDialog: this.closeCustomDialog }),
+ showInSubWindow: false
+ })
+
+ showCustomDialog(): void {
+ this.customController.open()
+ }
+
+ closeCustomDialog() {
+ this.customController.close()
+ }
+
+ build() {
+ Column() {
+ Button('CustomDialog')
+ .id('UIComponentPopupboxSpecificationsAlignment0040_1_001')
+ .onClick(() => {
+ this.showCustomDialog()
+ })
+
+ Button('点我')
+ .id('UIComponentPopupboxSpecificationsAlignment0040_1_002')
+ .onClick(() => {
+ AlertDialog.show({
+ message: '我是第二个弹窗'
+ })
+ })
+ }
+ .justifyContent(FlexAlign.Center)
+ .width('100%')
+ .height('100%')
+ }
+}
+
+@CustomDialog
+@Component
+struct BuilderCustomDialog2 {
+ customController: CustomDialogController
+ closeDialog: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('BuilderCustomDialog')
+
+ Button('closeDialog')
+ .id('UIComponentPopupboxSpecificationsAlignment0040_1_003')
+ .onClick(() => {
+ this.closeDialog()
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5b5d288679387abfcaa9f6fdaff930a592135332
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0180.ets
@@ -0,0 +1,84 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 { settings } from '@kit.BasicServicesKit'
+import Settings from '../../../test/model/Settings'
+import window from '@ohos.window';
+import { GlobalThis } from '../../../test/model/globalThis';
+
+@Entry
+@Component
+struct UIComponentPopupboxSpecificationsAlignment0180 {
+ @State flag: boolean = true;
+
+ showAlertDialog(): void {
+ this.getUIContext().showAlertDialog({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton:{
+ enabled: true,
+ defaultFocus: true,
+ value: 'alertbutton',
+ fontColor: 0x0000ff,
+ backgroundColor: 0x787878,
+ action: () => {
+ console.info("Button-clicking callback")
+ }
+ },
+ alignment: DialogAlignment.Bottom
+ })
+ }
+
+ build() {
+ Column({ space: 3 }) {
+ Button('changeWindows')
+ .onClick(() => {
+ // window.getLastWindow(GlobalThis.getInstance().getContext('context'))
+ // .then((windowClass:window.Window)=>{
+ // if(this.flag) {
+ // AlertDialog.show({message:'io'})
+ // windowClass?.resize(100,100)
+ // }else{
+ // //设置全萍
+ // windowClass?.setWindowLayoutFullScreen(true)
+ //
+ // }
+ // this.flag=!this.flag
+ // });
+ // if (this.flag) {
+ // Settings.windowClass?.resize(500, 500)
+ // } else {
+ // // Settings.windowClass?.setWindowLayoutFullScreen(true)
+ // Settings.windowClass?.resize(720, 1250)
+ // }
+ // this.flag = !this.flag
+ })
+ .margin({ top: 100 })
+ .id('changeWindow')
+
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({ top: 100 })
+ .id('showButtons')
+ }
+ .width('100%')
+ .height('100%')
+ .border({width:2})
+ .id('page')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fb876376f4766ef3b9d252806a256a09bb200983
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0200.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+import { settings } from '@kit.BasicServicesKit'
+import Settings from '../../../test/model/Settings'
+import window from '@ohos.window';
+import { GlobalThis } from '../../../test/model/globalThis';
+
+@Entry
+@Component
+struct UIComponentPopupboxSpecificationsAlignment0200 {
+
+ showAlertDialog(): void {
+
+ this.getUIContext().showAlertDialog({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton:{
+ enabled: true,
+ defaultFocus: true,
+ value: 'alertbutton',
+ fontColor: 0x0000ff,
+ backgroundColor: 0x787878,
+ action: () => {
+ console.info("Button-clicking callback")
+ }
+ },
+
+ alignment: DialogAlignment.Top,
+ offset:{dx:0,dy:20}
+ })
+ }
+
+ build() {
+ Column({ space: 3 }) {
+ Button('changeWindows')
+ .onClick(() => {
+
+ })
+ .margin({ top: 100 })
+ .id('changeWindow')
+
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({ top: 100 })
+ .id('showButtons')
+ }
+ .width('100%')
+ .height('100%')
+ .border({width:2})
+ .id('page')
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..59c369bdf51253c3ba275735ef668c725f493b4b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0220.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 UIComponentPopupboxSpecificationsAlignment0220 {
+ @State message: string = 'Termination:'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0220Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+ }
+
+ build() {
+ Column() {
+ Text(this.message).margin(5)
+
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('90%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code + '错误:->' + error.message + '\n' + error.name;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0220_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0220_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d25997d725387cee8d013c5022fcb0dddac6c8e1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0220_1.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 UIComponentPopupboxSpecificationsAlignment0220_1 {
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .id('UIComponentPopupboxSpecificationsAlignment0220_1_001')
+ .onClick(() => {
+ AlertDialog.show({
+ message: 'AlertDialog In UIExtension Window'
+ })
+ })
+ }
+ .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/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5291433910783f7fe21cfbc27353b3b07aca5b5d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0230.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 UIComponentPopupboxSpecificationsAlignment0230 {
+ @State message: string = 'Termination:'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0230Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+ }
+
+ build() {
+ Column() {
+ Text(this.message).margin(5)
+
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('90%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code + '错误:->' + error.message + '\n' + error.name;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0230_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0230_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..433a9b8cb29f36694149abaf5cf6b3392e038e11
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0230_1.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 UIComponentPopupboxSpecificationsAlignment0230_1 {
+ private customController: CustomDialogController = new CustomDialogController({
+ builder: BuilderCustomDialog3({ closeDialog: this.closeAlertDialog }),
+ showInSubWindow: false
+ })
+
+ showAlertDialog(): void {
+ this.customController.open()
+ }
+
+ closeAlertDialog() {
+ this.customController.close()
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .id('UIComponentPopupboxSpecificationsAlignment0230_1_001')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ }
+}
+
+@CustomDialog
+@Component
+struct BuilderCustomDialog3 {
+ customController: CustomDialogController
+ closeDialog: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('BuilderCustomDialog')
+ Button('button')
+ .id('UIComponentPopupboxSpecificationsAlignment0230_1_001_002')
+ .onClick(() => {
+ this.closeDialog()
+ })
+ }
+ .width('40%')
+ .height('50%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bf9675214e4f29951515efd43ef57b033ccc4999
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0240.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 UIComponentPopupboxSpecificationsAlignment0240 {
+ @State message: string = 'Termination:'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0240Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+ }
+
+ build() {
+ Column() {
+ Text(this.message).margin(5)
+
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('90%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code + '错误:->' + error.message + '\n' + error.name;
+ })
+
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0240_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0240_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7bcc7daaa2bddd2e3d279700d9816e7697c7ce5d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0240_1.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 UIComponentPopupboxSpecificationsAlignment0240_1 {
+ @State alignment: DialogAlignment = DialogAlignment.Top
+ private customController: CustomDialogController = new CustomDialogController({
+ builder: BuilderCustomDialog({ closeDialog: this.closeAlertDialog }),
+ showInSubWindow: false
+ })
+
+ showAlertDialog(): void {
+ this.customController.open()
+ }
+
+ closeAlertDialog() {
+ this.customController.close()
+ }
+
+ build() {
+ Column() {
+ Button('OpenCustomDialog')
+ .id('UIComponentPopupboxSpecificationsAlignment0240_1_001')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({ top: 100 })
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ }
+}
+
+@CustomDialog
+@Component
+struct BuilderCustomDialog {
+ customController: CustomDialogController
+ closeDialog: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('BuilderCustomDialog')
+
+ Button('button')
+ .id('UIComponentPopupboxSpecificationsAlignment0240_1_002')
+ .onClick(() => {
+ this.closeDialog()
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..53b73c0caf4b8ce33c8bb0e926303d404984159e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0250.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 UIComponentPopupboxSpecificationsAlignment0250 {
+ @State message: string = 'Termination:'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0250Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+ }
+
+ build() {
+ Column() {
+ Text(this.message).margin(5)
+
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('90%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code + '错误:->' + error.message + '\n' + error.name;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0250_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0250_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dd1ce748ac1f8291236c32061f1e82485ffe762d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0250_1.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 UIComponentPopupboxSpecificationsAlignment0250_1 {
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .id('UIComponentPopupboxSpecificationsAlignment0250_1_001')
+ .onClick(() => {
+ AlertDialog.show({
+ message: 'AlertDialog In UIExtension Window'
+ })
+ })
+ }
+ .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/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..06a87d2bac98ce7a5d57d286efc4f32e6b5397ab
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0260.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 UIComponentPopupboxSpecificationsAlignment0260 {
+ @State message: string = 'Termination:'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0260Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+ }
+
+ build() {
+ Column() {
+ Text(this.message).margin(5)
+
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('90%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code + '错误:->' + error.message + '\n' + error.name;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0260_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0260_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3feff2fe0497daaf87221dc97724e214cd96762d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0260_1.ets
@@ -0,0 +1,80 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxSpecificationsAlignment0260_1 {
+ build() {
+ Column() {
+ Button('click for dialog')
+ .id('UIComponentPopupboxSpecificationsAlignment0260_1_001')
+ .onClick(() => {
+ ActionSheet.show({
+ // 建议使用 this.getUIContext().showActionSheet()接口
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ autoCancel: true,
+ confirm: {
+ defaultFocus: true,
+ value: 'Confirm button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ cancel: () => {
+ console.log('actionSheet canceled')
+ },
+ onWillDismiss: (dismissDialogAction: DismissDialogAction) => {
+ console.info("reason=" + JSON.stringify(dismissDialogAction.reason))
+ console.log("dialog onWillDismiss")
+ if (dismissDialogAction.reason == DismissReason.PRESS_BACK) {
+ dismissDialogAction.dismiss()
+ }
+ if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) {
+ dismissDialogAction.dismiss()
+ }
+ },
+ alignment: DialogAlignment.Bottom,
+ offset: { dx: 0, dy: -10 },
+ sheets: [
+ {
+ title: 'apples',
+ action: () => {
+ console.log('apples')
+ }
+ },
+ {
+ title: 'bananas',
+ action: () => {
+ console.log('bananas')
+ }
+ },
+ {
+ title: 'pears',
+ action: () => {
+ console.log('pears')
+ }
+ }
+ ]
+ })
+ })
+ }
+ .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/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..140a8c42d3bcc3576e0be6af9fb75de3a67574f9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0270.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 UIComponentPopupboxSpecificationsAlignment0270 {
+ @State message: string = 'Termination:'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0270Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+ }
+
+ build() {
+ Column() {
+ Text(this.message).margin(5)
+
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('90%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code + '错误:->' + error.message + '\n' + error.name;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0270_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0270_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..036acedf7360071aa638798d1dcbe6efdd6fc751
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0270_1.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 UIComponentPopupboxSpecificationsAlignment0270_1 {
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .id('UIComponentPopupboxSpecificationsAlignment0270_1_001')
+ .onClick(() => {
+ AlertDialog.show({
+ message: 'AlertDialog In UIExtension Window'
+ })
+ })
+ .margin({ top: 100 })
+ }
+ .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/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dfbc066f6659524d0c9470631ed5ac599f3cf445
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0280.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 UIComponentPopupboxSpecificationsAlignment0280 {
+ @State message: string = 'Termination:'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0280Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+ }
+
+ build() {
+ Column() {
+ Text(this.message).margin(5)
+
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('90%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code + '错误:->' + error.message + '\n' + error.name;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0280_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0280_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..329ee440cd27aaeddf90267bf242348111a42576
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0280_1.ets
@@ -0,0 +1,78 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxSpecificationsAlignment0280_1 {
+ @State select: boolean = true
+ private iconStr: ResourceStr = $r("app.media.icon")
+ private iconStr2: ResourceStr = $r("app.media.icon")
+
+ @Builder
+ SubMenu() {
+ Menu() {
+ MenuItem({ content: "复制", labelInfo: "Ctrl+C" })
+ MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" })
+ }
+ }
+
+ @Builder
+ MyMenu() {
+ Menu() {
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ .enabled(false)
+ MenuItem({
+ startIcon: this.iconStr,
+ content: "菜单选项",
+ endIcon: this.iconStr2,
+ builder: (): void => this.SubMenu()
+ })
+ MenuItemGroup({ header: '小标题' }) {
+ MenuItem({
+ startIcon: this.iconStr,
+ content: "菜单选项",
+ endIcon: this.iconStr2,
+ builder: (): void => this.SubMenu()
+ })
+ MenuItem({
+ startIcon: $r("app.media.app_icon"),
+ content: "菜单选项",
+ endIcon: this.iconStr2,
+ builder: (): void => this.SubMenu()
+ })
+ }
+
+ MenuItem({
+ startIcon: this.iconStr,
+ content: "菜单选项",
+ })
+ }
+ }
+
+ build() {
+ Row() {
+ Column() {
+ Text('showActionMenu')
+ .id('UIComponentPopupboxSpecificationsAlignment0280_1_001')
+ .fontSize(50)
+ .fontWeight(FontWeight.Bold)
+ }
+ .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/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7b9574044d036296411cb05c66eadc31aea08315
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0290.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+import { settings } from '@kit.BasicServicesKit'
+import Settings from '../../../test/model/Settings'
+import window from '@ohos.window';
+import { GlobalThis } from '../../../test/model/globalThis';
+
+@Entry
+@Component
+struct UIComponentPopupboxSpecificationsAlignment0290 {
+ @State message:string='Termination:'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0290Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+ }
+
+ build() {
+ Column({ space: 1 }) {
+ Text(this.message)
+ .margin(5)
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('90%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code
+ +"错误:->"+error.message+"\n"+error.name;
+
+ })
+
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0290_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0290_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..adff7a39692ef07e6a51cc6e60f4cee5403f6e59
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0290_1.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+import { settings } from '@kit.BasicServicesKit'
+import Settings from '../../../test/model/Settings'
+import window from '@ohos.window';
+import { GlobalThis } from '../../../test/model/globalThis';
+
+@Entry
+@Component
+struct UIComponentPopupboxSpecificationsAlignment0290_1 {
+ @State alignment: DialogAlignment = DialogAlignment.Top;
+
+ showAlertDialog(): void {
+
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ autoCancel: true,
+ showInSubWindow: false,
+ confirm: {
+ defaultFocus: true,
+ value: 'button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ cancel: () => {
+ console.log('actionSheet canceled')
+ },
+ alignment: this.alignment,
+ sheets: [
+ {
+ title: 'apples',
+ action: () => {
+ console.log('apples')
+ }
+ },
+ {
+ title: 'bananas',
+ action: () => {
+ console.log('bananas')
+ }
+ },
+ {
+ title: 'pears',
+ action: () => {
+ console.log('pears')
+ }
+ }
+ ]
+ })
+
+
+ }
+
+ build() {
+ Column({ space: 1 }) {
+ Button('Top')
+ .id('Top')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Top
+ this.showAlertDialog()
+ })
+ Button('Center')
+ .id('Center')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Center
+ this.showAlertDialog()
+ })
+ Button('Bottom')
+ .id('Bottom')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Bottom
+ this.showAlertDialog()
+ })
+ Button('Default')
+ .id('Default')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Default
+ this.showAlertDialog()
+
+ })
+ Button('TopStant')
+ .id('TopStant')
+ .onClick(() => {
+ this.alignment = DialogAlignment.TopStart
+ this.showAlertDialog()
+ })
+ Button('TopEnd')
+ .id('TopEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.TopEnd
+ this.showAlertDialog()
+ })
+ Button('CenterStart')
+ .id('CenterStart')
+ .onClick(() => {
+ this.alignment = DialogAlignment.CenterStart
+ this.showAlertDialog()
+ })
+ Button('CenterEnd')
+ .id('CenterEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.CenterEnd
+ this.showAlertDialog()
+ })
+ Button('BottomStart')
+ .id('BottomStart')
+ .onClick(() => {
+ this.alignment = DialogAlignment.BottomStart
+ this.showAlertDialog()
+ })
+ Button('BottomEnd')
+ .id('BottomEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.BottomEnd
+ this.showAlertDialog()
+ })
+
+
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({ top: 100 })
+ .id('showButtons')
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a176a45e449d398f6803f64427c85efd39e17909
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0300.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 UIComponentPopupboxSpecificationsAlignment0300 {
+ @State message: string = 'Termination:'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0300Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+ }
+
+ build() {
+ Column() {
+ Text(this.message).margin(5)
+
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('90%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code + '错误:->' + error.message + '\n' + error.name;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0300_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0300_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..774b55cea76945435a660e88b1abf7f7cd4a01d9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0300_1.ets
@@ -0,0 +1,140 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxSpecificationsAlignment0300_1 {
+ @State alignment: DialogAlignment = DialogAlignment.Top
+ private customController: CustomDialogController = new CustomDialogController({
+ builder: BuilderCustomDialog5({ closeDialog: this.closeAlertDialog }),
+ showInSubWindow: false
+ })
+
+ showAlertDialog(): void {
+ this.customController.open()
+ }
+
+ closeAlertDialog() {
+ this.customController.close()
+ }
+
+ build() {
+ Column({ space: 5 }) {
+ Button('Top')
+ .id('Top')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Top
+ this.showAlertDialog()
+ })
+ Button('Center')
+ .id('Center')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Center
+ this.showAlertDialog()
+ })
+ Button('Bottom')
+ .id('Bottom')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Bottom
+ this.showAlertDialog()
+ })
+ Button('Default')
+ .id('Default')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Default
+ this.showAlertDialog()
+
+ })
+ Button('TopStart')
+ .id('TopStart')
+ .onClick(() => {
+ this.alignment = DialogAlignment.TopStart
+ this.showAlertDialog()
+ })
+ Button('TopEnd')
+ .id('TopEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.TopEnd
+ this.showAlertDialog()
+ })
+ Button('CenterStart')
+ .id('CenterStart')
+ .onClick(() => {
+ this.alignment = DialogAlignment.CenterStart
+ this.showAlertDialog()
+ })
+ Button('CenterEnd')
+ .id('CenterEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.CenterEnd
+ this.showAlertDialog()
+ })
+ Button('BottomStart')
+ .id('BottomStart')
+ .onClick(() => {
+ this.alignment = DialogAlignment.BottomStart
+ this.showAlertDialog()
+ })
+ Button('BottomEnd')
+ .id('BottomEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.BottomEnd
+ this.showAlertDialog()
+ })
+
+
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+
+ // window.getLastWindow(getContext()).then((windows: window.Window) => {
+ // windows.destroyWindow()
+ // })
+ // .catch(() => {
+ // AlertDialog.show({ message: '错误' })
+ // })
+ })
+ .margin({ top: 100 })
+ .id('showButtons')
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+@CustomDialog
+@Component
+struct BuilderCustomDialog5 {
+ customController: CustomDialogController
+ closeDialog: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('BuilderCustomDialog')
+
+ Button('button')
+ .id('button')
+ .onClick(() => {
+ this.closeDialog()
+ })
+ }
+ .width('30%')
+ .height('20%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0967ce49d39e3a29b07530d37cc5706b81074ab9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0310.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 UIComponentPopupboxSpecificationsAlignment0310 {
+ @State message: string = 'Termination:'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0310Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+
+ }
+
+ build() {
+ Column() {
+ Text(this.message)
+ .margin(5)
+
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('90%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code + '错误:->' + error.message + '\n' + error.name;
+ })
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0310_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0310_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bd3bb8453b10bf85170d03ef7ce2f7fe325ec7e1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0310_1.ets
@@ -0,0 +1,140 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupboxSpecificationsAlignment0310_1 {
+ @State alignment: DialogAlignment = DialogAlignment.Top
+ private customController: CustomDialogController = new CustomDialogController({
+ builder: BuilderCustomDialog1({ closeDialog: this.closeAlertDialog }),
+ showInSubWindow: false
+ })
+
+ showAlertDialog(): void {
+ this.customController.open()
+ }
+
+ closeAlertDialog() {
+ this.customController.close()
+ }
+
+ build() {
+ Column({ space: 5 }) {
+ Button('Top')
+ .id('Top')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Top
+ this.showAlertDialog()
+ })
+ Button('Center')
+ .id('Center')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Center
+ this.showAlertDialog()
+ })
+ Button('Bottom')
+ .id('Bottom')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Bottom
+ this.showAlertDialog()
+ })
+ Button('Default')
+ .id('Default')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Default
+ this.showAlertDialog()
+
+ })
+ Button('TopStart')
+ .id('TopStart')
+ .onClick(() => {
+ this.alignment = DialogAlignment.TopStart
+ this.showAlertDialog()
+ })
+ Button('TopEnd')
+ .id('TopEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.TopEnd
+ this.showAlertDialog()
+ })
+ Button('CenterStart')
+ .id('CenterStart')
+ .onClick(() => {
+ this.alignment = DialogAlignment.CenterStart
+ this.showAlertDialog()
+ })
+ Button('CenterEnd')
+ .id('CenterEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.CenterEnd
+ this.showAlertDialog()
+ })
+ Button('BottomStart')
+ .id('BottomStart')
+ .onClick(() => {
+ this.alignment = DialogAlignment.BottomStart
+ this.showAlertDialog()
+ })
+ Button('BottomEnd')
+ .id('BottomEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.BottomEnd
+ this.showAlertDialog()
+ })
+
+
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+
+ // window.getLastWindow(getContext()).then((windows: window.Window) => {
+ // windows.destroyWindow()
+ // })
+ // .catch(() => {
+ // AlertDialog.show({ message: '错误' })
+ // })
+ })
+ .margin({ top: 100 })
+ .id('showButtons')
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+@CustomDialog
+@Component
+struct BuilderCustomDialog1 {
+ customController: CustomDialogController
+ closeDialog: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('BuilderCustomDialog')
+
+ Button('button')
+ .id('button')
+ .onClick(() => {
+ this.closeDialog()
+ })
+ }
+ .width('40%')
+ .height('20%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a09e292db24fc395a9cb30a48896f7ea7875e21c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0320.ets
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+import { settings } from '@kit.BasicServicesKit'
+import Settings from '../../../test/model/Settings'
+import window from '@ohos.window';
+import { GlobalThis } from '../../../test/model/globalThis';
+
+@Entry
+@Component
+struct UIComponentPopupboxSpecificationsAlignment0290 {
+ @State message:string='Termination:'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0320Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+ }
+
+ build() {
+ Column({ space: 1 }) {
+ Text(this.message)
+ .margin(5)
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('90%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code
+ +"错误:->"+error.message+"\n"+error.name;
+
+ })
+
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0320_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0320_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2d92a1f2e7642005bce84157c1f9bf93868263b7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0320_1.ets
@@ -0,0 +1,148 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 { settings } from '@kit.BasicServicesKit'
+import Settings from '../../../test/model/Settings'
+import window from '@ohos.window';
+import { GlobalThis } from '../../../test/model/globalThis';
+
+@Entry
+@Component
+struct UIComponentPopupboxSpecificationsAlignment0330 {
+ @State alignment: DialogAlignment = DialogAlignment.Top;
+ customCroller: CustomDialogController = new CustomDialogController({
+ builder: BuilderCustomDialog({ closeDiog: this.closeBtn }),
+ showInSubWindow: false
+ })
+
+ showAlertDialog(): void {
+
+ this.customCroller.open()
+
+
+ }
+
+ closeBtn() {
+ this.customCroller.close()
+ }
+
+ build() {
+ Column({ space: 1 }) {
+ Button('Top')
+ .id('Top')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Top
+ this.showAlertDialog()
+ })
+ Button('Center')
+ .id('Center')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Center
+ this.showAlertDialog()
+ })
+ Button('Bottom')
+ .id('Bottom')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Bottom
+ this.showAlertDialog()
+ })
+ Button('Default')
+ .id('Default')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Default
+ this.showAlertDialog()
+
+ })
+ Button('TopStant')
+ .id('TopStant')
+ .onClick(() => {
+ this.alignment = DialogAlignment.TopStart
+ this.showAlertDialog()
+ })
+ Button('TopEnd')
+ .id('TopEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.TopEnd
+ this.showAlertDialog()
+ })
+ Button('CenterStart')
+ .id('CenterStart')
+ .onClick(() => {
+ this.alignment = DialogAlignment.CenterStart
+ this.showAlertDialog()
+ })
+ Button('CenterEnd')
+ .id('CenterEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.CenterEnd
+ this.showAlertDialog()
+ })
+ Button('BottomStart')
+ .id('BottomStart')
+ .onClick(() => {
+ this.alignment = DialogAlignment.BottomStart
+ this.showAlertDialog()
+ })
+ Button('BottomEnd')
+ .id('BottomEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.BottomEnd
+ this.showAlertDialog()
+ })
+
+
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+
+ // window.getLastWindow(getContext()).then((windows: window.Window) => {
+ // windows.destroyWindow()
+ // })
+ // .catch(() => {
+ // AlertDialog.show({ message: '错误' })
+ // })
+ })
+ .margin({ top: 100 })
+ .id('showButtons')
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+ }
+}
+
+
+@CustomDialog
+@Component
+struct BuilderCustomDialog {
+ customerCroller: CustomDialogController
+ closeDiog: () => void = () => {
+ }
+
+ build() {
+ Column() {
+ Text('BuilderCustomDialog')
+ Button('button')
+ .id('button')
+ .onClick(() => {
+ this.customerCroller.close()
+ })
+ }
+ .width('40%')
+ .height('20%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0330.ets
new file mode 100644
index 0000000000000000000000000000000000000000..088856202c4515ef5b62a3ef224fa79968318a67
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0330.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+import { settings } from '@kit.BasicServicesKit'
+import Settings from '../../../test/model/Settings'
+import window from '@ohos.window';
+import { GlobalThis } from '../../../test/model/globalThis';
+
+@Entry
+@Component
+struct UIComponentPopupboxSpecificationsAlignment0330 {
+ @State message:string='Termination:----'
+ private want: Want = {
+ deviceId: '',
+ bundleName: "com.example.uicompare",
+ moduleName: 'entry_test',
+ abilityName: "UIComponentPopupboxSpecificationsAlignment0330Ability",
+ parameters: {
+ "ability.want.params.uiExtensionType": "sys/commonUI",
+ }
+ }
+
+ build() {
+ Column({ space: 1 }) {
+ Text(this.message)
+ .margin(2)
+ UIExtensionComponent(this.want)
+ .width('100%')
+ .height('80%')
+ .onTerminated((info) => {
+ this.message = 'Termination: code = ' + info.code + ', want = ' + JSON.stringify(info.want);
+ })
+ .onError((error) => {
+ this.message = 'Error: code = ' + error.code
+ +"错误:->"+error.message+"\n"+error.name;
+
+ })
+
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0330_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0330_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d5d46ba6dc4dd3c1077b544a9de4e00553f9599c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0330_1.ets
@@ -0,0 +1,132 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+import { settings } from '@kit.BasicServicesKit'
+import Settings from '../../../test/model/Settings'
+import window from '@ohos.window';
+import { GlobalThis } from '../../../test/model/globalThis';
+
+@Entry
+@Component
+struct UIComponentPopupboxSpecificationsAlignment0330_1{
+ @State alignment: DialogAlignment = DialogAlignment.Top;
+
+ showAlertDialog(): void {
+
+ AlertDialog.show({
+ title: 'AlertDialog title',
+ subtitle: 'AlertDialog subtitle',
+ message: 'message',
+ autoCancel: true,
+ showInSubWindow: false,
+ offset:{dx:0,dy:-10},
+ // width:'90%',
+ // height:'90%',
+ primaryButton: {
+ defaultFocus: true,
+ value: 'button',
+ action: () => {
+ console.log('Get Alert Dialog handled')
+ }
+ },
+ cancel: () => {
+ console.log('AlertDialog canceled')
+ },
+ alignment: this.alignment,
+ })
+
+
+ }
+
+ build() {
+ Column({ space: 3 }) {
+ Button('Top')
+ .id('Top')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Top
+ this.showAlertDialog()
+ })
+ Button('Center')
+ .id('Center')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Center
+ this.showAlertDialog()
+ })
+ Button('Bottom')
+ .id('Bottom')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Bottom
+ this.showAlertDialog()
+ })
+ Button('Default')
+ .id('Default')
+ .onClick(() => {
+ this.alignment = DialogAlignment.Default
+ this.showAlertDialog()
+
+ })
+ Button('TopStant')
+ .id('TopStant')
+ .onClick(() => {
+ this.alignment = DialogAlignment.TopStart
+ this.showAlertDialog()
+ })
+ Button('TopEnd')
+ .id('TopEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.TopEnd
+ this.showAlertDialog()
+ })
+ Button('CenterStart')
+ .id('CenterStart')
+ .onClick(() => {
+ this.alignment = DialogAlignment.CenterStart
+ this.showAlertDialog()
+ })
+ Button('CenterEnd')
+ .id('CenterEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.CenterEnd
+ this.showAlertDialog();
+ })
+ Button('BottomStart')
+ .id('BottomStart')
+ .onClick(() => {
+ this.alignment = DialogAlignment.BottomStart
+ this.showAlertDialog()
+ })
+ Button('BottomEnd')
+ .id('BottomEnd')
+ .onClick(() => {
+ this.alignment = DialogAlignment.BottomEnd
+ this.showAlertDialog();
+ })
+
+
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog();
+ })
+ .margin({ top: 90 })
+ .id('showButtons')
+ }
+ .width('100%')
+ .height('100%')
+ .border({ width: 2 })
+ .id('page')
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6afa391e9d21b417d054730f6e6a05532387bfbe
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0020.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxStyleStrong0020 {
+ build() {
+ Row() {
+ Button('40')
+ .id('Action1')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ autoCancel: true,
+ height: 40,
+ sheets: [
+ {
+ title:'a',
+ action:()=>{}
+ },
+ {
+ title:'b',
+ action:()=>{}
+ },
+ {
+ title:'c',
+ action:()=>{}
+ },
+ ]
+ })
+ })
+ Button('100%')
+ .margin(20)
+ .id('Action2')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ autoCancel: true,
+ height: '100%',
+ sheets: [
+ {
+ title:'a',
+ action:()=>{}
+ },
+ {
+ title:'b',
+ action:()=>{}
+ },
+ {
+ title:'c',
+ action:()=>{}
+ },
+ ]
+ })
+ })
+ Button('10000')
+ .margin(20)
+ .id('Action3')
+ .onClick(() => {
+ ActionSheet.show({
+ title: 'ActionSheet title',
+ subtitle: 'ActionSheet subtitle',
+ message: 'message',
+ autoCancel: true,
+ height: 10000,
+ sheets: [
+ {
+ title:'a',
+ action:()=>{}
+ },
+ {
+ title:'b',
+ action:()=>{}
+ },
+ {
+ title:'c',
+ action:()=>{}
+ },
+ ]
+ })
+ })
+ }.width('100%').justifyContent(FlexAlign.Start)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b16c60e3067835138f5cdf8e149a469344a79f61
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0030.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxStyleStrong0030 {
+
+ showActionSheet(style: BlurStyle | null): void {
+ ActionSheet.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: {
+ value: 'OK',
+ defaultFocus: true,
+ action: () => {
+
+ }
+ },
+ sheets: [
+ {title: 'One', action: () => {
+
+ }},
+ {title: 'Two', action: () => {
+
+ }},
+ {title: 'Three', action: () => {
+
+ }}
+ ],
+ backgroundBlurStyle: style
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Default')
+ .onClick(() => {
+ this.showActionSheet(null)
+ })
+ .margin({top: 100})
+ .id('showButtonDefault')
+ Button('Blur')
+ .onClick(() => {
+ this.showActionSheet(BlurStyle.COMPONENT_ULTRA_THICK)
+ })
+ .margin({top: 100})
+ .id('showButtonBlur')
+ }.width('100%').height('100%').id('page')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..748fb29c49f856e63af4e69043e91881a97f86b4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0040.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxStyleStrong0040 {
+
+ showActionSheet(): void {
+ ActionSheet.show({
+ title: 'Test',
+ message: 'Hello World',
+ confirm: {
+ value: 'OK',
+ defaultFocus: true,
+ action: () => {
+
+ }
+ },
+ sheets: [
+ {title: 'One', action: () => {
+
+ }},
+ {title: 'Two', action: () => {
+
+ }},
+ {title: 'Three', action: () => {
+
+ }}
+ ],
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.showActionSheet()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ }.width('100%').height('100%').id('page')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..50c4100204bb5f3acaf29060e5951cef1c1a0b05
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0050.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 UIComponentPopupboxStyleStrong0050 {
+
+ dialogControllerDefault: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogDefaultExample(),
+ })
+
+ dialogControllerBlur: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogBlurExample(),
+ })
+
+ build() {
+ Column() {
+ Button('Default')
+ .onClick(() => {
+ this.dialogControllerDefault.open()
+ })
+ .margin({top: 100})
+ .id('showButtonDefault')
+ Button('Blur')
+ .onClick(() => {
+ this.dialogControllerBlur.open()
+ })
+ .margin({top: 100})
+ .id('showButtonBlur')
+ }.width('100%').height('100%')
+ }
+}
+
+@CustomDialog
+struct CustomDialogDefaultExample {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogDefaultExample({}),
+ backgroundBlurStyle: BlurStyle.COMPONENT_ULTRA_THICK
+ })
+
+ build() {
+ Column() {
+ Text('默认')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogBlurExample {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogBlurExample({}),
+ backgroundBlurStyle: BlurStyle.BACKGROUND_THIN
+ })
+
+ build() {
+ Column() {
+ Text('模糊材质')
+ }
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fa559ea6745de3fdfe341076846c12633a7e0ee3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0060.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxStyleStrong0060 {
+
+ showAlertDialog(): void {
+ AlertDialog.show({
+ title: 'Test',
+ message: 'Hello World',
+ primaryButton: { value: 'Primary', action: () => {
+
+ }},
+ secondaryButton: { value: 'Secondary', action: () => {
+
+ }},
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Show AlertDialog')
+ .onClick(() => {
+ this.showAlertDialog()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ }.width('100%').height('100%').id('page')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b8d1fc28cdee8487fb046f87421e79f3f421a8ff
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0080.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.
+ */
+@Entry
+@Component
+struct UIComponentPopupboxStyleStrong0080 {
+ build() {
+ Row() {
+ Button('40')
+ .id('AlertDialog1')
+ .onClick(() => {
+ AlertDialog.show({
+ title: 'AlertDialog 40',
+ subtitle: 'subtitle',
+ message: 'text',
+ autoCancel: true,
+ height: 40,
+ confirm: {
+ value: 'button',
+ action: () => {
+ console.info('Button-clicking callback')
+ }
+ },
+ })
+ })
+ Button('100')
+ .margin(20)
+ .id('AlertDialog2')
+ .onClick(() => {
+ AlertDialog.show({
+ title: 'AlertDialog 100',
+ subtitle: 'subtitle',
+ message: 'text',
+ autoCancel: true,
+ height: '100%',
+ confirm: {
+ value: 'button',
+ action: () => {
+ console.info('Button-clicking callback')
+ }
+ },
+ })
+ })
+ Button('10000')
+ .margin(20)
+ .id('AlertDialog3')
+ .onClick(() => {
+ AlertDialog.show({
+ title: 'AlertDialog 10000',
+ subtitle: 'subtitle',
+ message: 'text',
+ autoCancel: true,
+ height: 10000,
+ confirm: {
+ value: 'button',
+ action: () => {
+ console.info('Button-clicking callback')
+ }
+ },
+ })
+ })
+ }.width('100%').justifyContent(FlexAlign.Start)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3bb97b853e4c5bd58c515fad47188dc171ffe204
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0130.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxStyleStrong0130 {
+
+ dialogController1: CustomDialogController = new CustomDialogController({
+ builder: CustomDialog1(),
+ })
+ dialogController2: CustomDialogController = new CustomDialogController({
+ builder: CustomDialog2(),
+ })
+ dialogController3: CustomDialogController = new CustomDialogController({
+ builder: CustomDialog3(),
+ })
+ build() {
+ Column() {
+ Button('40')
+ .onClick(() => {
+ this.dialogController1.open()
+ })
+ .margin({top: 100})
+ .id('showButton1')
+ Button('100%')
+ .onClick(() => {
+ this.dialogController2.open()
+ })
+ .margin({top: 100})
+ .id('showButton2')
+ Button('10000')
+ .onClick(() => {
+ this.dialogController3.open()
+ })
+ .margin({top: 100})
+ .id('showButton3')
+ }.width('100%').height('100%')
+ }
+}
+
+@CustomDialog
+struct CustomDialog1 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CustomDialog1({}),
+ customStyle: true,
+ height:40
+ })
+ build() {
+ Column() {
+ Text('高度40')
+ }.height(40)
+ }
+}
+@CustomDialog
+struct CustomDialog2 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CustomDialog2({}),
+ customStyle: true,
+ height:'100%'
+ })
+ build() {
+ Column() {
+ Text('高度100%')
+ }.height('100%')
+ }
+}
+@CustomDialog
+struct CustomDialog3 {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CustomDialog3({}),
+ customStyle: true,
+ height:10000
+ })
+ build() {
+ Column() {
+ Text('高度10000')
+ }
+ }
+}
+
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cb875e991397ba18d102c99f2b03f3c701772b53
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0140.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxStyleStrong0140 {
+
+ dialogControllerDefault: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogDefaultExample(),
+ })
+
+ dialogControllerBlur: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogBlurExample(),
+ })
+
+ build() {
+ Column() {
+ Button('Default')
+ .onClick(() => {
+ this.dialogControllerDefault.open()
+ })
+ .margin({top: 100})
+ .id('showButtonDefault')
+ Button('Blur')
+ .onClick(() => {
+ this.dialogControllerBlur.open()
+ })
+ .margin({top: 100})
+ .id('showButtonBlur')
+ }.width('100%').height('100%')
+ }
+}
+
+@CustomDialog
+struct CustomDialogDefaultExample {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogDefaultExample({}),
+ customStyle: true
+ })
+
+ build() {
+ Column() {
+ Text('Hello World')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogBlurExample {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogBlurExample({}),
+ })
+
+ build() {
+ Column() {
+ Text('Hello World')
+ }
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cf2232716601bc6e1ce03397a746777b14d0b45a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0150.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 UIComponentPopupboxStyleStrong0150 {
+
+ dialogControllerDefault: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogDefaultExample(),
+ })
+
+ dialogControllerBlur: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogBlurExample(),
+ })
+
+ build() {
+ Column() {
+ Button('Default')
+ .onClick(() => {
+ this.dialogControllerDefault.open()
+ })
+ .margin({top: 100})
+ .id('showButtonDefault')
+ Button('Blur')
+ .onClick(() => {
+ this.dialogControllerBlur.open()
+ })
+ .margin({top: 100})
+ .id('showButtonBlur')
+ }.width('100%').height('100%')
+ }
+}
+
+@CustomDialog
+struct CustomDialogDefaultExample {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogDefaultExample({}),
+ customStyle: true,
+ backgroundBlurStyle: BlurStyle.COMPONENT_ULTRA_THICK
+ })
+
+ build() {
+ Column() {
+ Text('默认')
+ }
+ }
+}
+
+@CustomDialog
+struct CustomDialogBlurExample {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogBlurExample({}),
+ customStyle: true,
+ backgroundBlurStyle: BlurStyle.BACKGROUND_THIN
+ })
+
+ build() {
+ Column() {
+ Text('模糊材质')
+ }
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1f95b485514fc9c48ee4c01358da233b1759b73c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0160.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxStyleStrong0160 {
+
+ dialogController: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogExample(),
+ })
+
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.dialogController.open()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ }.width('100%').height('100%')
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogExample({}),
+ customStyle: false
+ })
+
+ build() {
+ Column() {
+ Text('Hello World')
+ }
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1ea5dbe85ec431153b96a8e4999498db9e2d56b8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0170.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 '@ohos.app.ability.ConfigurationConstant'
+
+@Entry
+@Component
+struct UIComponentPopupboxStyleStrong0170 {
+
+ dialogController: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogExample(),
+ })
+
+ build() {
+ Column() {
+ Button('Show')
+ .onClick(() => {
+ this.dialogController.open()
+ })
+ .margin({top: 100})
+ .id('showButton')
+ }.width('100%').height('100%')
+ }
+}
+
+@CustomDialog
+struct CustomDialogExample {
+ controller: CustomDialogController = new CustomDialogController({
+ builder: CustomDialogExample({}),
+ customStyle: true
+ })
+
+ build() {
+ Column() {
+ Text('Hello World')
+ }
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7f74687421fec835956af0aa0adbf2097f4439de
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0190.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIComponentPopupboxStyleStrong0190 {
+
+ showActionSheet(style: BlurStyle | null): void {
+ DatePickerDialog.show({
+ backgroundBlurStyle: style
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Default')
+ .onClick(() => {
+ this.showActionSheet(null)
+ })
+ .margin({top: 100})
+ .id('showButtonDefault')
+ Button('Blur')
+ .onClick(() => {
+ this.showActionSheet(BlurStyle.COMPONENT_ULTRA_THICK)
+ })
+ .margin({top: 100})
+ .id('showButtonBlur')
+ }.width('100%').height('100%').id('page')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..867c9bb3ca432cc5bed42aeca54cba95074041d9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0200.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 UIComponentPopupboxStyleStrong0200 {
+ build() {
+ Column() {
+ Button('默认效果')
+ .onClick(() => {
+ DatePickerDialog.show({
+ start: new Date("2000-1-1"),
+ end: new Date("2100-12-31"),
+ })
+ })
+ .id('btn')
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..92bff95a2b9cee2bd782fac17e688a1533590019
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0220.ets
@@ -0,0 +1,90 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct UIComponentPopupboxStyleStrong0220 {
+ @Builder customDialogComponent1() {
+ Column() {
+ Text('弹窗').fontSize(30)
+ Row({ space: 50 }) {
+ Button("确认").onClick(() => {
+ promptAction.closeCustomDialog(1)
+ })
+ Button("取消").onClick(() => {
+ promptAction.closeCustomDialog(0)
+ })
+ }
+ }.height(40).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+ @Builder customDialogComponent2() {
+ Column() {
+ Text('弹窗').fontSize(30)
+ Row({ space: 50 }) {
+ Button("确认").onClick(() => {
+ promptAction.closeCustomDialog(1)
+ })
+ Button("取消").onClick(() => {
+ promptAction.closeCustomDialog(0)
+ })
+ }
+ }.height('100%').padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+ @Builder customDialogComponent3() {
+ Column() {
+ Text('弹窗').fontSize(30)
+ Row({ space: 50 }) {
+ Button("确认").onClick(() => {
+ promptAction.closeCustomDialog(1)
+ })
+ Button("取消").onClick(() => {
+ promptAction.closeCustomDialog(0)
+ })
+ }
+ }.height(10000).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+ build() {
+ Row() {
+ Button('40')
+ .id('openCustomDialog1')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder:()=>{
+ this.customDialogComponent1()
+ }
+ })
+ })
+ Button('100')
+ .id('openCustomDialog2')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder:()=>{
+ this.customDialogComponent2()
+ }
+ })
+ })
+ Button('10000')
+ .id('openCustomDialog3')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder:()=>{
+ this.customDialogComponent3()
+ }
+ })
+ })
+ }.width('100%').justifyContent(FlexAlign.Start).height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..865a1068bd7c1de1c29ec2f4030b9ceb5b660061
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0230.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 ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'
+import { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct UIComponentPopupboxStyleStrong0230 {
+
+ @Builder customDialogComponent() {
+ Column() {
+ Text('Test').fontSize(30)
+ Row({ space: 50 }) {
+ Button("OK").onClick(() => {
+
+ })
+ Button("Cancel").onClick(() => {
+
+ })
+ }
+ }.height(200).padding(5).justifyContent(FlexAlign.SpaceBetween)
+ }
+
+ showActionSheet(style: BlurStyle | null): void {
+ promptAction.openCustomDialog({
+ builder: () => {
+ this.customDialogComponent()
+ },
+ backgroundBlurStyle: style
+ })
+ }
+
+ build() {
+ Column() {
+ Button('Default')
+ .onClick(() => {
+ this.showActionSheet(null)
+ })
+ .margin({top: 100})
+ .id('showButtonDefault')
+ Button('Blur')
+ .onClick(() => {
+ this.showActionSheet(BlurStyle.COMPONENT_ULTRA_THICK)
+ })
+ .margin({top: 100})
+ .id('showButtonBlur')
+ }.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/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ac5da849b86afb11c27e64e560cabd5c841a2ef1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0240.ets
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { promptAction } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct UIComponentPopupboxStyleStrong0240 {
+ @Builder customDialogComponent() {
+ Column() {
+ Text('弹窗').fontSize(30)
+ Row({ space: 50 }) {
+ Button("确认").onClick(() => {
+ promptAction.closeCustomDialog(1)
+ })
+ Button("取消").onClick(() => {
+ promptAction.closeCustomDialog(0)
+ })
+ }
+ }
+ }
+ build() {
+ Row() {
+ Button('默认效果')
+ .id('openCustomDialog')
+ .onClick(() => {
+ promptAction.openCustomDialog({
+ builder:()=>{
+ this.customDialogComponent()
+ }
+ })
+ })
+ }.width('100%').justifyContent(FlexAlign.Start).height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010.ets
index e31d9512aecc683ecb95a3a43cc48e76ede0eaa7..b8f723d64ac9ec43f4ba601d27d9546da5294f08 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030.ets
index 9aff3705b96b36d47284b3ee99abb9584abf0e6d..395a30126de1e0f732a42d8ae020eea1096466f7 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060.ets
index 573732910f548f487a1d3cf0010d13baa7f4f201..26846a37c95ab823185143d801f04c9ecce3c167 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140.ets
index a2f7f529303afcf24428b490fdec8ccbc8d6415f..6addd7bf8af934dc68f282abcde924ba09bb1d7e 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820.ets
index b6453c037b2651f8b159286d8827c851f2c1d676..a24d165567f49af9b0e0d9f1ef8d1e7298a65c90 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830.ets
index ed023a05d2f3029b7c0ba66244aea4de717a4d5e..17c16b1db9206b8df12e7ac73b78a801a0b70a43 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890.ets
index 0b906418cdcdb68188544560af0d492b161e6d4d..853c9144562e14d2c7fa80970860244f99e9be10 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960.ets
index 41785120074dad1b9a6e694d7cc1f69048d63566..294aff824f137ea21a5ccb6fa8b895bc6d6f9601 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980.ets
index d5ff8217dea0ada69db1bd6ec4e9fe045bd7db99..d3404d8395b9d4a99de5a1f4bd51dc11d617df9a 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990.ets
index 70fa20d68964335a0c485aa218c703742ca3549a..686f7e61f12ec1a1052ae477a5ef8ab5e37c5d97 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180.ets
index 9a58bb458ea0bf8187e75fb0bb0f42e5b9baa921..26c731633870dc579fb50995c7bf33206d76d045 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190.ets
index 975b94e9e65ef3b41b336c80e5a08ae7778447cc..0e598c669a5fd9a77dff3a5b02cef87fdb845037 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200.ets
index f94360a8d4f0f5c4a6c3ad6c165a69f62de2a1da..d76e0bb906eeea2f32582612bce80a0be359271b 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210.ets
index e9712267ee27dab37a9eb1573a849c6db9735d7d..542d52d0965c3394e60d9281b56f730762160007 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230.ets
index 2c7058c5c164d4326b81935dfbb64d02f3629700..9be6bcac8ca39a0c0be2b0b2c2f575fee762d717 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330.ets
index 88195bc511d7f94ccdc4fe007ea7985aa3f4cf62..86f83795c94ee0bf3b93faafd4af22246f5debb2 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340.ets
index d3b880ae1a8f7e6cdffca6958371375f6fa5b596..b7cebb31ed15e99dec772e9ac6794b07a0e815cf 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350.ets
index 741ccd0beaefb614e02b1c0001378bd478cb9c08..647dff8aea930207d7eed47497947e73ab708035 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460.ets
index 36fbedd9e6f23168e041f8e485e5444cfd2b37ac..85d2d903418b1ef455e00318be1a7a3e4504e99b 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560.ets
index 9ec4b05b005dc4253f2ced1eee43c37aabc2761f..7c3d701bea82461b3a6556c485996e2aaf44e0e8 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570.ets
index 69c6e1b96abe877f2f0b2710e5c89e38263a380a..6af25e27f03fdf5d2ca0836b6763a6ed0e61aeab 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720.ets
index 677562985bdde87e3b4f0ccd3386a7cf7c4ffb89..8b543d388b010e708bbe6a4e33d149fa8b72496c 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790.ets
index 96bc460e2cf32e7ada48f78c6b01e21b676ccf1a..2569b04247886990a5028f89f9b06d30f5d9a09e 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160.ets
index 76f68d4257b3297f92bdd418b34db5cc351b9039..5af748f6d067607efa971964b2d78f95eae5e041 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300.ets
index b1b2fb9ae7aaf7672b3e47bad77e3dab7967372f..81eaa5ea3963afea38921b9459ce99566a10b7bb 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310.ets
index bcdaa70c79157f0aa5bed67382f2bc67943d640e..cf2190c1ab6c1b401fd0885f3ba4a2791cb22786 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330.ets
index 3be10976214507808894bd3fff42e6ecf09dac31..c22b43c3e9c9f83fd786a8c2755a439f638c4986 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340.ets
index 8cd9cf67b7561f3fbc6251da383c087d3c30d332..1c8e96127caeea637d292112e1803b1c69e6c6f9 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350.ets
index 538c00b980f9458f124b2be00db704b011e3246e..6a80d239081954ce07a24706dd2aa9d984c74455 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380.ets
index 223417106e7c6922a61936cdd544b8cf9271db93..8a2306f5c121b0e764ebd93871fbf68a4a8a1107 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390.ets
index e4fe1d8902d90efcedb3dba923ea4b78c2b58d50..5b1e96e25d04d717bc3e655a3a7cc1776591bf55 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430.ets
index dd170251cbdc100e2585bf8c233207deab88a4ac..9c524ac57754f316f4461894c6ae715f2258f681 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450.ets
index 474cb2b10fec38f4d80785d6870087156a41baed..f297d6c2a036b70313922faf9bf0c2b072c2e5e8 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460.ets
index f2e938a2240de893ec66a8d1aca20d56b187aa84..bbd9eca9f6e17077bce6ae169a38b620115c42bf 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500.ets
index 29ab6ff2bcba59ee3895e8e12b2713c05608b43b..d0a7a39edbe7ed7590dc8c797db0fb0836cc61a0 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510.ets
index bceebb024b4707507acb02b2e32a1f682605243e..e2ef40a2a3c7c4edd12b127bdb76121b10acf636 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520.ets
index 3f30130dd22b0d8b6d744f589a91d2f0cb43d1fd..62c388f31ec77ed95dcb5615cda504913752628c 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530.ets
index 1549e62d47a72a7d0d827a5e06c18ec3fc0c66b5..186a91e4b44dada05e6a6d947a7f3092093eff6e 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550.ets
index 90afe05eb1eea73548c61ea509f8c5706f43c091..e058d468e8878b814ff98affa3f456e3b6c422a4 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560.ets
index b3c8c887777029038d37cd4dcacaeffd42d9400f..97e50db23482dd8c50e3e0718dfd16c859fd0eed 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570.ets
index bbfa9d91f464d2d3a0f25e913261b21c9aa4af2d..6aa8589b118e3a992d89fad18142b7a0b3c9acac 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600.ets
index be48ec33df29746c9fc8e7aefdbf510edfbd9d13..1ecec8736561d9b2006cb13c503b399696dd9ceb 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610.ets
index 5810f69044afe316b9306879dd2f6de5be51fe5f..be960a26c9a8c18b100933cb406a9663774c04a8 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700.ets
index 56142636dbade5c335d05e20c1bd6e1cadd081a4..9eac96333d56b9f0141fedcbf2f06502cb3e10be 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780.ets
index 11ab8441d5d967a55eb9df1f00eeb07aa0d27fc1..67c7108946fcc6e22b4921066e9e7cd13238ec76 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3790.ets
index a4eb325b4270db5eb207d1d89e88ce0180d8cf4d..0da1bcd32f49cd293a3b68b6f0bbf31282a628d2 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3790.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3790.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3810.ets
index ef3ee1974039b756db81041b9b592a84933bfaea..8d35b4e27a15df0ce431e76f51c6a0e5dd303f24 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3810.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3810.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3820.ets
index c9241c56879ccb61c5b95d5c565eb7ad528e584c..8040fe2e1b516d9e4fc68d8f0ad5313c04b1d148 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3820.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3820.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770.ets
index 1ecb61807d1592b2a86b8123f5eb867b4fe2b89c..3452be736a7019a9414e2f1f36adb5722b23f83b 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790.ets
index 5495cdd9e8011dd5733f577a7c0d097e4de0c619..d65390db5d048678731dcf929dbfde607c760997 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810.ets
index 63896e8138ce8c293d4c44f62b828ebd2d915e7f..4266ff26ac5247efae4ae7c7f17c7b6845be0a08 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020.ets
index dc87d30d9e152cf3b13ee0564c5c61d293319de5..23246d2b7da2e6957ed5cd8822292c3561430cf2 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040.ets
index 68445d29396781bb38dedc9ca9676852a66dc529..377583b85961de51f79ba581dcad4cb16acd133b 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050.ets
index ebb3e85be74971a8922e5961ed7b4ac26f285709..854758d4419f35a4805acafa8d86b0fcf5924eac 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060.ets
index 4e1426182edbf0f39533cc84f26ba7d3f5805855..e61273bbf031c23efc969a18ca26644564db5b84 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800.ets
index 46607cc3c14d6ec89f708d075e2aa853487729d1..244196cfe216961b4399115a3e3c18d7e75c5183 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810.ets
index 5e4a1055bfb17a5171a4956604b61911f37572c9..aff231d9717217f7a551c964410ece1c18735082 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820.ets
index c1b313812ea9a562db67df20cbe083af9b1af194..3db223fc7bab09815e801939ae95d5c564b8c9d8 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830.ets
index 2b21f4d210fb4b1df2e83a87ead3bf6e121a539f..b2480ec0302d416cbda98912dcb99fb36528bc05 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840.ets
index 3b38082718a5861c051327b35cf7c70bba513796..12a6e24a3bb45b078f8a4ba1af8c415110547901 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850.ets
index c5e076deb23e319e63ed49b02c10feb5e986e914..789518181739d49e78fe8d8e745aad29549d08ad 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060.ets
index 712d4595e9bde425fead4efc776272a34c63611a..013ad5ad7895f3158b3282256b458410277a7374 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070.ets
index bfbc49fb64eed14d1f79cb9461a889d817528b7c..91c54ea149eba57d7f329ef726c714824ad90986 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080.ets
index 950112e342c70d91bb505cadf35cc1605ed29157..511245b04317a8674dec9ed7ad649ef6b22a320b 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090.ets
index 5148d67fb6971a3bd918a557f6c52a7663374be9..07b6a9b77f4a5cf3bd621e204a9ae3056f7d2d18 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100.ets
index 015f4c7bcde6aefa9ccc8795adc7b093eeb4c03f..6b78764cdf1bfe84c97ee4cd12282b758b11d3aa 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110.ets
index 89c4c993bcdf0da1b5ac69da825b2945a53552a8..54fd9b2a8b9fd4436921427a7252ba1a5308df83 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070.ets
index 7570aa339a51475ff36d0a81287df29ddec00d73..a4e90215886117e3c19d81d82d96be7cc28d0abb 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080.ets
index 2b401f6ebaad39f4a6c6562849662d8e0f629433..a766519f23c76e4c2784d98b0777a01bbd667860 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010.ets
index 4b8aaee490f21e69c725eced8229ef827464c7f5..8b4b3a1823693fb646fef24781f2bb8750db764b 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020.ets
index 7881799e8b434c7bb7f7709a5dc12136c66c0b36..860f33fbe4d4ab025b23ac974d214589401407f6 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520.ets
index 99aa52e22d53d933fdf5a8e2b1f4594b4f34c22a..97c1857b85131d6a0e6a5b601cb61745b66a0329 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520.ets
@@ -1,13 +1,13 @@
/*
- * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5882347a8d6e80e3d83c03a787bf3c489ddc008f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0150.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 { ConfigurationConstant } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentUISupportColor0150 {
+ aboutToAppear(): void {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT);
+ }
+
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ Text('Select All')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox1')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox2')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox3')
+ .fontColor(Color.Red)
+ }
+ }
+
+ Button('changeColorMode')
+ .onClick(() => {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT)
+ })
+ .id('changeColorMode')
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor(Color.White)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6bc2af3c78441534ba927705b01bacc64f668107
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0160.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 { ConfigurationConstant } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentUISupportColor0160 {
+ aboutToAppear(): void {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT);
+ }
+
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ Text('Select All')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox1')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox2')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox3')
+ .fontColor(Color.Red)
+ }
+ }
+
+ Button('changeColorMode')
+ .onClick(() => {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK)
+ })
+ .id('changeColorMode')
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor(Color.White)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b3da437390e0982359158abf8cd060c71ba13eaf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0170.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 { ConfigurationConstant } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentUISupportColor0170 {
+ aboutToAppear(): void {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ }
+
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ Text('Select All')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox1')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox2')
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox3')
+ }
+ }
+
+ Button('changeColorMode')
+ .onClick(() => {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT)
+ })
+ .id('changeColorMode')
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e5ad4e3f5adb14d0076167066c3bb04ad7c33a4d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0180.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 { ConfigurationConstant } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentUISupportColor0180 {
+ aboutToAppear(): void {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ }
+
+ build() {
+ Column({ space: 10 }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ Text('Select All')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox1')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox2')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox3')
+ .fontColor(Color.Red)
+ }
+ }
+
+ Button('changeColorMode')
+ .onClick(() => {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK)
+ })
+ .id('changeColorMode')
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor(Color.White)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1a258a74c6e97af5ed4cf29f3ec43ddbde4aece2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0190.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 { ConfigurationConstant } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentUISupportColor0190 {
+ build() {
+ Column({ space: 10 }) {
+ WithTheme({ colorMode: ThemeColorMode.LIGHT }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ Text('Select All')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox1')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox2')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox3')
+ .fontColor(Color.Red)
+ }
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor(Color.White)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0931e52a881166770a429492d5d19ea820d6b03a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0200.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 { ConfigurationConstant } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentUISupportColor0200 {
+ build() {
+ Column({ space: 10 }) {
+ WithTheme({ colorMode: ThemeColorMode.DARK }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ Text('Select All')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox1')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox2')
+ .fontColor(Color.Red)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox3')
+ .fontColor(Color.Red)
+ }
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor(Color.White)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d1e294d48bbb0530f643f457b144b92be2cf9fe7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0210.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 { ConfigurationConstant } from '@kit.AbilityKit'
+
+@Entry
+@Component
+struct UIComponentUISupportColor0210 {
+ @State colorMode: number = ConfigurationConstant.ColorMode.COLOR_MODE_DARK
+
+ aboutToAppear(): void {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ }
+
+ build() {
+ Column({ space: 10 }) {
+ WithTheme({ colorMode: ThemeColorMode.SYSTEM }) {
+ Column() {
+ Row({ space: 10 }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ Text('Select All')
+ .fontColor(this.colorMode === 1 ? Color.Green : Color.Pink)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox1')
+ .fontColor(this.colorMode === 1 ? Color.Green : Color.Pink)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox2')
+ .fontColor(this.colorMode === 1 ? Color.Green : Color.Pink)
+ }
+
+ Row() {
+ Checkbox({ group: 'checkboxGroup' })
+ Text('Checkbox3')
+ .fontColor(this.colorMode === 1 ? Color.Green : Color.Pink)
+ }
+ }
+ }
+
+ Button('changeColorMode')
+ .onClick(() => {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT)
+ this.colorMode = ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT
+ })
+ .id('changeColorMode')
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..408710d586c0ec1e4e44523b0290a2401317ba9f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0220.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 UIComponentUISupportColor0220 {
+ aboutToAppear(): void {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT);
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Checkbox()
+ Button('changeColorMode')
+ .onClick(() => {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT);
+ })
+ .id('changeColorMode')
+ }
+ .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/UIComponentUISupportColor/UIComponentUISupportColor0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..234a7e114ad72317156e1cd6c30c5b5162fd20e1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0230.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 UIComponentUISupportColor0230 {
+ aboutToAppear(): void {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT);
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Checkbox()
+ Button('changeColorMode')
+ .onClick(() => {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ })
+ .id('changeColorMode')
+ }
+ .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/UIComponentUISupportColor/UIComponentUISupportColor0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..718407239d3c257743a97bf76cc232560730e4f8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0240.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 UIComponentUISupportColor0240 {
+ aboutToAppear(): void {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Checkbox()
+ Button('changeColorMode')
+ .onClick(() => {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT);
+ })
+ .id('changeColorMode')
+ }
+ .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/UIComponentUISupportColor/UIComponentUISupportColor0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..42a67e8b987962f63c7e1a14e4fdb07f2af7e1ac
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0250.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 UIComponentUISupportColor0250 {
+ aboutToAppear(): void {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Checkbox()
+ Button('changeColorMode')
+ .onClick(() => {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ })
+ .id('changeColorMode')
+ }
+ .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/UIComponentUISupportColor/UIComponentUISupportColor0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bfd9025c65c4aa7744b9bb676b4829ff46ee88ba
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0260.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 UIComponentUISupportColor0260 {
+ build() {
+ Column({ space: 20 }) {
+ WithTheme({ colorMode: ThemeColorMode.LIGHT }) {
+ Checkbox()
+ }
+ }
+ .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/UIComponentUISupportColor/UIComponentUISupportColor0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a8f4a44eac67ab56e43b9f8b355de8defe72bcbd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0270.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 UIComponentUISupportColor0270 {
+ build() {
+ Column({ space: 20 }) {
+ WithTheme({ colorMode: ThemeColorMode.DARK }) {
+ Checkbox()
+ }
+ }
+ .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/UIComponentUISupportColor/UIComponentUISupportColor0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f42d6ed0604a7167a5556b981535b080c8c30fdb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0280.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 UIComponentUISupportColor0280 {
+ aboutToAppear(): void {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT);
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ WithTheme({ colorMode: ThemeColorMode.SYSTEM }) {
+ Checkbox()
+ }
+
+ Button('changeColorMode')
+ .onClick(() => {
+ getContext().getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK);
+ })
+ .id('changeColorMode')
+ }
+ .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/UIDataPicker/UIComponentButtonDatepickerInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4c5ec65550c844aadfa2042a4c5d8924e340935b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0020.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 UIComponentButtonDatepickerInterface0020 {
+ @State isLunar: boolean = false
+ private selectedDate: Date = new Date('2023-05-08')
+
+ build() {
+ Column() {
+ DatePicker({
+ start: new Date('1980-4-30'),
+ end: new Date('2370-4-31'),
+ selected: this.selectedDate
+ }) .lunar(false)
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d452bcaa8f48f37a8301122fe9a530dcec48fa77
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0040.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 UIComponentButtonDatepickerInterface0040 {
+ private selectedDate: Date = new Date('2023-4-31')
+ 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/UIComponentButtonDatepickerInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..67d0553ff8d714d6f73442735792880bc2c38816
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0050.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 UIComponentButtonDatepickerInterface0050 {
+ private selectedDate: Date = new Date('2380-4-31')
+ 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/UIComponentButtonDatepickerInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..26127c37aecdc4cdd2b52628c29d41e7f249bff5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0070.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 UIComponentButtonDatepickerInterface0070 {
+ private selectedDate: Date = new Date('1980-04-08')
+ build() {
+ Column() {
+ DatePicker({
+ start: new Date('1980-4-31'),
+ end: new Date('2370-10-4'),
+ selected: this.selectedDate
+ }).id('datePicker0160')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6cc4b245a9ec8f6f9f03d1cd2e53a0ace08c9b72
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0080.ets
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentButtonDatepickerInterface0080 {
+ build() {
+ Column() {
+ DatePicker({})
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6ebf45e69271639e6fb3021bb8c0635a28235a2b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0090.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 UIComponentButtonDatepickerInterface0090 {
+ @State isLunar: boolean = false
+ private selectedDate: Date = new Date('2023-05-08')
+
+ build() {
+ Column() {
+ DatePicker({
+ start: new Date('1980-5-3'),
+ end: new Date('2370-10-4'),
+ selected: this.selectedDate
+ }) .lunar(false)
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d6cfb45855c45b51006fc82f33334ddcd331f118
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0100.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 UIComponentButtonDatepickerInterface0100 {
+ @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(false)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e6e4b03c404271590693badef81abcc05e5c5db9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0110.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 UIComponentButtonDatepickerInterface0110 {
+ @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/UIComponentButtonDatepickerInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8b266b28a51fbb433bf12930f11fe4320d98aeae
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0150.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 UIComponentButtonDatepickerInterface0150 {
+ @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
+ }).id('DatePicker')
+ .constraintSize({ minWidth: 300, maxWidth: 10 })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ed4f4442d06676cbf44a0111b94430688bc3eeb2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0170.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 UIComponentButtonDatepickerInterface0170 {
+ @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
+ })
+ .constraintSize({ minWidth: 300, maxWidth: 10 })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..52453fac6477f9027be4323c8594110695dc48d6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0180.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 UIComponentButtonDatepickerInterface0180 {
+ @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
+ }) .constraintSize({ minHeight: '100%', maxHeight: '30%'})
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1dffb009bdc96b39cb48e3766f11f87fa30e7a5c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0200.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 UIComponentButtonDatepickerInterface0200 {
+ @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
+ }) .height('80%')
+ }.height('30%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..944b8bd23ebdcc71851b5528c4071e1b5981024e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0210.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 UIComponentButtonDatepickerInterface0210 {
+ @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
+ }) .margin(10)
+ }
+ }
+}
\ 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..7be7728f8ba31217dd286db2b1a41a7e6fad06a9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0230.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 UIComponentButtonDatepickerInterface0230 {
+ @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
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d911918689b32a0ce2a5d3e47d0dde29853727db
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0240.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 UIComponentButtonDatepickerInterface0240 {
+ @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
+ }) .padding(10)
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7c3f5cd9149240ffcf80ef2f6a440774ece4a9a4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0250.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 UIComponentButtonDatepickerInterface0250 {
+ @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
+ }).width('100%')
+ .padding('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/UIDataPicker/UIComponentButtonDatepickerInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5f05fed7380c90c9764ce0352ac135088e9fe4fd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentButtonDatepickerInterface0260.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 UIComponentButtonDatepickerInterface0260 {
+ @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
+ })
+ }.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..f6b63df27bec6f8e18b86d89eaa18282a643dceb
--- /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/UIComponentPopupbxPickrold0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1d064937f8e7543098300122d2ca22db246a20b7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0080.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 UIComponentPopupbxPickrold0080 {
+ selectedDate: Date = new Date("2024-10-14")
+
+ build() {
+ Row() {
+ Button("DatePickerDialog")
+ .id('DatePickerDialog')
+ .margin(20)
+ .width('40%')
+ .onClick(() => {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: this.selectedDate,
+ acceptButtonStyle: { type: ButtonType.Normal, style: ButtonStyleMode.NORMAL, role: ButtonRole.NORMAL,
+ fontSize: '16px', fontColor: '#ff7fd4e9',fontWeight: FontWeight.Bolder, fontStyle: FontStyle.Italic, fontFamily: 'sans-serif', backgroundColor:'#FFFFFF',
+ borderRadius: 10},
+ cancelButtonStyle: { type: ButtonType.Normal, style: ButtonStyleMode.NORMAL, role: ButtonRole.NORMAL,
+ fontSize: '16fp', fontColor: Color.Blue,fontWeight: FontWeight.Bold, fontStyle: FontStyle.Normal, fontFamily: 'sans-serif', backgroundColor:'#000000',
+ borderRadius: {bottomLeft:10,bottomRight:10} },
+ })
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0450.ets
new file mode 100644
index 0000000000000000000000000000000000000000..26389d470c44b8384d53c087cb8eee51e1394f65
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0450.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 UIComponentPopupbxPickrold0450 {
+ selectedDate: Date = new Date("2024-10-14")
+
+ build() {
+ Row() {
+ Button("110_DatePickerDialog")
+ .id('110_DatePickerDialog')
+ .margin(20)
+ .width('40%')
+ .onClick(() => {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: this.selectedDate,
+ shadow: (ShadowStyle.OUTER_DEFAULT_LG)
+ })
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0470.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b7adb1966bdfade99ef0ecaf14884cd8de6e3c17
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0470.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 UIComponentPopupbxPickrold0470 {
+ selectedDate: Date = new Date("2024-10-14")
+
+ build() {
+ Row() {
+ Button("090_DatePickerDialog")
+ .id('090_DatePickerDialog')
+ .margin(20)
+ .width('40%')
+ .onClick(() => {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: this.selectedDate,
+ shadow: (ShadowStyle.OUTER_DEFAULT_XS)
+ })
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0480.ets
new file mode 100644
index 0000000000000000000000000000000000000000..46d67d1751ff62ed0155f132f12341601ef1618d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0480.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 UIComponentPopupbxPickrold0480 {
+ selectedDate: Date = new Date("2024-10-14")
+
+ build() {
+ Row() {
+ Button("130_DatePickerDialog")
+ .id('130_DatePickerDialog')
+ .margin(20)
+ .width('40%')
+ .onClick(() => {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: this.selectedDate,
+ shadow: (ShadowStyle.OUTER_FLOATING_MD)
+ })
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0490.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1943a967c4e0c843544a11f056cf8c78948f4cc6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0490.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 UIComponentPopupbxPickrold0490 {
+ selectedDate: Date = new Date("2024-10-14")
+
+ build() {
+ Row() {
+ Button("120_DatePickerDialog")
+ .id('120_DatePickerDialog')
+ .margin(20)
+ .width('40%')
+ .onClick(() => {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: this.selectedDate,
+ shadow: (ShadowStyle.OUTER_FLOATING_SM)
+ })
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0520.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fa50dc3f4f7a65df9c6f1d217211fb725bdc8a96
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0520.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupbxPickrold0520 {
+ selectedDate: Date = new Date("2024-10-14")
+
+ build() {
+ Row() {
+ Button("060_DatePickerDialog")
+ .id('060_DatePickerDialog')
+ .margin(20)
+ .width('40%')
+ .onClick(() => {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: this.selectedDate,
+ 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
+ })
+ })
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0530.ets
new file mode 100644
index 0000000000000000000000000000000000000000..690714e325ff7d42c80b16280510a8ea8a5959df
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0530.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupbxPickrold0530 {
+ selectedDate: Date = new Date("2024-10-14")
+
+ build() {
+ Row() {
+ Button("080_DatePickerDialog")
+ .id('080_DatePickerDialog')
+ .margin(20)
+ .width('40%')
+ .onClick(() => {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: this.selectedDate,
+ 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
+ })
+ })
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0550.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1b458a73870fb77de3bed2502065a1790612c5db
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0550.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentPopupbxPickrold0550 {
+ selectedDate: Date = new Date("2024-10-14")
+
+ build() {
+ Row() {
+ Button("050_DatePickerDialog")
+ .id('050_DatePickerDialog')
+ .margin(20)
+ .width('40%')
+ .onClick(() => {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: this.selectedDate,
+ 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
+ })
+ })
+ })
+ }
+ }
+}
\ 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..b3550c2b7e2ee67546eb03e059fddca8fb2fc581
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0560.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 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/UIDataPicker/UIComponentPopupbxPickrold0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0600.ets
new file mode 100644
index 0000000000000000000000000000000000000000..aeb9e96ec85c945ea55eba1ce3a77d28d447973b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0600.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 UIComponentPopupbxPickrold0600 {
+ @State DatePickerWidth: string | undefined = undefined
+ @State DatePickerHeight: string | undefined = undefined
+
+ build() {
+ Row() {
+ Column() {
+ Button('更改宽度高度', { type: ButtonType.Normal, stateEffect: true })
+ .id('updateWidthAndHeight0600')
+ .onClick(() => {
+ this.DatePickerWidth = "250vp"
+ this.DatePickerHeight = "180vp"
+ })
+ DatePicker({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ }).id('DatePicker0610')
+ .width(this.DatePickerWidth)
+ .height(this.DatePickerHeight)
+ }
+ }.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/UIComponentPopupbxPickrold0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0610.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cefdcd01a8f93b2633d093d571c0c5b55450556b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0610.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 UIComponentPopupbxPickrold0610 {
+ build() {
+ Row() {
+ Column() {
+ DatePicker({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ }).id('DatePicker0610')
+ .width('400vp')
+ .height('400vp')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0620.ets
new file mode 100644
index 0000000000000000000000000000000000000000..367e0554d587df2a1093eacf7c646264ddde91c8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0620.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 UIComponentPopupbxPickrold0620 {
+ @State DatePickerWidth: string | undefined = undefined
+ @State DatePickerHeight: string | undefined = undefined
+
+ build() {
+ Row() {
+ Column() {
+ Button('更改宽度高度', { type: ButtonType.Normal, stateEffect: true })
+ .id('updateWidthAndHeight0620')
+ .onClick(() => {
+ this.DatePickerWidth = undefined
+ this.DatePickerHeight = undefined
+ })
+ DatePicker({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ }).id('DatePicker0610')
+ .width(this.DatePickerWidth)
+ .height(this.DatePickerHeight)
+ }
+ }.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/UIComponentPopupbxPickrold0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0860.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6524c5c577d2d529477a427c46352e90fd5a7a38
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0860.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 UIComponentPopupbxPickrold0860 {
+ selectedDate: Date = new Date("2024-10-14")
+
+ build() {
+ Row() {
+ Button("150_DatePickerDialog")
+ .id('150_DatePickerDialog')
+ .margin(20)
+ .width('40%')
+ .onClick(() => {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: this.selectedDate,
+ shadow: (undefined)
+ })
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0930.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5072911b561a8ced212087548d8fee8a987e183e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPicker/UIComponentPopupbxPickrold0930.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 UIComponentPopupbxPickrold0930 {
+ build() {
+ Row() {
+ Button("010_DatePickerDialog")
+ .id('010_DatePickerDialog')
+ .onClick(() => {
+ DatePickerDialog.show({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ })
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPickerDialog/UIComponentPopupbxstyleStrong0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPickerDialog/UIComponentPopupbxstyleStrong0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..812de3f1f88ac3455ceb9777161deb6196960002
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPickerDialog/UIComponentPopupbxstyleStrong0190.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 UIComponentPopupbxstyleStrong0190 {
+ selectedDate: Date = new Date("2010-1-1")
+
+ build() {
+ Column() {
+ Button("模糊材质")
+ .id('DatePickerDialog')
+ .margin(20)
+ .onClick(() => {
+ console.info("DatePickerDialog:onDateAccept()")
+ DatePickerDialog.show({
+ start: new Date("2000-1-1"),
+ end: new Date("2100-12-31"),
+ selected: this.selectedDate,
+ backgroundBlurStyle: (BlurStyle.BACKGROUND_ULTRA_THICK),
+ backgroundColor: ('rgba(0, 0, 0, 0)')
+ })
+ })
+
+ Button("默认效果")
+ .id('DatePickerDialog_0190')
+ .margin(20)
+ .onClick(() => {
+ console.info("DatePickerDialog:onDateAccept()")
+ DatePickerDialog.show({
+ start: new Date("2000-1-1"),
+ end: new Date("2100-12-31"),
+ selected: this.selectedDate,
+ backgroundBlurStyle: (BlurStyle.BACKGROUND_ULTRA_THICK),
+ backgroundColor: ('rgba(0, 0, 0, 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/UIDataPickerDialog/UIComponentPopupbxstyleStrong0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPickerDialog/UIComponentPopupbxstyleStrong0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..969da18be28bcb9af98f9d8f888370a6ea325593
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIDataPickerDialog/UIComponentPopupbxstyleStrong0200.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 UIComponentPopupbxstyleStrong0200 {
+ selectedDate: Date = new Date("2010-1-1")
+
+ build() {
+ Column() {
+ Button("DatePickerDialog")
+ .id('DatePickerDialog')
+ .margin(20)
+ .onClick(() => {
+ console.info("DatePickerDialog:onDateAccept()")
+ DatePickerDialog.show({
+ start: new Date("2000-1-1"),
+ end: new Date("2100-12-31"),
+ selected: this.selectedDate,
+ lunar: 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/modifiers/CommonCheckboxGroupModifier.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/modifiers/CommonCheckboxGroupModifier.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5aff057e8299082a901646872b90a7b67fc23342
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/modifiers/CommonCheckboxGroupModifier.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 { CheckboxGroupModifier } from "@kit.ArkUI"
+
+//定义要测试的属性以及类型
+export interface CommonCheckboxGroupAttributes {
+ UnselectedColor?: ResourceColor
+ Mark?: MarkStyle
+ SelectAll?: boolean
+ SelectedColor?: ResourceColor
+}
+
+//初始化测试数据
+export const CheckboxGroupTestData: CommonCheckboxGroupAttributes[] = [
+ {
+ Mark: { strokeColor: Color.Brown },
+ SelectAll: true,
+ SelectedColor:Color.Green
+ },
+ {
+ Mark: { strokeColor: 0xfffffffff, size:10, strokeWidth: '10px' },
+ SelectAll: true,
+ SelectedColor:0xfffffffff
+ },
+ {
+ Mark: { strokeColor: Color.Red },
+ UnselectedColor:'red',
+ SelectAll: false
+ },
+ {
+ Mark: { strokeColor: Color.Grey },
+ UnselectedColor:Color.Grey,
+ SelectAll: false
+ },
+ {
+ Mark: { strokeColor: Color.Grey },
+ UnselectedColor:0xfffffffff,
+ SelectAll: false
+ },
+ {
+ Mark: { strokeColor: Color.Grey },
+ UnselectedColor:'#99cc23',
+ SelectAll: false
+ }
+]
+
+
+export class CommonCheckboxGroupModifier implements AttributeModifier {
+ UnselectedColor?: ResourceColor
+ Mark?: MarkStyle
+ SelectAll?: boolean
+ SelectedColor?: ResourceColor
+
+ applyNormalAttribute(instance: CheckboxGroupModifier): void {
+ instance.unselectedColor(this.UnselectedColor);
+ instance.mark(this.Mark);
+ instance.selectAll(this.SelectAll);
+ instance.selectedColor(this.SelectedColor)
+ }
+
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/modifiers/CommonCheckboxModifier.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/modifiers/CommonCheckboxModifier.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ee0c0bb5f1a0caccab89b746592eddb6b952a600
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/modifiers/CommonCheckboxModifier.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 { CheckboxModifier } from "@kit.ArkUI"
+
+//定义要测试的属性以及类型
+export interface CommonCheckboxAttributes {
+ UnselectedColor?: ResourceColor
+ Mark?: MarkStyle
+ Select?: boolean
+ SelectedColor?: ResourceColor
+}
+
+//初始化测试数据
+export const CheckboxTestData: CommonCheckboxAttributes[] = [
+ {
+ Mark: { strokeColor: Color.Brown, size:10, strokeWidth: 10 },
+ Select: true,
+ SelectedColor:Color.Green,
+ UnselectedColor:Color.Pink
+ },
+ {
+ Mark: { strokeColor: '#55ffcc', size:'10px', strokeWidth: '10px' },
+ Select: true,
+ SelectedColor:'Color.Orange',
+ UnselectedColor:0xffffffff
+ },
+ {
+ Mark: { strokeColor: '#55ffcc', size:'10px', strokeWidth: '10px' },
+ Select: false,
+ SelectedColor:'Color.Orange',
+ UnselectedColor:0xffffffff
+ }
+]
+
+export class CommonCheckboxModifier implements AttributeModifier {
+ UnselectedColor?: ResourceColor
+ Mark?: MarkStyle
+ Select?: boolean
+ SelectedColor?: ResourceColor
+
+ applyNormalAttribute(instance: CheckboxModifier): void {
+ instance.unselectedColor(this.UnselectedColor);
+ instance.mark(this.Mark);
+ instance.select(this.Select);
+ instance.selectedColor(this.SelectedColor)
+ }
+
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/modifiers/CommonCounterModifier.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/modifiers/CommonCounterModifier.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a0c3d2dfbc9b23356d39984168b314ea32eb3c1f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/modifiers/CommonCounterModifier.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 { CounterModifier } from "@kit.ArkUI"
+
+//定义要测试的属性以及类型
+export interface CommonCounterAttributes {
+ EnableInc?: boolean
+ EnableDec?: boolean
+}
+
+//初始化测试数据
+export const CounterTestData: CommonCounterAttributes[] = [
+ {
+ EnableInc:false,
+ EnableDec:false
+ },
+ {
+ EnableInc:true,
+ EnableDec:true
+ },
+ {
+ EnableInc:true,
+ EnableDec:false
+ },
+ {
+ EnableInc:false,
+ EnableDec:true
+ },
+ {
+ EnableInc:false,
+ EnableDec:false
+ },
+ {
+ EnableDec:true
+ },
+ {
+ EnableInc:true
+ },
+ {
+ EnableDec:false
+ },
+ {
+ EnableInc:false
+ }
+]
+
+export class CommonCounterModifier implements AttributeModifier {
+ EnableInc?: boolean
+ EnableDec?: boolean
+
+ applyNormalAttribute(instance: CounterModifier): void {
+ instance.enableInc(this.EnableInc);
+ instance.enableDec(this.EnableDec);
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/modifiers/CommonDatePickerModifier.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/modifiers/CommonDatePickerModifier.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a1cdbc134ab8eb09513a2c3b675f64d2813177ac
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/modifiers/CommonDatePickerModifier.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 { DatePickerModifier } from "@kit.ArkUI"
+
+export interface CommonDatePickerAttributes {
+ DisappearTextStyle?: PickerTextStyle | undefined
+ TextStyle?: PickerTextStyle | undefined
+ SelectedTextStyle?: PickerTextStyle | undefined
+ Lunar?: boolean | undefined
+}
+
+export const DatePickerTestData: CommonDatePickerAttributes[] = [
+ {
+ DisappearTextStyle: {
+ font: { family: "HarmonyOS Sans", size: 12, style: FontStyle.Italic, weight: FontWeight.Normal },
+ color: Color.Blue
+ },
+ TextStyle: {
+ font: { family: "HarmonyOS Sans", size: 12, style: FontStyle.Italic, weight: FontWeight.Normal },
+ color: Color.Blue
+ },
+ SelectedTextStyle: {
+ font: { family: "HarmonyOS Sans", size: 12, style: FontStyle.Italic, weight: FontWeight.Normal },
+ color: Color.Blue
+ },
+ Lunar: true
+ },
+ {
+ DisappearTextStyle: {
+ font: { family: "HarmonyOS Sans", size: 12, style: FontStyle.Italic, weight: FontWeight.Normal },
+ color: Color.Blue
+ },
+ TextStyle: {
+ font: { family: "HarmonyOS Sans", size: 12, style: FontStyle.Italic, weight: FontWeight.Normal },
+ color: Color.Blue
+ },
+ SelectedTextStyle: {
+ font: { family: "HarmonyOS Sans", size: 12, style: FontStyle.Italic, weight: FontWeight.Normal },
+ color: Color.Blue
+ },
+ Lunar: false
+ },
+ {
+ DisappearTextStyle: {
+ font: { family: "HarmonyOS Sans", size: 12, style: FontStyle.Italic, weight: FontWeight.Normal },
+ color: Color.Blue
+ },
+
+ SelectedTextStyle: {
+ font: { family: "HarmonyOS Sans", size: 12, style: FontStyle.Italic, weight: FontWeight.Normal },
+ color: Color.Blue
+ },
+ Lunar: false
+ },
+ {
+ TextStyle: {
+ font: { family: "HarmonyOS Sans", size: 12, style: FontStyle.Italic, weight: FontWeight.Normal },
+ color: Color.Blue
+ },
+ SelectedTextStyle: {
+ font: { family: "HarmonyOS Sans", size: 12, style: FontStyle.Italic, weight: FontWeight.Normal },
+ color: Color.Blue
+ },
+ Lunar: true
+ },
+ {
+ DisappearTextStyle: {
+ font: { family: "HarmonyOS Sans", size: 12, style: FontStyle.Italic, weight: FontWeight.Normal },
+ color: Color.Blue
+ },
+ TextStyle: {
+ font: { family: "HarmonyOS Sans", size: 12, style: FontStyle.Italic, weight: FontWeight.Normal },
+ color: Color.Blue
+ },
+ Lunar: false
+ },
+]
+
+export class CommonDatePickerModifier implements AttributeModifier {
+ DisappearTextStyle?: PickerTextStyle | undefined
+ TextStyle?: PickerTextStyle | undefined
+ SelectedTextStyle?: PickerTextStyle | undefined
+ Lunar?: boolean | undefined
+
+ applyNormalAttribute(instance: DatePickerModifier): void {
+ instance.disappearTextStyle(this.DisappearTextStyle);
+ instance.textStyle(this.TextStyle);
+ instance.selectedTextStyle(this.SelectedTextStyle);
+ instance.lunar(this.Lunar)
+ }
+
+}
+
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/module.json5 b/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5
index e58bd507f3ecff51931c351ebcabf6603cd5c40c..fd65ec2eca370790cf46012c861acb27365986a4 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5
@@ -12,20 +12,32 @@
"installationFree": false,
"pages": "$profile:test_pages",
"requestPermissions": [
+ {
+ "name": "ohos.permission.SYSTEM_FLOAT_WINDOW",
+ "usedScene": {
+ "abilities": [
+ "EntryAbility"
+ ],
+ "when": "inuse"
+ }
+ },
+ {
+ "name": "ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
+ },
{
"name": "ohos.permission.WRITE_MEDIA"
},
{
- "name": "ohos.permission.READ_MEDIA"
+ "name": "ohos.permission.INTERNET"
},
{
- "name":"ohos.permission.UPDATE_CONFIGURATION"
+ "name": "ohos.permission.READ_MEDIA"
},
{
- "name":"ohos.permission.RUNNING_LOCK"
+ "name": "ohos.permission.CAPTURE_SCREEN"
},
{
- "name":"ohos.permission.INTERNET"
+ "name": "ohos.permission.ACCESS_SCREEN_LOCK_INNER"
}
],
"abilities": [
@@ -49,6 +61,92 @@
}
]
}
+ ],
+ "extensionAbilities": [
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0010Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0010Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ },
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0040Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0040Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ },
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0220Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0220Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ },
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0250Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0250Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ },
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0270Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0270Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ },
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0290Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0290Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ },
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0300Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0300Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ },
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0330Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0330Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ },
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0230Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0230Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ },
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0280Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0280Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ },
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0310Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0310Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ },
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0240Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0240Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ },
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0320Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0320Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ },
+ {
+ "name": 'UIComponentPopupboxSpecificationsAlignment0260Ability',
+ "srcEntry": './ets/testability/UIComponentPopupboxSpecificationsAlignment0260Ability.ets',
+ "type": 'sys/commonUI',
+ "exported": true
+ }
]
}
}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/color.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/color.json
index cebaca0ee054e26196800861f14cc2ede61640d2..93340ecd07b30685059b4375cfc9eb5448c4c86c 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/color.json
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/color.json
@@ -63,6 +63,18 @@
{
"name": "search_placeholder",
"value": "#FFCFA613"
+ },
+ {
+ "name": "Blue",
+ "value": "#0000ff"
+ },
+ {
+ "name": "Gray",
+ "value": "#808080"
+ },
+ {
+ "name": "color_purple",
+ "value": "#9e8e5eec"
}
]
}
\ No newline at end of file
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..4f78c419f0c5b904c509bce44a2dd2543f816aa3 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
@@ -41,6 +41,19 @@
{
"name": "integer333",
"value": 333
+ },
+ {
+ "name": "actionsheetoffsetx",
+ "value": 10
+ },
+ {
+ "name": "actionsheetoffsety",
+ "value": -10
+ },
+ {
+ "name": "negative5",
+ "value": 5
}
+
]
}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json
index ce65c09bf1f31a1214be8ab75ed207896afea2d3..37257db1263f6a0b179c5b93180ae483a4731673 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json
@@ -243,6 +243,66 @@
{
"name": "20string",
"value": "20"
+ },
+ {
+ "name": "action_sheet_maskrectx",
+ "value": "50%"
+ },
+ {
+ "name": "action_sheet_maskrecty",
+ "value": "200px"
+ },
+ {
+ "name": "action_sheet_maskrectw",
+ "value": "300px"
+ },
+ {
+ "name": "action_sheet_maskrecth",
+ "value": "60%"
+ },
+ {
+ "name": "action_sheet_backgroundcolor",
+ "value": "#800080"
+ },
+ {
+ "name": "action_sheet_confirm",
+ "value": "Confirm"
+ },
+ {
+ "name": "action_sheet_title",
+ "value": "Resource_title"
+ },
+ {
+ "name": "action_sheet_message",
+ "value": "message"
+ },
+ {
+ "name": "title",
+ "value": "Test"
+ },
+ {
+ "name": "message",
+ "value": "Hello World"
+ },
+ {
+ "name": "value",
+ "value": "Secondary"
+ },
+ {
+ "name": "dx",
+ "value": "10"
+ },
+ {
+ "name": "dy",
+ "value": "10"
+ },
+ {
+ "name": "size_10px",
+ "value": "10px"
+ },
+ {
+ "name": "family_select",
+ "value": "Arial"
}
]
}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json
index 5cc05ce92cff61b76d701a3fe495c11c73638078..0e20e972143950384a6c14b46e349bf5c8269acb 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json
@@ -1801,6 +1801,818 @@
"testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface007",
"testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface008",
"testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface009",
- "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface0010"
+ "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface0010",
+ "testability/pages/UIComponentPopupBoxButtonStyle/UIComponentPopupBoxButtonStyle0080",
+ "testability/pages/UIComponentPopupBoxButtonStyle/UIComponentPopupBoxButtonStyle0090",
+ "testability/pages/ComponentCheckBox/ComponentCheckBoxf0d7",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox7f1c",
+ "testability/pages/ComponentCheckBox/ComponentCheckBoxfb77",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox641b",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox7e33",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox0149",
+ "testability/pages/ComponentCheckBox/ComponentCheckBoxe872",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox08cd",
+ "testability/pages/ComponentCheckBox/ComponentCheckBoxd08c",
+ "testability/pages/ComponentCheckBox/ComponentCheckBoxdf4d",
+ "testability/pages/ComponentCheckBox/ComponentCheckBoxcb40",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox766c",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox8eac",
+ "testability/pages/ComponentCheckBox/ComponentCheckBoxb990",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox700f",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox5c81",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox2eba",
+ "testability/pages/ComponentCheckBox/ComponentCheckBoxf586",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox8479",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox3f43",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox5f68",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox727c",
+ "testability/pages/ComponentCheckBox/ComponentCheckBox48c3",
+ "testability/pages/UIBindContentCover/UIComponentPopupboxModalrtamsition0010",
+ "testability/pages/UIButton/UIComponentButtonButtonAttrlbuteUpdater0210",
+ "testability/pages/UIButton/UIComponentButtonButtonAttrlbuteUpdater0230",
+ "testability/pages/UIButton/UIComponentButtonButtonInterface0630",
+ "testability/pages/UIButton/UIComponentButtonButtonInterface0070",
+ "testability/pages/UIButton/UIComponentButtonStyle0010",
+ "testability/pages/UIButton/UIComponentButtonStyle0020",
+ "testability/pages/UIButton/UIComponentButtonStyle0030",
+ "testability/pages/UIButton/UIComponentButtonStyle0040",
+ "testability/pages/UIButton/UIComponentButtonStyle0050",
+ "testability/pages/UIButton/UIComponentButtonStyle0070",
+ "testability/pages/UIButton/UIComponentButtonStyle0080",
+ "testability/pages/UIButton/UIComponentButtonStyle0090",
+ "testability/pages/UIButton/UIComponentButtonButtonUx001",
+ "testability/pages/UIButton/UIComponentButtonButtonUx002",
+ "testability/pages/UIButton/UIComponentButtonButtonUx003",
+ "testability/pages/UIButton/UIComponentButtonButtonUx004",
+ "testability/pages/UIButton/UIComponentButtonButtonUx006",
+ "testability/pages/UIButton/UIComponentButtonButtonUx007",
+ "testability/pages/UIButton/UIComponentButtonButtonUx008",
+ "testability/pages/UIButton/UIComponentButtonButtonUx009",
+ "testability/pages/UIButton/UIComponentButtonButtonUx010",
+ "testability/pages/UIButton/UIComponentButtonButtonUx011",
+ "testability/pages/UIButton/UIComponentButtonButtonUx012",
+ "testability/pages/UIButton/UIComponentButtonButtonUx013",
+ "testability/pages/UIButton/UIComponentUIsupportColor0080",
+ "testability/pages/UIButton/UIComponentUIsupportColor0090",
+ "testability/pages/UIButton/UIComponentUIsupportColor0100",
+ "testability/pages/UIButton/UIComponentUIsupportColor0110",
+ "testability/pages/UIButton/UIComponentUIsupportColor0120",
+ "testability/pages/UIButton/UIComponentUIsupportColor0130",
+ "testability/pages/UIButton/UIComponentUIsupportColor0140_1",
+ "testability/pages/UIButton/UIComponentUIsupportColor0140_2",
+ "testability/pages/UIDataPickerDialog/UIComponentPopupbxstyleStrong0200",
+ "testability/pages/UIDataPickerDialog/UIComponentPopupbxstyleStrong0190",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0250",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0150",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0050",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0070",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatepickerInterface0230",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow055",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow047",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow048",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow049",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow093",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow045",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow052",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow053",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow057",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow086",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0010",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0020",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0030",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0040",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0060",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0070",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0090",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0100",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0110",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0120",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0130",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0140",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0150",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0160",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0170",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0180",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0190",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0200",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0210",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0220",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0230",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0240",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0250",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0260",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0270",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0280",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0290",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0300",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0310",
+ "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton0320",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0130",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0560",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0140",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0510",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0170",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0570",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0500",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0150",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0490",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0470",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0180",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0590",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0520",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0160",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0550",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0480",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0100",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0530",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0580",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0200",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0090",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0190",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0110",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0220",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0210",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0120",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0230",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0290",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0260",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0240",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0330",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0320",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0250",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0270",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0310",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0300",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0280",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0340",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0350",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0370",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0360",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0380",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0390",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0400",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0450",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0410",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0430",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0420",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0460",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0440",
+ "testability/pages/ARKUIComponentFunctionSpecialComponentsDialogActionSheet/ARKUIComponentFunctionSpecialComponentsDialogActionSheet0540",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0020",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0030",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0040",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0050",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0060",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0070",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0080",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0090",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0100",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0110",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0120",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0140",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0150",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0160",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0170",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0180",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0130",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0110",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0030",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_1",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_2",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0040_3",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0120",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0140",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0160",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0010",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0090",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0080",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0100",
+ "testability/pages/UIComponentPopupboxModaltransitionGear/UIComponentPopupboxModaltransitionGear0150",
+ "testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0030",
+ "testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0040",
+ "testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0020",
+ "testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0060",
+ "testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0050",
+ "testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0070",
+ "testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0010",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_1",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_2",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0050",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0030",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0100",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_1",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_2",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_3",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_4",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_1",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_2",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_3",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0730",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0060",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0040",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0200",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0430",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0350",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0570",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0400",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0190",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0440",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0230",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0280",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0500",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0270",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0510",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0310",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0520",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0480",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0540",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0470",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0360",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0550",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0390",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0590",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0600",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0670",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0620",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0700",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0690",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0320",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0240",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0660",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0720",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0630",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0710",
+ "testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0770",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0220",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0080",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0050",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0350",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0070",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0210",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0200",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0260",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0520",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0500",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0400",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0550",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0530",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0410",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0370",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0390",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0490",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0510",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0360",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0540",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0460",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0450",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0470",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0430",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0480",
+ "testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0060",
+ "testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0050",
+ "testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0080",
+ "testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0110",
+ "testability/pages/UIComponentPopupBoxActionSheetScenarios/UIComponentPopupBoxActionSheetScenarios0070",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0080",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0040",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0030",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0020",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0070",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0100",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0060",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0090",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0050",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0010",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0220",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0740",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0400",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0190",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0120",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0210",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0670",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0170",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0250",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0380",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0830",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0750",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0110",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0200",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0660",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0730",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0770",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0790",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0270",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0150",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0260",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0180",
+ "testability/pages/UIComponentPopupboxAlertDialogScenarios/UIComponentPopupboxAlertDialogScenarios0070",
+ "testability/pages/UIComponentPopupboxAlertDialogScenarios/UIComponentPopupboxAlertDialogScenarios0060",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1160",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1290",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1090",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1380",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1130",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1400",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1210",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1150",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1140",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1190",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1350",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1310",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1320",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1300",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1080",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0890",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1230",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1240",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1250",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0970",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1220",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1260",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0880",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1050",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1010",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0900",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0940",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0990",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0860",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1040",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1030",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0840",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0980",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1000",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1180",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0950",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0930",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1060",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0920",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1360",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0960",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1020",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1070",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1110",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1100",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1340",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1330",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0850",
+ "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0160",
+ "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0090",
+ "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0150",
+ "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0070",
+ "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0060",
+ "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0020",
+ "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0030",
+ "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0140",
+ "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0050",
+ "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0040",
+ "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0130",
+ "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0120",
+ "testability/pages/UIComponentPopupboxEnter/UIComponentPopupboxEnter0110",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0240",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0220",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0020",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0200",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0050",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0130",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0150",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0170",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0160",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0040",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0030",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0190",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0060",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0080",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0140",
+ "testability/pages/UIComponentPopupboxStyleStrong/UIComponentPopupboxStyleStrong0230",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0060",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0490",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0990",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0450",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0940",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0100",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0530",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0430",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0930",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0020",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0480",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0410",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0980",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0920",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0150",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0550",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0390",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0520",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0960",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0110",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0500",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1000",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0400",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0090",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0910",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0460",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0970",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0070",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0510",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0190",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0540",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0010",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0600",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0130",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0560",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0170",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0580",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0180",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0610",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0140",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0590",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0160",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0120",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0640",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0660",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0200",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0620",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0220",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0670",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1020",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0650",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0260",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0680",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0320",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0690",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0230",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0700",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0270",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0720",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1040",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0760",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0280",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0740",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0210",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0750",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1030",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0770",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1050",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0780",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface1010",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0810",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0340",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0800",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0350",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0790",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0360",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0820",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0330",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0830",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0290",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0870",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0240",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0850",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0370",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0880",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0420",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0890",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0900",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0440",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0040",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0030",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0950",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0470",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0050",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0570",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0080",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0630",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0310",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0710",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0300",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0730",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0840",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0380",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0860",
+ "testability/pages/UIComponentFunctionSpecialComponentsDialogSelectInterface/UIComponentFunctionSpecialComponentsDialogSelectInterface0250",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0580",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0640",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0600",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0070",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0570",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0630",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0510",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0060",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0550",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0520",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0590",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0500",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0620",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0540",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0610",
+ "testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0110",
+ "testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0050",
+ "testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0100",
+ "testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0030",
+ "testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0070",
+ "testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0040",
+ "testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0120",
+ "testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0080",
+ "testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0010",
+ "testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0020",
+ "testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0060",
+ "testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0030",
+ "testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0010",
+ "testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0020",
+ "testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0040",
+ "testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0190",
+ "testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0170",
+ "testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0220",
+ "testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0180",
+ "testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0230",
+ "testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0100",
+ "testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0060",
+ "testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0050",
+ "testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0310",
+ "testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0290",
+ "testability/pages/UIComponentPopupboxModaltransitionImperative/UIComponentPopupboxModaltransitionImperative0300",
+ "testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0070",
+ "testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0060",
+ "testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0030",
+ "testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0020",
+ "testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0100",
+ "testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0050",
+ "testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0040",
+ "testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0090",
+ "testability/pages/UIComponentPopupboxModaltransitionSwipetorefresh/UIComponentPopupboxModaltransitionSwipetorefresh0080",
+ "testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0070",
+ "testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0050",
+ "testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0040",
+ "testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0090",
+ "testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0060",
+ "testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0080",
+ "testability/pages/UIComponentPopupboxModaltransitionSubwindow/UIComponentPopupboxModaltransitionSubwindow0030",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0230",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0260",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0240",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0270",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0410",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0440",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0430",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0420",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0480",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0400",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0940",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0950",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0960",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0980",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0990",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0970",
+ "testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0010",
+ "testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0020",
+ "testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0080",
+ "testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0100",
+ "testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0090",
+ "testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0110",
+ "testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0030",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0110",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0120",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080A",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080B",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0080C",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0180",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0170",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0230",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0250",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0190",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0210",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0280",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0070",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0030",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0060A",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0060B",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0040",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010A",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010B",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0010C",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050A",
+ "testability/pages/UIComponentPopupBoxModalTransitionMode/UIComponentPopupBoxModalTransitionMode0050B",
+ "testability/pages/UIComponentPopupboxModaltransitionBindcontentcoveret/UIComponentPopupboxModaltransitionBindcontentcoveret0910",
+ "testability/pages/UIComponentButtonButtonAttributeUpdater/UIComponentButtonButtonAttributeUpdater0220",
+ "testability/pages/UIComponentButtonButtonAttributeUpdater/UIComponentButtonButtonAttributeUpdater0200",
+ "testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0020",
+ "testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0220",
+ "testability/pages/TestCase/TestCase83f0228d9c2d45e8blafca3c36bd855f",
+ "testability/pages/TestCase/TestCase9a217f5e9b394930949b5lad3b25f989",
+ "testability/pages/TestCase/TestCase41a06d55fa7d42d58d4ad51b77355ec8",
+ "testability/pages/TestCase/TestCase57c524107d12419fa08e7c1851602f34",
+ "testability/pages/TestCase/TestCase1840a7694374415cb0f05c7d3308fe99",
+ "testability/pages/TestCase/TestCase170062fle4ff4bba977b759bbfe05075",
+ "testability/pages/TestCase/TestCase82af3a72ba494e429a70511af99dff22",
+ "testability/pages/TestCase/TestCase437e662b74954d0582cb2c02613b88e2",
+ "testability/pages/TestCase/TestCaseda93e485c7064bb9b26191cba14ebbac",
+ "testability/pages/TestCase/TestCase3ba3f7bcf07743d297d1449a47e6b892",
+ "testability/pages/UIComponentPopupBoxModalTransitionAnimation/UIComponentPopupBoxModalTransitionAnimation0020",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0210",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0170",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0090",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0020",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0050",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0060",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0110",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0030",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0040",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0220",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0100",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0160",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0010",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0180",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0120",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0170",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0070",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0210",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0130",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0140",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0150",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0190",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0200",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0080",
+ "testability/pages/UIComponentPopupBoxCustomDialogInterface/UIComponentPopupBoxCustomDialogInterface0230",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0440",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0380",
+ "testability/pages/UIComponentPopupboxActionSheetInterface/UIComponentPopupboxActionSheetInterface0420",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0390",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0160",
+ "testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0140",
+ "testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0110",
+ "testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0050",
+ "testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0150",
+ "testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0100",
+ "testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0080",
+ "testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0030",
+ "testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0120",
+ "testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0060",
+ "testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0070",
+ "testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0040",
+ "testability/pages/ArkuiComponentfunctionSpecialcomponentsDialogMirror/ArkuiComponentfunctionSpecialcomponentsDialogMirror0020",
+ "testability/pages/TestCase/TestCase_a7a46f6c36d04ca69e363d0e3ad4a814",
+ "testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0180",
+ "testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0210",
+ "testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0160",
+ "testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0140",
+ "testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0150",
+ "testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0130",
+ "testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0170",
+ "testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0190",
+ "testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0010",
+ "testability/pages/UIComponentButtonCalendarPickerDialogInterface/UIComponentButtonCalendarPickerDialogInterface0200",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0220",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0270",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0260",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0240",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0250",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0280",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0230",
+ "testability/pages/TestCase/TestCase_809555579f804d80b3c81fd4af4c2cc1",
+ "testability/pages/TestCase/TestCase_660ea820a6d442e0b4f1bf34b3ed050a",
+ "testability/pages/TestCase/TestCase_d1504e3c331d4103a2f7bac81dd51cb0",
+ "testability/pages/TestCase/TestCase_84e308abbc574a48ad766c2658b9b72e",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0160",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0200",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0150",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0180",
+ "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0190",
+ "testability/pages/TestCase/TestCase_f3dfe9fd524a4c61b4fb506ea5b0e8f1",
+ "testability/pages/TestCase/TestCase_835936712395457396325004ae97faa0",
+ "testability/pages/TestCase/TestCase_e74b5ac434004a2a918349957882d156",
+ "testability/pages/TestCase/TestCase_49027a7e017946f58c41915ef0691063",
+ "testability/pages/TestCase/TestCase_bdae66ca448e40488ad61a84cef4ec4c",
+ "testability/pages/TestCase/TestCase_8599ec6cc1454709b2df47ab856b2f38",
+ "testability/pages/TestCase/TestCase_734d00a38d914feeb023e5796c835ecb",
+ "testability/pages/TestCase/TestCase_00bbaaf924fa44288f03cca0278ae6b5",
+ "testability/pages/TestCase/TestCase_4061b97a1405485797f304c07f65c5f0",
+ "testability/pages/TestCase/TestCase_alc2548a55de474787a6e72ef290b017",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0170",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0260",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0090",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0020",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0240",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0180",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0200",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0100",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0110",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0080",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0040",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0210",
+ "testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0620",
+ "testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0600",
+ "testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0610",
+ "testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0270",
+ "testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0280",
+ "testability/pages/UIComponentPopupboxPickerold/UIComponentPopupboxPickerold0260_1",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0440",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0420",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0430",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0990",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0400",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0390",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0340",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0360",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0850",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0370",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0920",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0560",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0380",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0350",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow1000",
+ "testability/pages/TestCase/TestCase_ef6edfdf28604560b0df0cOfe0268afe",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0690",
+ "testability/pages/TestCase/TestCase_b0f21fa9d21e4e9eaf43d9da8c48b5d4",
+ "testability/pages/TestCase/TestCase_611f36b768b447f6b843e058dfb044a9",
+ "testability/pages/TestCase/TestCase_f6ebb74473054e0294f3c2b26c3d96c4",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0240",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0230",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0140",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0780",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0800",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0410",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0420",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1170",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1270",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1280",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1390",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0870",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1370",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface0910",
+ "testability/pages/UIComponentPopupboxAlertDialogInterface/UIComponentPopupboxAlertDialogInterface1120",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0180",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0200",
+ "testability/pages/UIComponentPopupBoxModalTransitionStrong/UIComponentPopupBoxModalTransitionStrong0160",
+ "testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/UIComponentPopupboxModalTransitionOverrunsUIExtension0060",
+ "testability/pages/UIComponentPopupboxModalTransitionOverrunsUIExtension/UIComponentPopupboxModalTransitionOverrunsUIExtension0040",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0080",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0020",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0050",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0030",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0060",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0100",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0090",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0040",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0110",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0140",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0150",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0120",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0070",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0130",
+ "testability/pages/UIComponentFunctionSpecialCDCMOptimization/UIComponentFunctionSpecialCDCMOptimization0160",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0010",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0010_1",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0040",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0040_1",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0220",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0220_1",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0230",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0230_1",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0240",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0240_1",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0250",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0250_1",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0260",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0260_1",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0270",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0270_1",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0280",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0280_1",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0290",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0290_1",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0300",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0300_1",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0310",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0310_1",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0320",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0320_1",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0330",
+ "testability/pages/UIComponentPopupboxSpecificationsAlignment/UIComponentPopupboxSpecificationsAlignment0330_1",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0560",
+ "testability/pages/UIComponentPopupBoxCustomDialogScenarios/UIComponentPopupBoxCustomDialogScenarios0050",
+ "testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0120",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0290",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0280",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0500",
+ "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow0510",
+ "testability/pages/UIComponentPopupboxModaltransitionNetedscrolling/UIComponentPopupboxModaltransitionNetedscrolling0190",
+ "testability/pages/UIComponentButtonDatePickerInterface/UIComponentButtonDatePickerInterface0220",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0080",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0450",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0470",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0480",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0490",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0520",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0530",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0550",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0560",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0600",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0610",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0620",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0860",
+ "testability/pages/UIDataPicker/UIComponentPopupbxPickrold0930",
+ "testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest1130",
+ "testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest2130",
+ "testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest2010",
+ "testability/pages/UIComponentPopupboxMenuMenutest/UIComponentPopupboxMenuMenutest0530"
]
}
diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentPopupboxAlertDialogInterface.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentPopupboxAlertDialogInterface.xlsx
new file mode 100644
index 0000000000000000000000000000000000000000..d4873ef012070973c85bc0021ffd7cc818377ab8
Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentPopupboxAlertDialogInterface.xlsx differ
diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentPopupboxAlertDialogScenarios.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentPopupboxAlertDialogScenarios.xlsx
new file mode 100644
index 0000000000000000000000000000000000000000..5c21230848443cac5ed3b58cbac975e404435166
Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentPopupboxAlertDialogScenarios.xlsx differ
diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentPopupboxEnter.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentPopupboxEnter.xlsx
new file mode 100644
index 0000000000000000000000000000000000000000..b4e3578aa19cf89fe4358fd0592752aba8073583
Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentPopupboxEnter.xlsx differ
diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentPopupboxStyleStrong.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentPopupboxStyleStrong.xlsx
new file mode 100644
index 0000000000000000000000000000000000000000..8ce1d600c8c1d9330c1d5bbeced721cef9d2a063
Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentPopupboxStyleStrong.xlsx differ
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..29bd9a0384e7e41e3969287523c5eef677ba7296
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..5e665997cba2bbacce1fa355aa0f4119586e44e2
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