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..89ddc861f45a520c1c16bbfdfd95c320bf78bed2 100644
--- a/OAT.xml
+++ b/OAT.xml
@@ -115,6 +115,10 @@ 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/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json
index f481a818d416b2232156fb6e46e1ca04cdda95d5..4b99c838798f2d61ac72507277b6c8a5a9846262 100644
--- a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json
+++ b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json
@@ -1298,7 +1298,7 @@
"testability/pages/UiComponentTextCommonAffineTransformation/UiComponentTextCommonAffineTransformation049",
"testability/pages/UiComponentTextCommonAffineTransformation/UiComponentTextCommonAffineTransformation050",
"testability/pages/UiComponentTextCommonAffineTransformation/UiComponentTextCommonAffineTransformation051",
- "testability/pages/UiComponentTextCommonAffineTransformation/UiComponentTextCommonAffineTransformation052"
+ "testability/pages/UiComponentTextCommonAffineTransformation/UiComponentTextCommonAffineTransformation052",
"testability/pages/ComponentTextCommonTextMinFontSize/ComponentTextCommonTextMinFontSize001",
"testability/pages/ComponentTextCommonTextMinFontSize/ComponentTextCommonTextMinFontSize002",
diff --git a/function/ui_compare_rh/uicompare/build-profile.json5 b/function/ui_compare_rh/uicompare/build-profile.json5
index 25255c09b22c8ee5c92dd996d086837b3ccb6982..bc8a260f5dbac0245c1ea4283f4897afc2e9bc5e 100644
--- a/function/ui_compare_rh/uicompare/build-profile.json5
+++ b/function/ui_compare_rh/uicompare/build-profile.json5
@@ -1,7 +1,6 @@
{
"app": {
- "signingConfigs": [
- ],
+ "signingConfigs": [],
"products": [
{
"name": "default",
@@ -24,6 +23,18 @@
]
}
]
+ },
+ {
+ "name": "library",
+ "srcPath": "./library",
+ "targets": [
+ {
+ "name": "default",
+ "applyToProducts": [
+ "default"
+ ]
+ }
+ ]
}
]
}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/oh-package.json5 b/function/ui_compare_rh/uicompare/entry/oh-package.json5
index 225946cb11a2c405c8dc81eea89c22f923556638..ad2eee18aaf54d4946da96ded6ec7f0efdb4dc0e 100644
--- a/function/ui_compare_rh/uicompare/entry/oh-package.json5
+++ b/function/ui_compare_rh/uicompare/entry/oh-package.json5
@@ -6,5 +6,7 @@
"description": "Please describe the basic information.",
"main": "",
"version": "1.0.0",
- "dependencies": {}
+ "dependencies": {
+ // "library": "file:../library"
+ }
}
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..b1dc7da6b1526056e23fbe54cd2a729777296f4c 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,46 @@
{
"name": "EntryAbility_label",
"value": "label"
+ },
+ {
+ "name": "apple",
+ "value": "苹果"
+ },
+ {
+ "name": "fruit",
+ "value": "水果"
+ },
+ {
+ "name": "appliance",
+ "value": "家电"
+ },
+ {
+ "name": "banana",
+ "value": "香蕉"
+ },
+ {
+ "name": "tv",
+ "value": "电视"
+ },
+ {
+ "name": "computer",
+ "value": "电脑"
+ },
+ {
+ "name": "string_",
+ "value": "string_"
+ },
+ {
+ "name": "string_0",
+ "value": "我是 string_0"
+ },
+ {
+ "name": "string_1",
+ "value": "我是 string_1"
+ },
+ {
+ "name": "string_2",
+ "value": "我是 string_2"
}
]
}
\ 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/en_US/element/string.json b/function/ui_compare_rh/uicompare/entry/src/main/resources/en_US/element/string.json
index f94595515a99e0c828807e243494f57f09251930..17096f2061e5659aa4b7fc0b6ee32f85820783d0 100644
--- a/function/ui_compare_rh/uicompare/entry/src/main/resources/en_US/element/string.json
+++ b/function/ui_compare_rh/uicompare/entry/src/main/resources/en_US/element/string.json
@@ -11,6 +11,22 @@
{
"name": "EntryAbility_label",
"value": "label"
+ },
+ {
+ "name": "string_",
+ "value": "string_"
+ },
+ {
+ "name": "string_0",
+ "value": "I am string_0"
+ },
+ {
+ "name": "string_1",
+ "value": "I am string_1"
+ },
+ {
+ "name": "string_2",
+ "value": "I am string_2"
}
]
}
\ No newline at end of file
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/main/resources/zh_CN/element/string.json b/function/ui_compare_rh/uicompare/entry/src/main/resources/zh_CN/element/string.json
index 597ecf95e61d7e30367c22fe2f8638008361b044..0a64ecd52dd63820c14266bd255577ec233aadd8 100644
--- a/function/ui_compare_rh/uicompare/entry/src/main/resources/zh_CN/element/string.json
+++ b/function/ui_compare_rh/uicompare/entry/src/main/resources/zh_CN/element/string.json
@@ -11,6 +11,22 @@
{
"name": "EntryAbility_label",
"value": "label"
+ },
+ {
+ "name": "string_",
+ "value": "string_"
+ },
+ {
+ "name": "string_0",
+ "value": "我是 string_0"
+ },
+ {
+ "name": "string_1",
+ "value": "我是 string_1"
+ },
+ {
+ "name": "string_2",
+ "value": "我是 string_2"
}
]
}
\ No newline at end of file
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/DecouplingBaseDatabaseTest/DecouplingBaseDatabase.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/DecouplingBaseDatabaseTest/DecouplingBaseDatabase.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..219d10bce509f40f3ca14a65d63e740a56db73e9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/DecouplingBaseDatabaseTest/DecouplingBaseDatabase.test.ets
@@ -0,0 +1,97 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { 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_DECOUPLING_BASE_DATABASE:输入法启动测试
+*
+* 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 DecouplingBaseDatabase() {
+ describe('DecouplingBaseDatabase', () => {
+ 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_DECOUPLING_BASE_DATABASE_0110
+ * @tc.name SUB_ACE_DECOUPLING_BASE_DATABASE_0110
+ * @tc.desc 输入法启动测试
+ */
+ it('SUB_ACE_DECOUPLING_BASE_DATABASE_0110', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/DecouplingBaseDatabase/DecouplingBaseDatabase0110');
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let textInput = await driver.findComponent(ON.id('DecouplingBaseDatabase0110_001'));
+ await textInput.click();
+ await Utils.sleep(1000);
+
+ await driver.triggerCombineKeys(KeyCode.KEYCODE_A, KeyCode.KEYCODE_B, KeyCode.KEYCODE_C);
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_DECOUPLING_BASE_DATABASE_0210
+ * @tc.name SUB_ACE_DECOUPLING_BASE_DATABASE_0210
+ * @tc.desc 输入法启动测试
+ */
+ it('SUB_ACE_DECOUPLING_BASE_DATABASE_0210', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/DecouplingBaseDatabase/DecouplingBaseDatabase0210')
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('button'));
+ await button.longClick();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/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..0cdea85df240e48d1238e2ed89f9567a52c861e0 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
@@ -149,6 +149,71 @@ import UIComponentPopupBoxToastStyleInterface001
from './UIComponentPopupBoxToastStyleInterfaceTest/UIComponentPopupBoxToastStyleInterface001.test';
import UIComponentPopupBoxFullDialogInterface001
from './UIComponentPopupBoxFullDialogInterfaceTest/UIComponentPopupBoxFullDialogInterface001.test';
+import UIAttributesBlendModeBlendModeMix
+ from "./UIAttributesBlendModeBlendModeMixTest/UIAttributesBlendModeBlendModeMix.test";
+import UIAttributesImageEffectFilter from "./UIAttributesImageEffectFilterTest/UIAttributesImageEffectFilter.test";
+import UIAttributesColorRampBlurGradient
+ from "./UIAttributesColorRampBlurGradientTest/UIAttributesColorRampBlurGradient.test";
+import UIAttributesColorRampAny from "./UIAttributesColorRampAnyTest/UIAttributesColorRampAny.test";
+import UIAttributesHovereffectDoubleStrokeInterface
+ from "./UIAttributesHovereffectDoubleStrokeInterfaceTest/UIAttributesHovereffectDoubleStrokeInterface.test";
+import UIAttributesOutlineColor from "./UIAttributesOutlineColorTest/UIAttributesOutlineColor.test";
+import UIAttributesTransparencyRenderGroup
+ from "./UIAttributesTransparencyRenderGroupTest/UIAttributesTransparencyRenderGroup.test";
+import UIAttributesTransparencyInterface
+ from "./UIAttributesTransparencyInterfaceTest/UIAttributesTransparencyInterface.test";
+import UIAttributesImageEffectProjection
+ from "./UIAttributesImageEffectProjectionTest/UIAttributesImageEffectProjection.test";
+import UITheme from "./UIThemeTest/UITheme.test";
+import UIComponentUISupportImage from "./UIComponentUISupportImageTest/UIComponentUISupportImage.test";
+import UIAttributesImageeffectInvert from "./UIAttributesImageeffectInvertTest/UIAttributesImageeffectInvert.test";
+import UIAttributesImageeffectInterface
+ from "./UIAttributesImageeffectInterfaceTest/UIAttributesImageeffectInterface.test";
+import UIAttributesComponentContentFillingCapirenderfit
+ from "./UIAttributesComponentContentFillingCapirenderfitTest/UIAttributesComponentContentFillingCapirenderfit.test";
+import UIAttributesRenderFit from "./UIAttributesRenderFitTest/UIAttributesRenderFit.test";
+import UIAttributesComponentContentFillingModeInterface
+ from "./UIAttributesComponentContentFillingModeInterfaceTest/UIAttributesComponentContentFillingModeInterface.test";
+import UIComponentCommonattrGrayscale from "./UIComponentCommonattrGrayscaleTest/UIComponentCommonattrGrayscale.test";
+import UIComponentUISupportForegroundColor
+ from "./UIComponentUISupportForegroundColorTest/UIComponentUISupportForegroundColor.test";
+import UIComponentCommonattrBackgroundColoring
+ from "./UIComponentCommonattrBackgroundColoringTest/UIComponentCommonattrBackgroundColoring.test";
+import UIAttributesClivkreboundeffectInterface
+ from "./UIAttributesClivkreboundeffectInterfaceTest/UIAttributesClivkreboundeffectInterface.test";
+import UIAttributesColorrampInterface from "./UIAttributesColorrampInterfaceTest/UIAttributesColorrampInterface.test";
+import UIAttributesShapecroppingRowsplit
+ from "./UIAttributesShapecroppingRowsplitTest/UIAttributesShapecroppingRowsplit.test";
+import UIAttributesColorrampDfx from "./UIAttributesColorrampDfxTest/UIAttributesColorrampDfx.test";
+import SUBAceThemeComponentStyleswitch
+ from "./SUBAceThemeComponentStyleswitchTest/SUBAceThemeComponentStyleswitch.test";
+import UIAttributesImageEffectUseShadowBatching
+ from "./UIAttributesImageEffectUseShadowBatchingTest/UIAttributesImageEffectUseShadowBatching.test";
+import UIComponentCommonattrSetDynamicDimming
+ from "./UIComponentCommonattrSetDynamicDimmingTest/UIComponentCommonattrSetDynamicDimming.test";
+import UIAttributesGraphictransformationInterface
+ from "./UIAttributesGraphictransformationInterfaceTest/UIAttributesGraphictransformationInterface.test";
+import UIAttributesShapecroppingInterface
+ from "./UIAttributesShapecroppingInterfaceTest/UIAttributesShapecroppingInterface.test";
+import DecouplingBaseDatabase from "./DecouplingBaseDatabaseTest/DecouplingBaseDatabase.test";
+import UIComponentCommonattrForegroundEffect
+ from "./UIComponentCommonattrForegroundEffectTest/UIComponentCommonattrForegroundEffect.test";
+import "./ResourceManagerAmountTest/ResourceManagerAmount.test";
+import ResourceManagerAmount from "./ResourceManagerAmountTest/ResourceManagerAmount.test";
+import TestCase from "./TestCaseTest/TestCase.test";
+import ResourceManagerModuleSr from "./ResourceManagerModuleSrTest/ResourceManagerModuleSr.test";
+import ResourcemanagerModuleRawfile from "./ResourcemanagerModuleRawfileTest/ResourcemanagerModuleRawfile.test";
+import UIAttributesGraphicTransformationSkew
+ from "./UIAttributesGraphicTransformationSkewTest/UIAttributesGraphicTransformationSkew.test";
+import UIAttributesOutlinewidth from "./UIAttributesOutlinewidthTest/UIAttributesOutlinewidth.test";
+import UIAttributesGraphictransformationBackwardanalysis
+ from "./UIAttributesGraphictransformationBackwardanalysisTest/UIAttributesGraphictransformationBackwardanalysis.test";
+import ResourcemanagerRawfile from "./ResourcemanagerRawfileTest/ResourcemanagerRawfile.test";
+import UIComponentPopupboxPopupFollowtransformoftarget
+ from "./UiComponentPopupboxPopupFollowtransformoftargetTest/UIComponentPopupboxPopupFollowtransformoftarget.test";
+import SubAceResourcemanagerSubject from "./SubAceResourcemanagerSubjectTest/SubAceResourcemanagerSubject.test";
+import SubAceActionEventCommoneventEventInterface
+ from "./SubAceActionEventCommoneventEventInterfaceTest/SubAceActionEventCommoneventEventInterface.test";
export default function testsuite() {
ComponentTextRicheditorFontfeatures();
@@ -239,6 +304,49 @@ export default function testsuite() {
UIComponentPopupBoxAttribute();
UIComponentPopupBoxPromptToastSequence();
UIComponentPopupBoxSpecificationsPopup();
+ UIAttributesBlendModeBlendModeMix();
+ UIAttributesImageEffectFilter();
+ UIAttributesColorRampBlurGradient();
+ UIAttributesColorRampAny();
+ UIAttributesHovereffectDoubleStrokeInterface();
+ UIAttributesOutlineColor();
+ UIAttributesTransparencyRenderGroup();
+ UIAttributesTransparencyInterface();
+ UIAttributesImageEffectProjection();
+ UITheme();
+ UIComponentUISupportImage();
+ UIAttributesImageeffectInvert();
+ UIAttributesImageeffectInterface();
+ UIAttributesComponentContentFillingCapirenderfit();
+ UIAttributesRenderFit();
+ UIAttributesComponentContentFillingModeInterface();
+ UIComponentCommonattrGrayscale();
+ UIComponentUISupportForegroundColor();
+ UIComponentCommonattrBackgroundColoring();
+ UIAttributesClivkreboundeffectInterface();
+ UIAttributesColorrampInterface();
+
+ UIAttributesShapecroppingRowsplit();
+ UIAttributesColorrampDfx();
+ SUBAceThemeComponentStyleswitch();
+ UIComponentCommonattrSetDynamicDimming();
+ UIAttributesImageEffectUseShadowBatching();
+ UIAttributesGraphictransformationInterface();
+ UIAttributesShapecroppingInterface();
+ DecouplingBaseDatabase();
+ UIComponentCommonattrForegroundEffect();
+ UIAttributesOutlinewidth();
+ UIAttributesGraphicTransformationSkew();
+ TestCase();
+ ResourcemanagerRawfile();
+ ResourceManagerAmount();
+ ResourcemanagerModuleRawfile();
+ UIAttributesGraphictransformationBackwardanalysis();
+ ResourceManagerModuleSr();
+ UIComponentPopupboxPopupFollowtransformoftarget();
+ SubAceResourcemanagerSubject();
+
+ SubAceActionEventCommoneventEventInterface();
}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ResourceManagerAmountTest/ResourceManagerAmount.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ResourceManagerAmountTest/ResourceManagerAmount.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..14e4ebf92c5dd74d27c09bc229afd77d4cbf3afa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ResourceManagerAmountTest/ResourceManagerAmount.test.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 { 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_RESOURCEMANAGER_AMOUNT:验证类型拼接
+*
+* 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 ResourceManagerAmount() {
+ describe('ResourceManagerAmount', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv()
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_RESOURCEMANAGER_AMOUNT_0010
+ * @tc.name SUB_ACE_RESOURCEMANAGER_AMOUNT_0010
+ * @tc.desc foreach使用场景Copy of (1)
+ */
+ it('SUB_ACE_RESOURCEMANAGER_AMOUNT_0010', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/ResourceManagerAmount/ResourceManagerAmount0010')
+ await Utils.sleep(5000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_RESOURCEMANAGER_AMOUNT_0040
+ * @tc.name SUB_ACE_RESOURCEMANAGER_AMOUNT_0040
+ * @tc.desc 验证引用 color 类型进行拼接
+ */
+ it('SUB_ACE_RESOURCEMANAGER_AMOUNT_0040', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/ResourceManagerAmount/ResourceManagerAmount0040')
+ await Utils.sleep(5000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_RESOURCEMANAGER_AMOUNT_0070
+ * @tc.name SUB_ACE_RESOURCEMANAGER_AMOUNT_0070
+ * @tc.desc 验证引用 integer 类型进行拼接
+ */
+ it('SUB_ACE_RESOURCEMANAGER_AMOUNT_0070', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/ResourceManagerAmount/ResourceManagerAmount0070')
+ await Utils.sleep(5000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_RESOURCEMANAGER_AMOUNT_0080
+ * @tc.name SUB_ACE_RESOURCEMANAGER_AMOUNT_0080
+ * @tc.desc 验证引用 media 类型进行拼接
+ */
+ it('SUB_ACE_RESOURCEMANAGER_AMOUNT_0080', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/ResourceManagerAmount/ResourceManagerAmount0080')
+ await Utils.sleep(5000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_RESOURCEMANAGER_AMOUNT_0100
+ * @tc.name SUB_ACE_RESOURCEMANAGER_AMOUNT_0100
+ * @tc.desc 验证引用 plural 类型进行拼接
+ */
+ it('SUB_ACE_RESOURCEMANAGER_AMOUNT_0100', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/ResourceManagerAmount/ResourceManagerAmount0100')
+ await Utils.sleep(5000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_RESOURCEMANAGER_AMOUNT_0120
+ * @tc.name SUB_ACE_RESOURCEMANAGER_AMOUNT_0120
+ * @tc.desc 验证引用 string 类型进行拼接
+ */
+ it('SUB_ACE_RESOURCEMANAGER_AMOUNT_0120', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/ResourceManagerAmount/ResourceManagerAmount0120')
+ await Utils.sleep(5000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_RESOURCEMANAGER_AMOUNT_0050
+ * @tc.name SUB_ACE_RESOURCEMANAGER_AMOUNT_0050
+ * @tc.desc 验证引用 float 类型进行拼接
+ */
+ it('SUB_ACE_RESOURCEMANAGER_AMOUNT_0050', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/ResourceManagerAmount/ResourceManagerAmount0050');
+ await Utils.sleep(5000);
+
+ 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/ResourceManagerModuleSrTest/ResourceManagerModuleSr.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ResourceManagerModuleSrTest/ResourceManagerModuleSr.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4514039f4ff21504fdd745c04d75cc57c86853d0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ResourceManagerModuleSrTest/ResourceManagerModuleSr.test.ets
@@ -0,0 +1,62 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { 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_RESOURCEMANAGER_MODULE_Sr:验证使用$r跨module访问目录下资源
+*
+* 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 ResourceManagerModuleSr() {
+ describe('ResourceManagerModuleSr', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv()
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_RESOURCEMANAGER_MODULE_Sr_0010
+ * @tc.name SUB_ACE_RESOURCEMANAGER_MODULE_Sr_0010
+ * @tc.desc 使用 $r 跨 module 访问目录下资源
+ */
+ it('SUB_ACE_RESOURCEMANAGER_MODULE_Sr_0010', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/ResourceManagerModuleSr/ResourceManagerModuleSr0010')
+ await Utils.sleep(5000)
+
+ 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/ResourcemanagerModuleRawfileTest/ResourcemanagerModuleRawfile.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ResourcemanagerModuleRawfileTest/ResourcemanagerModuleRawfile.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b8ef13363a49829133c53a8d9b8a8474264d5488
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ResourcemanagerModuleRawfileTest/ResourcemanagerModuleRawfile.test.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 { 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'
+
+/*
+ * ResourcemanagerModuleRawfile
+ *
+ * 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 ResourcemanagerModuleRawfile() {
+
+ describe('ResourcemanagerModuleRawfile', () => {
+ 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_RESOURCEMANAGER_MODULE_RAWFILE_0010
+ * @tc.name SUB_ACE_RESOURCEMANAGER_MODULE_RAWFILE_0010
+ * @tc.desc 跨模块使用rawfile目录下资源
+ */
+ it('SUB_ACE_RESOURCEMANAGER_MODULE_RAWFILE_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ResourcemanagerModuleRawfile/ResourcemanagerModuleRawfile0010");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let playButton: Component = await driver.findComponent(ON.id('playButton'));
+ await playButton.click();
+ await Utils.sleep(20000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ResourcemanagerRawfileTest/ResourcemanagerRawfile.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ResourcemanagerRawfileTest/ResourcemanagerRawfile.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..403185d47c98f617df45ca3378b59481586b2c4b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ResourcemanagerRawfileTest/ResourcemanagerRawfile.test.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 { 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'
+
+/*
+ * ResourcemanagerRawfile
+ *
+ * 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 ResourcemanagerRawfile() {
+
+ describe('ResourcemanagerRawfile', () => {
+ 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 ResourcemanagerRawfile_0010
+ * @tc.name ResourcemanagerRawfile_0010
+ * @tc.desc 使用rawfile目录下资源
+ */
+ it('SUB_ACE_RESOURCEMANAGER_RAWFILE_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ResourcemanagerRawfile/ResourcemanagerRawfile0010");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let playButton: Component = await driver.findComponent(ON.id('playButton'));
+ await playButton.click();
+ await Utils.sleep(20000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SUBAceThemeComponentStyleswitchTest/SUBAceThemeComponentStyleswitch.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SUBAceThemeComponentStyleswitchTest/SUBAceThemeComponentStyleswitch.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a4ec5500e812f0d33a8867bbb4a831b3bc725140
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SUBAceThemeComponentStyleswitchTest/SUBAceThemeComponentStyleswitch.test.ets
@@ -0,0 +1,1168 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 SUBAceThemeComponentStyleswitch() {
+
+ describe('SUBAceThemeComponentStyleswitch', () => {
+ 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_THEME_COMPONENT_STYLESWITCH_0050_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0050_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0050");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0050_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0050_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0050_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0050_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0050_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0050");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0050_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0050_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0050_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0010_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0010_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0010_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0010_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0010_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0010_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0010");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0010_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0010_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0080_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0080_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0080_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0080_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0080_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0080_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0080");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0080_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0080_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0070_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0070_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0070_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0070_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0070_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0070_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0070");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0070_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0070_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0030_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0030_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0030");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0030_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0030_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0030_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0030_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0030_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0030");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0030_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0030_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0030_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0040_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0040_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0040");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0040_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0040_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0040_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0040_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0040_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0040");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0040_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0040_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0040_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0110_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0110_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0110");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0110_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0110_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0110_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0110_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0110");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0110_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0110_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0150_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0150_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0150");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0150_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0150_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0150_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0150_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0150");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0150_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0150_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0020_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0020_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0020");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0020_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0020_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0020_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0020_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0020_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0020");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0020_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0020_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0020_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0100_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0100_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0100");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0100_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0100_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0100_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0100_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0100");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0100_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0100_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0170_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0170_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0170");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0170_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0170_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0170_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0170_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0170");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0170_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0170_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0160_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0160_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0160");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0160_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0160_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0160_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0160_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0160");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0160_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0160_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0140_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0140_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0140");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0140_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0140_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0140_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0140_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0140");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0140_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0140_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0120_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0120_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0120");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0120_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0120_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0120_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0120_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0120");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0120_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0120_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0190_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0190_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0190");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0190_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0190_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0190_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0190_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0190");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0190_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0190_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0200_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0200_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0200");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0200_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0200_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0200_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0200_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0200");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0200_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0200_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0060_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0060_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0060");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0060_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0060_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0060_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0060_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0060_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0060");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0060_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0060_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0060_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0210_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0210_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0210");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0210_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0210_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0210_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0210_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0210");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0210_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0210_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0180_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0180_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0180");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0180_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0180_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0180_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0180_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0180_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0180");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0180_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0180_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0180_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0230_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0230_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0230");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0230_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0230_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0230_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0230_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0230");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0230_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0230_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0240_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0240_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0240");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0240_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0240_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0240_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0240_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0240");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0240_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0240_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0270_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0270_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0270");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0270_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0270_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0270_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0270_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0270");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0270_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0270_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0260_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0260_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0260");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0260_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0260_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0260_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0260_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0260");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0260_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0260_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0280_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0280_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0280");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0280_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0280_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0280_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0280_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0280");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0280_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0280_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0300_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0300_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0300");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0300_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0300_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0300_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0300_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0300");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0300_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0300_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0250_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0250_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0250");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0250_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0250_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0250_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0250_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0250");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0250_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0250_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0220_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0220_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0220");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0220_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0220_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0220_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0220_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0220");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0220_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0220_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0290_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0290_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0290");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0290_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0290_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0290_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0290_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0290");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0290_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0290_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0310_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0310_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0310");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0310_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0310_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0310_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0310_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0310");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0310_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0310_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0320_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0320_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0320");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0320_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0320_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0320_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0320_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0320");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0320_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0320_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0340_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0340_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0340");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0340_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0340_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0340_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0340_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0340");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0340_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0340_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0330_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0330_1 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0330");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0330_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0330_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_THEME_COMPONENT_STYLESWITCH_0330_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0330_2 start.`);
+ Settings.createWindow("testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0330");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('SUBAceThemeComponentStyleswitch0330_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_THEME_COMPONENT_STYLESWITCH_0330_2 finish.`);
+ done();
+ });
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionEventCommoneventEventInterfaceTest/SubAceActionEventCommoneventEventInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionEventCommoneventEventInterfaceTest/SubAceActionEventCommoneventEventInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..29a7486b51e93280ab4ea9e27dcf7faa151ef3c6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionEventCommoneventEventInterfaceTest/SubAceActionEventCommoneventEventInterface.test.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.
+ */
+
+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, Point } from '@ohos.UiTest'
+
+/*
+ * ResourcemanagerRawfile
+ *
+ * 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 SubAceActionEventCommoneventEventInterface() {
+
+ describe('SubAceActionEventCommoneventEventInterface', () => {
+ afterEach(async (done: Function) => {
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0130
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0130
+ * @tc.desc 视效资源主题
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0130', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/SubAceActionEventCommoneventEventInterface/SubAceActionEventCommoneventEventInterface0130");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stack1: Point = await (await driver.findComponent(ON.id('stack1'))).getBoundsCenter();
+ let stack2: Point = await (await driver.findComponent(ON.id('stack2'))).getBoundsCenter();
+ let stack3: Point = await (await driver.findComponent(ON.id('stack3'))).getBoundsCenter();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await driver.click(stack1.x+10,stack1.y+10);
+ await Utils.sleep(1000);
+ await driver.click(stack2.x+10,stack2.y+10);
+ await Utils.sleep(1000);
+ await driver.click(stack3.x+10,stack3.y+10);
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0070
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0070
+ * @tc.desc 视效资源主题
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/SubAceActionEventCommoneventEventInterface/SubAceActionEventCommoneventEventInterface0070");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stack1: Point = await (await driver.findComponent(ON.id('stack1'))).getBoundsCenter();
+ let stack2: Point = await (await driver.findComponent(ON.id('stack2'))).getBoundsCenter();
+ let stack3: Point = await (await driver.findComponent(ON.id('stack3'))).getBoundsCenter();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await driver.click(stack1.x+10,stack1.y+10);
+ await Utils.sleep(1000);
+ await driver.click(stack2.x+10,stack2.y+10);
+ await Utils.sleep(1000);
+ await driver.click(stack3.x+10,stack3.y+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/SubAceResourcemanagerSubjectTest/SubAceResourcemanagerSubject.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceResourcemanagerSubjectTest/SubAceResourcemanagerSubject.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..46b3476ac932c468e5db16ffdfd1b546ae2b0417
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceResourcemanagerSubjectTest/SubAceResourcemanagerSubject.test.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 { 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 SubAceResourcemanagerSubject() {
+
+ describe('SubAceResourcemanagerSubject', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_RESOURCEMANAGER_SUBJECT_0010
+ * @tc.name SUB_ACE_RESOURCEMANAGER_SUBJECT_0010
+ * @tc.desc 验证深色模式和浅色模式主题效果
+ */
+
+ it('SUB_ACE_RESOURCEMANAGER_SUBJECT_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_RESOURCEMANAGER_SUBJECT_0010 start.`);
+ Settings.createWindow("testability/pages/SubAceResourcemanagerSubject/SubAceResourcemanagerSubject0010");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_RESOURCEMANAGER_SUBJECT_0010 finish.`);
+ done();
+ });
+
+ })
+}
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..6edff898ef5bdd450643b6e7c02f035554c70e1e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TestCaseTest/TestCase.test.ets
@@ -0,0 +1,144 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+import { DisplayRotation, Driver, ON, Component } from '@ohos.UiTest'
+import { KeyCode } from '@kit.InputKit';
+
+/*
+* TestCase: 验证类型拼接
+*
+* 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 TestCase() {
+ describe('TestCase', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv()
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_0a25f4ffc9c140118842be8455973975
+ * @tc.name TestCase_0a25f4ffc9c140118842be8455973975
+ * @tc.desc foreach 使用场景
+ */
+ it('TestCase_0a25f4ffc9c140118842be8455973975', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/TestCase/TestCase_0a25f4ffc9c140118842be8455973975')
+ await Utils.sleep(5000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_1bfdd20e3f5544e49c612141698fd8ef
+ * @tc.name TestCase_1bfdd20e3f5544e49c612141698fd8ef
+ * @tc.desc 验证引用 float 类型进行拼接
+ */
+ it('TestCase_1bfdd20e3f5544e49c612141698fd8ef', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/TestCase/TestCase_1bfdd20e3f5544e49c612141698fd8ef')
+ await Utils.sleep(5000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_35e34cc405bd4e679be07d698aa8afbd
+ * @tc.name TestCase_35e34cc405bd4e679be07d698aa8afbd
+ * @tc.desc 验证引用 string 类型进行拼接
+ */
+ it('TestCase_35e34cc405bd4e679be07d698aa8afbd', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/TestCase/TestCase_35e34cc405bd4e679be07d698aa8afbd')
+ await Utils.sleep(5000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number TestCase_f04ea52ddc7242c190e5ceb395dd5e9f
+ * @tc.name TestCase_f04ea52ddc7242c190e5ceb395dd5e9f
+ * @tc.desc 验证引用 media 类型进行拼接
+ */
+ it('TestCase_f04ea52ddc7242c190e5ceb395dd5e9f', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/TestCase/TestCase_f04ea52ddc7242c190e5ceb395dd5e9f')
+ await Utils.sleep(5000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number TestCase56613681deb7487b8168ea008f8d2b17
+ * @tc.name TestCase56613681deb7487b8168ea008f8d2b17
+ * @tc.desc 验证引用 integer 类型进行拼接
+ */
+ it('TestCase_56613681deb7487b8168ea008f8d2b17', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/TestCase/TestCase56613681deb7487b8168ea008f8d2b17')
+ await Utils.sleep(5000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number TestCase74086c77009a4074a2010acdeb67468a
+ * @tc.name TestCase74086c77009a4074a2010acdeb67468a
+ * @tc.desc 验证引用 color 类型进行拼接
+ */
+ it('TestCase_74086c77009a4074a2010acdeb67468a', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/TestCase/TestCase74086c77009a4074a2010acdeb67468a')
+ await Utils.sleep(5000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number TestCase4c0f78ffa2494ff8aa24be9cf0b65243
+ * @tc.name TestCase4c0f78ffa2494ff8aa24be9cf0b65243
+ * @tc.desc 验证引用 color 类型进行拼接
+ */
+ it('TestCase_4c0f78ffa2494ff8aa24be9cf0b65243', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/TestCase/TestCase4c0f78ffa2494ff8aa24be9cf0b65243')
+ await Utils.sleep(5000);
+
+ 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/UIAttributesBlendModeBlendModeMixTest/UIAttributesBlendModeBlendModeMix.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBlendModeBlendModeMixTest/UIAttributesBlendModeBlendModeMix.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..db25a2960ea37cde82beeac528491647349228ce
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBlendModeBlendModeMixTest/UIAttributesBlendModeBlendModeMix.test.ets
@@ -0,0 +1,691 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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'
+
+/*
+ * UIAttributesBlendModeBlendModeMixTest
+ *
+ * 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 UIAttributesBlendModeBlendModeMix(){
+ describe('UIAttributesBlendModeBlendModeMix',()=>{
+ 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_BLENDMODE_BLENDMODEMIX_0190
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0190
+ * @tc.desc 验证控件背景透明度发生变化与Text子组件内容混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0190_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0190");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0190
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0190
+ * @tc.desc 验证控件背景透明度发生变化与Text子组件内容混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0190_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0190");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0110
+ * @tc.desc 验证一个可拖拽的Text子组件拖拽前和拖拽后与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0110_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0110");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0110
+ * @tc.desc 验证控件背景透明度发生变化与Text子组件内容混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0110_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0110");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0160
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0160
+ * @tc.desc 验证Text组件设置平移动画效果过程中与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0160_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0160");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0110
+ * @tc.desc 验证控件背景透明度发生变化与Text子组件内容混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0160_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0160");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0170
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0170
+ * @tc.desc 验证Text组件设置缩放动画效果过程中与控件背景混合效果验证只有一个子节点Text组件
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0170_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0170");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0170
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0170
+ * @tc.desc 验证Text组件设置缩放动画效果过程中与控件背景混合效果验证只有一个子节点Text组件
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0170_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0170");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0060
+ * @tc.desc 给Text组件设置border(width:2.5px,color:Color.Bue,style:BorderStyle Solid})与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0060_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0060");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0170
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0170
+ * @tc.desc 验证Text组件设置缩放动画效果过程中与控件背景混合效果验证只有一个子节点Text组件
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0060_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0060");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0150
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0150
+ * @tc.desc 验证Text组件设置旋转动画效果过程中与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0150_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0150");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0150
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0150
+ * @tc.desc 验证Text组件设置旋转动画效果过程中与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0150_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0150");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0070
+ * @tc.desc 验证多个Text子节点为并列关系与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0070_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0070
+ * @tc.desc 验证多个Text子节点为并列关系与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0070_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0070");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0130
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0130
+ * @tc.desc 验证一个可滚动的Text子组件滚动后的内容与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0130_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0130");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0130
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0130
+ * @tc.desc 验证一个可滚动的Text子组件滚动后的内容与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0130_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0130");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0080
+ * @tc.desc 验证多组件嵌套与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0080_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0080
+ * @tc.desc 验证多组件嵌套与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0080_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0080");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0030
+ * @tc.desc 验证只有一个子节点Text组件给Text组件设置padding(10)与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0030_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0030
+ * @tc.desc 验证只有一个子节点Text组件给Text组件设置padding(10)与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0030_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0030");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0210
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0210
+ * @tc.desc 验证blendMode切换控件背景Text组件内容混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0210_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0210");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0210
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0210
+ * @tc.desc 验证blendMode切换控件背景Text组件内容混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0210_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0210");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('buttonId1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('buttonId2'));
+ await button2.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0200
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0200
+ * @tc.desc 验证控件背景大小发生变化与Text子组件内容混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0200_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0200");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0200
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0200
+ * @tc.desc 验证控件背景大小发生变化与Text子组件内容混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0200_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0200");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0180
+ * @tc.desc 验证控件背景颜色发生变化与Text子组件内容混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0180_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0180");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0180
+ * @tc.desc 验证控件背景颜色发生变化与Text子组件内容混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0180_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0180");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0020
+ * @tc.desc 验证只给text子组件设置blendmode的混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0020_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0020
+ * @tc.desc 验证只给text子组件设置blendmode的混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0020_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0020");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0120
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0120
+ * @tc.desc 验证一个可隐藏的Text子组件掩藏前和隐藏后与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0120_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0120");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0120
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0120
+ * @tc.desc 验证一个可隐藏的Text子组件掩藏前和隐藏后与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0120_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0120");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0140
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0140
+ * @tc.desc 验证一个设置弹窗的Text子组件的弹窗内容与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0140_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0140");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0140
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0140
+ * @tc.desc 验证一个设置弹窗的Text子组件的弹窗内容与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0140_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0140");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0050
+ * @tc.desc 验证只有一个子节点Text组件,给Text组件设置偏移量offset({x:30,y:10])与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0050_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0050");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0050
+ * @tc.desc 验证只有一个子节点Text组件,给Text组件设置偏移量offset({x:30,y:10])与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0050_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0050");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0040
+ * @tc.desc 验证只有一个子节点Text组件给Text组件设置.position({x:50y.50})与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0040_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0040
+ * @tc.desc 验证只有一个子节点Text组件给Text组件设置.position({x:50y.50})与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0040_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0040");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0100
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0100
+ * @tc.desc 验证多个组件多层嵌套
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0100_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0100");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0100
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0100
+ * @tc.desc 验证多个组件多层嵌套
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0100_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0100");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0010
+ * @tc.desc 验证子节点内容为空的混合效果,在colum组件上设置Column0{}blendMode(this blendModel)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0010_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0010
+ * @tc.desc 验证子节点内容为空的混合效果,在colum组件上设置Column0{}blendMode(this blendModel)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0010_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0010");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0090
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0090
+ * @tc.desc 验证既有多个Text子节点为并列关系又有多组件为嵌套关系与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0090_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0090");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0090
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0090
+ * @tc.desc 验证既有多个Text子节点为并列关系又有多组件为嵌套关系与控件背景混合效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_BLENDMODE_BLENDMODEMIX_0090_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0090");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.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/UIAttributesClivkreboundeffectInterfaceTest/UIAttributesClivkreboundeffectInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesClivkreboundeffectInterfaceTest/UIAttributesClivkreboundeffectInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9401b90567c335698b0ce24c96d47c5409bf2fc4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesClivkreboundeffectInterfaceTest/UIAttributesClivkreboundeffectInterface.test.ets
@@ -0,0 +1,446 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { 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 UIAttributesClivkreboundeffectInterface() {
+
+ describe('UIAttributesClivkreboundeffectInterface', () => {
+ 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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0130 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0130");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0130_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0130 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0070 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0070");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0070_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0070 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0160 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0160");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0160_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0160 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0040 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0040");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0040_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0040 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0140 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0140");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0140_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0140 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0110 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0110");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0110_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0110 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0170_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0170_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0170");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0170_001'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0170_002'));
+ await Utils.sleep(100);
+ await button2.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0170_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0170_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0170_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0170");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0170_001'));
+ await Utils.sleep(100);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0170_002'));
+ await Utils.sleep(100);
+ await button2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0170_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0100 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0100");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0100_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0100 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0090 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0090");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0090_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0090 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0020 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0020");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0020_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0020 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0050 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0050");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0050_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0050 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0120 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0120");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0120_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0120 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0080 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0080");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0080_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0080 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0060 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0060");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0060_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0060 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0010 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0010");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0010_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0010 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0150 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0150");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0150_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0150 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0030 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0030");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesClivkreboundeffectInterface0030_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_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0030 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180
+ * @tc.desc 验证所有组件效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0180")
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn1 = await driver.findComponent(ON.id('StackClick'));
+ await btn1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_1 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180
+ * @tc.desc 验证所有组件效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0180")
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn1 = await driver.findComponent(ON.id('FlexClick'));
+ await btn1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_2 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180
+ * @tc.desc 验证所有组件效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0180")
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn1 = await driver.findComponent(ON.id('RelativeContainer'));
+ await btn1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_3 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180
+ * @tc.desc 验证所有组件效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_4', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_4 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0180")
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn1 = await driver.findComponent(ON.id('progress'));
+ await btn1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_4 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180
+ * @tc.desc 验证所有组件效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_5', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_5 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0180")
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn1 = await driver.findComponent(ON.id('dataPanel'));
+ await btn1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_5 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180
+ * @tc.desc 验证所有组件效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_6', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_6 start.`);
+ Settings.createWindow("testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0180")
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let btn1 = await driver.findComponent(ON.id('gauge'));
+ await btn1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_CLIVKREBOUNDEFFECT_INTERFACE_0180_6 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesColorRampAnyTest/UIAttributesColorRampAny.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesColorRampAnyTest/UIAttributesColorRampAny.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..820680e62ca67269bf75467b5a0f2fda8cfb2cb1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesColorRampAnyTest/UIAttributesColorRampAny.test.ets
@@ -0,0 +1,106 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import 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'
+
+/*
+ * UIAttributesColorRampAnyTest
+ *
+ * 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 UIAttributesColorRampAny(){
+ describe('UIAttributesColorRampAny',()=>{
+ 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_COLORRAMP_ANY_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_ANY_0010
+ * @tc.desc linearGradient中的color参数类型Array:any改为ResourceColor,number
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_ANY_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_ANY_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_ANY_0060
+ * @tc.desc colors.参数类型Array:any改为[ResourceColor,number
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_ANY_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0060");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_ANY_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_ANY_0040
+ * @tc.desc sweepGradient中center:参数类型Array:any改为Length,Lengthcolors参数类型Array:any改为ResourceColor,number
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_ANY_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_ANY_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_ANY_0080
+ * @tc.desc radialGradient中center:参数类型Array:any改为Length,Lengthcolors参数类型Array改为ResourceColor,number
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_ANY_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0080");
+ 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/UIAttributesColorRampBlurGradientTest/UIAttributesColorRampBlurGradient.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesColorRampBlurGradientTest/UIAttributesColorRampBlurGradient.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d35a20be676dfae756e188aa70f0fe606a8f29da
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesColorRampBlurGradientTest/UIAttributesColorRampBlurGradient.test.ets
@@ -0,0 +1,262 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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'
+
+/*
+ * UIAttributesColorRampBlurGradient
+ *
+ * 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 UIAttributesColorRampBlurGradient(){
+ describe('UIAttributesColorRampBlurGradient',()=>{
+ 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_COLORRAMP_BLURGRADIENT_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0070
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为10,模糊位置及其模糊程度取值【0,1】,渐变模糊方向direction(枚举类型RightBottom)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0130
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0130
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为10,模糊位置及其模糊程度取值为负值([-1,0]. [1,1])
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0130', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0130");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0170
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0170
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为undefined(按0处理)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0170");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0120
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0120
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为10,模糊位置及其模糊程度取值为([0.5,0.5]. [1,1])
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0120', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0120");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0040
+ * @tc.desc 提供接口linearGradientBur,给控件添加渐变模糊属性,配置模糊半径为10,模糊位置及其模糊程度取值【0,1】,渐变模糊方向direction(枚举类型LeftBottom)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0110
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为10,模糊位置及其模糊程度取值为([0,0]. [1,1])
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0110', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0110");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0080
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为10,模糊位置及其模糊程度取值【0,1】,渐变模糊方向direction(枚举类型RightTop)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0160
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0160
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为80(大于60,按60处理)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0160");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0150
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0150
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为60
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0150");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0030
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为10,模糊位置及其模糊程度取值【0.1】,渐变模糊方向direction(枚举类型Bottom默认值)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0020
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为0
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0140
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0140
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为10,模糊位置及其模糊程度取值大于1(按1处理)([0,0]. [2,2])
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0140");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0050
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为10,模糊位置及其模糊程度取值【0.1】,渐变模糊方向direction(枚举类型Left)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0050");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0100
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0100
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为10,模糊位置及其模糊程度取值【0,1】,渐变模糊方向direction(枚举类型Top)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0100', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0100");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0180
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为负值(按0处理)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0180");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0060
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为10,模糊位置及其模糊程度取值【0,1】,渐变模糊方向direction(枚举类型None)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0060");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0090
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0090
+ * @tc.desc 提供接口linearGradientBlur,给控件添加渐变模糊属性,配置模糊半径为10,模糊位置及其模糊程度取值【0.1】,渐变模糊方向direction(枚举类型Right)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_BLURGRADIENT_0090', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0090");
+ 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/UIAttributesColorrampDfxTest/UIAttributesColorrampDfx.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesColorrampDfxTest/UIAttributesColorrampDfx.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..52a941803a98bb691d6db0b3454c60cbb5bad937
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesColorrampDfxTest/UIAttributesColorrampDfx.test.ets
@@ -0,0 +1,91 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { 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 window from '@ohos.window';
+
+import { Component, Driver, ON } from '@ohos.UiTest'
+import { UiWindow, WindowMode } from '@kit.TestKit'
+import insightIntentDriver from '@ohos.app.ability.insightIntentDriver'
+
+ import { window } from '@kit.ArkUI'
+export default function UIAttributesColorrampDfx() {
+ describe('UIAttributesColorrampDfx', () => {
+ 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_COLORRAMP_DFX_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_DFX_0010
+ * @tc.desc 3-1.显示image组件,有渐变模糊效果,渐变模糊从上向下,无页面卡顿
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_DFX_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_DFX_0010 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampDfx/UIAttributesColorrampDfx0010")
+ await Utils.sleep(2000);
+ Settings.changeOrientation()
+ await Utils.sleep(1000);
+ Settings.changeOrientation()
+ await Utils.sleep(1000);
+ Settings.changeOrientation()
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_DFX_0010 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_DFX_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_DFX_0020
+ * @tc.desc 3-1.显示image组件,有渐变模糊效果,渐变模糊从上向下,无页面卡顿
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_DFX_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_DFX_0020 start.`);
+ let windowClass: window.Window | undefined = undefined
+ Settings.createWindow("testability/pages/UIAttributesColorrampDfx/UIAttributesColorrampDfx0020")
+ await Utils.sleep(2000);
+ windowClass=Settings.windowClass==undefined?await window.getLastWindow(getContext()):Settings.windowClass;
+ Settings.changeWindowSize(windowClass,100, 100)
+ await Utils.sleep(1000);
+ Settings.changeWindowSize(windowClass,200, 300)
+ await Utils.sleep(1000);
+ Settings.changeWindowSize(windowClass,400, 800)
+ await Utils.sleep(1000);
+ Settings.changeWindowSize(windowClass,700, 900)
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_DFX_0020 finish.`);
+ done();
+ })
+
+
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesColorrampInterfaceTest/UIAttributesColorrampInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesColorrampInterfaceTest/UIAttributesColorrampInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..be4bd4ded4acd65abe32e4b542405e9a3a9eeab2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesColorrampInterfaceTest/UIAttributesColorrampInterface.test.ets
@@ -0,0 +1,1866 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIAttributesColorrampInterface() {
+
+ describe('UIAttributesColorrampInterface', () => {
+
+ 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_COLORRAMP_INTERFACE_0560
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0560
+ * @tc.desc Button按钮径向渐变中心点发生变化,Button按钮由显示到隐藏的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0560_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0560_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0560")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0560_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0560
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0560
+ * @tc.desc Button按钮径向渐变中心点发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0560_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0560_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0560")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0560_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0030
+ * @tc.desc 显示Button,有线性渐变效果,线性渐变起始角度为0
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0030 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0030")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0030 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0870
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0870
+ * @tc.desc 显示Column,无渐变效果,由黑色填充
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0870', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0870 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0870")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0870 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0380
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0380
+ * @tc.desc 显示Button,有渐变效果,径向渐变中心点在组件边上
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0380', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0380 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0380")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0380 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0550
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0550
+ * @tc.desc Button按钮径向渐变中心点发生变化,Button按钮由显示到隐藏的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0550_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0550_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0550")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd2'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0550_1 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0550
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0550
+ * @tc.desc Button按钮径向渐变中心点发生变化,Button按钮由显示到隐藏的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0550_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0550_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0550")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd2'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0550_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0410
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0410
+ * @tc.desc 显示Button,无渐变效果,由最后一个颜色填充
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0410', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0410 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0410")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0410 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0070
+ * @tc.desc 4-1.Button按钮线性渐变方向发生变化,Button按钮由显示到隐藏的动画效果(None不参与布局不进行占位)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0070_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0070_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0070")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0070_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0070
+ * @tc.desc 5-1.Button按钮线性渐变方向发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0070_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0070_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0070")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0070_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0060
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0060
+* @tc.desc 4-1.Button按钮线性渐变方向发生变化,Button按钮由显示到隐藏的动画效果(Hiden参与布局不进行占位)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0060_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0060_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0060")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0060_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0060
+ * @tc.desc 5-1.Button按钮线性渐变方向发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0060_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0060_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0060")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0060_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0460
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0460
+* @tc.desc 3-1.显示Button,有渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0460', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0460 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0460")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0460 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0090
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0090
+* @tc.desc 4-1.Button按钮线性渐变角度发生变化,Button按钮由显示到隐藏的动画效果(None不参与布局不进行占位)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0090_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0090_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0090")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0090_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0090
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0090
+ * @tc.desc 5-1.Button按钮线性渐变角度发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0090_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0090_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0090")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0090_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0250
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0250
+* @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变起始角度为180("AAA"无效值,按默认值180处理)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0250 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0250")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0250 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0120
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0120
+* @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为从上到下
+ 4-1.Button按钮线性渐变颜色重复发生变化(无动画效果 )
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0120 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0120")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0120 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0220
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0220
+* @tc.desc 4-1.Button按钮线性渐变角度发生变化,Button按钮由显示到隐藏的动画效果(Hidden参与布局进行占位)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0220_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0220_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0220")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0220_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0220
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0220
+ * @tc.desc 5-1.Button按钮线性渐变角度发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0220_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0220_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0220")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0220_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0420
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0420
+* @tc.desc 3-1.显示Button,有渐变效果(渐变半径为20px)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0420', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0420 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0420")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0420 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0840
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0840
+* @tc.desc 3-1.显示Button,有渐变效果(rotation取负值,按0处理)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0840', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0840 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0840")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0840 finish.`);
+ done();
+ })
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0530
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0530
+* @tc.desc 4-1.Button按钮径向渐变颜色发生变化,Button按钮由显示到隐藏的动画效果(None不参与布局,不进行占位)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0530_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0530_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0530")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0530_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0530
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0530
+ * @tc.desc 5-1.Button按钮径向渐变颜色发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0530_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0530_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0530")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0530_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0700
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0700
+* @tc.desc 3-1.显示Button,无渐变效果,由最后一个颜色填充
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0700', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0700 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0700")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0700 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0370
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0370
+* @tc.desc 3-1.显示Button,有渐变效果,径向渐变中心点在组件外
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0370', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0370 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0370")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0370 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0720
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0720
+* @tc.desc 3-1.显示Button,无渐变效果,由最后一个颜色填充
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0720', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0720 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0720")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0720 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0520
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0520
+* @tc.desc 4-1.Button按钮径向渐变中心点发生变化,Button按钮由显示到隐藏的动画效果(None不参与布局,不进行占位)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0520_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0520_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0520")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0520_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0520
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0520
+ * @tc.desc 5-1.Button按钮径向渐变颜色发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0520_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0520_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0520")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0520_2 finish.`);
+ done();
+ })
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0450
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0450
+* @tc.desc 3-1.显示Button,有渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0450', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0450 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0450")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0450 finish.`);
+ done();
+ })
+
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0580
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0580
+* @tc.desc 4-1.Button按钮径向渐变半径发生变化,Button按钮由显示到隐藏的动画效果(Hidden参与布局进行占位)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0580_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0580_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0580")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0580_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0580
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0580
+ * @tc.desc 5-1.Button按钮径向渐变半径发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0580_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0580_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0580")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0580_2 finish.`);
+ done();
+ })
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0210
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0210
+* @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为从下向上
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0210 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0210")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_2010 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0200
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0200
+* @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为从左向右
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0200', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0200 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0200")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0200 finish.`);
+ done();
+ })
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0100
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0100
+* @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为从上到下
+ 4-1.Button按钮线性渐变颜色发生变化(无动画效果)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0100 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0100")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0100 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0500
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0500
+* @tc.desc 3-1.显示Button,有渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0500', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0500 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0500")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0500 finish.`);
+ done();
+ })
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0390
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0390
+* @tc.desc 3-1.显示Button,有渐变效果,不重复着色
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0390', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0390 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0390")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0390 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0620
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0620
+* @tc.desc 4-1.Button按钮角度渐变中心点发生变化,Button按钮由显示到隐藏的动画效果(None不参与布局,不进行占位)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0620_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0620_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0620")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0620_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0620
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0620
+ * @tc.desc 5-1.Button按钮角度渐变中心点发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0620_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0620_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0620")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0620_2 finish.`);
+ done();
+ })
+
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0310
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0310
+ * @tc.desc 3-1.显示Button,有线性渐变效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0310 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0310")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0310 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0480
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0480
+ * @tc.desc 3-1.显示Button,有渐变效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0480', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0480 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0480")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0480 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0440
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0440
+ * @tc.desc 3-1.显示Button,无渐变效果,由最后一个颜色填充(负值按0处理)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0440', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0440 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0440")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0440 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0810
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0810
+ * @tc.desc 3-1.显示Button,有渐变效果(与90效果一致)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0810', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0810 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0810")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0810 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0740
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0740
+ * @tc.desc 3-1.显示Button,无渐变效果,由最后一个颜色填充
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0740', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0740 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0740")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0740 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0130
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0130
+ * @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为从上向下
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0130 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0130")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0130 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0900
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0900
+ * @tc.desc 3-1.显示Button,无渐变效果,由最后一个颜色填充
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0900', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0900 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0900")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0900 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0640
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0640
+ * @tc.desc 4-1.Button按钮角度渐变重复着色发生变化,Button按钮由显示到隐藏的动画效果(None不参与布局,不进行占位 )
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0640_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0640_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0640")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0640_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0640
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0640
+ * @tc.desc 5-1.Button按钮角度渐变重复着色发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0640_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0640_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0640")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0640_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0140
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0140
+ * @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为左下
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0140 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0140")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0140 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0880
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0880
+ * @tc.desc 3-1.显示Button,无渐变效果,由黑色填充
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0880', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0880 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0880")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0880 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0230
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0230
+ * @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变起始角度为180(设置angle后,线性渐变方向direction不生效)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0230 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0230")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0230 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0160
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0160
+ * @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为从右向左
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0160 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0160")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0160 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0170
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0170
+ * @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为从上到下
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0170', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0170 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0170")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0170 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0240
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0240
+ * @tc.desc 3-1.显示Button,有线性渐变效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0240 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0240")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0240 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0910
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0910
+ * @tc.desc 3-1.显示Button,无渐变效果,由最后一个颜色填充
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0910', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0910 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0910")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0910 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0730
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0730
+* @tc.desc 3-1.显示Button,无渐变效果,由最后一个颜色填充
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0730', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0730 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0730")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0730 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0020
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0020
+* @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变起始角度为180
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0020 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0020")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0020 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0820
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0820
+* @tc.desc 3-1.显示Button,有渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0820', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0820 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0820")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0820 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0830
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0830
+* @tc.desc 3-1.显示Button,有渐变效果(rotation取值380,大于360按360处理)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0830', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0830 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0830")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0830 finish.`);
+ done();
+ })
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0470
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0470
+* @tc.desc 3-1.显示Button,有渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0470', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0470 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0470")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0470 finish.`);
+ done();
+ })
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0320
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0320
+* @tc.desc 3-1.显示Button,有渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0320', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0320 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0320")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0320 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0660
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0660
+ * @tc.desc 4-1.Button按钮角度渐变中心点发生变化,Button按钮由显示到隐藏的动画效果(Hidden参与布局进行占位)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0660_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0660_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0660")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0660_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0660
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0660
+ * @tc.desc 5-1.Button按钮角度渐变中心点发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0660_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0660_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0660")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0660_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0800
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0800
+* @tc.desc 3-1.显示Button,有渐变效果(与90效果一致)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0800', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0800 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0800")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0800 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0710
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0710
+* @tc.desc 3-1.显示Button,无渐变效果,由最后一个颜色填充
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0710', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0710 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0710")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0710 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0260
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0260
+* @tc.desc 3-1.显示Button,有线性渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0260 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0260")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0260 finish.`);
+ done();
+ })
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0400
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0400
+* @tc.desc 3-1.显示Button,有渐变效果,重复着色
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0400', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0400 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0400")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0400 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0290
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0290
+* @tc.desc 3-1.显示Button,有线性渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0290', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0290 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0290")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0290 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0850
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0850
+* @tc.desc 3-1.显示Button,有渐变效果(不重复着色)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0850', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0850 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0850")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0850 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0080
+ * @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为从上到下
+ 4-1.Button按钮线性渐变角度发生变化(无动画效果)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0080 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0080")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0080 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0340
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0340
+* @tc.desc 3-1.显示Button,有渐变效果(不重复着色)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0340', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0340 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0340")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0340 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0780
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0780
+* @tc.desc 3-1.显示Button,有渐变效果(负值按0处理)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0780', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0780 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0780")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0780 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0570
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0570
+ * @tc.desc 4-1.Button按钮径向渐变颜色发生变化,Button按钮由显示到隐藏的动画效果(Hidden参与布局进行占位)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0570_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0570_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0570")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0570_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0570
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0570
+ * @tc.desc 5-1.Button按钮径向渐变颜色发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0570_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0570_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0570")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0570_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0350
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0350
+* @tc.desc 3-1.显示Button,无线性渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0350', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0350 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0350")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0350 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0860
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0860
+* @tc.desc 3-1.显示Button,有渐变效果(重复着色)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0860', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0860 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0860")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0860 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0040
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0040
+* @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为从上到下,渐变颜色不重复着色
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0040 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0040")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0040 finish.`);
+ done();
+ })
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0050
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0050
+* @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为从上到下,渐变颜色重复着色
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0050 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0050")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0050 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0110
+ * @tc.desc 4-1.Button按钮线性渐变方向发生变化(无动画效果)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0110 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0110")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0110 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0790
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0790
+* @tc.desc 3-1.显示Button,有渐变效果(与90效果一致)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0790', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0790 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0790")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0790 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0280
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0280
+* @tc.desc 3-1.显示Button,有线性渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0280 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0280")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0280 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0630
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0630
+ * @tc.desc 4-1.Button按钮角度渐变颜色发生变化,Button按钮由显示到隐藏的动画效果(None不参与布局,不进行占位)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0630_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0630_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0630")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0630_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0630
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0630
+ * @tc.desc 5-1.Button按钮角度渐变颜色发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0630_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0630_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0630")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0630_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0300
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0300
+* @tc.desc 3-1.显示Button,有线性渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0300', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0300 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0300")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0300 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0300
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0300
+* @tc.desc 3-1.显示Button,有渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0750', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0750 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0750")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0750 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0190
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0190
+* @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为右上
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0190 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0190")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0190 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0670
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0670
+* @tc.desc 4-1.Button按钮角度渐变颜色发生变化,Button按钮由显示到隐藏的动画效果(Hidden参与布局进行占位)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0670_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0670_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0670")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0670_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0670
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0630
+ * @tc.desc 5-1.Button按钮角度渐变颜色发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0670_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0670_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0670")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0670_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0760
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0760
+* @tc.desc 3-1.显示Button,有渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0760', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0760 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0760")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0760 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0150
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0150
+* @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为左上
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0150 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0150")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0150 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0330
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0330
+* @tc.desc 3-1.显示Button,有线性渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0330', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0330 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0330")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0330 finish.`);
+ done();
+ })
+
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0680
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0680
+* @tc.desc 4-1.Button按钮角度渐变重复着色发生变化,Button按钮由显示到隐藏的动画效果(Hidden参与布局进行占位)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0680_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0680_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0680")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0680_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0680
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0680
+ * @tc.desc 5-1.Button按钮角度渐变重复着色发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0680_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0680_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0680")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0680_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0270
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0270
+* @tc.desc 3-1.显示Button,有线性渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0270 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0270")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0270 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0490
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0490
+* @tc.desc 3-1.显示Button,有渐变效果(非颜色类型置为黑色)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0490', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0490 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0490")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0490 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0540
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0540
+* @tc.desc 4-1.Button按钮径向渐变半径发生变化,Button按钮由显示到隐藏的动画效果(None不参与布局,不进行占位)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0540_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0540_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0540")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0540_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0540
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0540
+ * @tc.desc 5-1.Button按钮径向渐变半径发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0540_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0540_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0540")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0540_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0650
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0650
+* @tc.desc 4-1.Button按钮角度渐变起点、终点发生变化,Button按钮由显示到隐藏的动画效果(None不参与布局,不进行占位)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0650_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0650_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0650")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0650_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0650
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0650
+ * @tc.desc 5-1.Button按钮角度渐变起点、终点发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0650_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0650_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0650")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0650_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0590
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0590
+* @tc.desc 4-1.Button按钮径向渐变重复着色发生变化,Button按钮由显示到隐藏的动画效果(Hidden参与布局进行占位)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0590_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0590_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0590")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0590_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0590
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0590
+ * @tc.desc 5-1.Button按钮径向渐变重复着色发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0590_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0590_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0590")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0590_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0510
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0510
+* @tc.desc 3-1.显示Button,有渐变效果,径向渐变中心点在组件内
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0510', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0510 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0510")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0510 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0180
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0180
+* @tc.desc 3-1.显示Button,有线性渐变效果,线性渐变方向为右下
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0180 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0180")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0180 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0890
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0890
+* @tc.desc 3-1.显示Button,无渐变效果,由最后一个颜色填充
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0890', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0890 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0890")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0890 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0770
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0770
+* @tc.desc 3-1.显示Button,有渐变效果(大于360,按360处理)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0770', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0770 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0770")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0770 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0690
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0690
+* @tc.desc 4-1.Button按钮角度渐变起点、终点发生变化,Button按钮由显示到隐藏的动画效果(Hidden参与布局进行占位)
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0690_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0690_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0690")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0690_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0690
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0690
+ * @tc.desc 5-1.Button按钮角度渐变起点、终点发生变化,Button按钮由隐藏到显示的动画效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0690_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0690_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0690")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('changeRd1'));
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await animateButton.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0690_2 finish.`);
+ done();
+ })
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0610
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0610
+* @tc.desc 3-1.显示Button,无角度渐变效果,由黑色填充
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0610', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0610 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0610")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0610 finish.`);
+ done();
+ })
+ /*
+* @tc.number SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0430
+* @tc.name SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0430
+* @tc.desc 3-1.显示Button,有渐变效果
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0430', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0430 start.`);
+ Settings.createWindow("testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0430")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COLORRAMP_INTERFACE_0430 finish.`);
+ done();
+ })
+
+
+ })
+
+
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesComponentContentFillingCapirenderfitTest/UIAttributesComponentContentFillingCapirenderfit.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesComponentContentFillingCapirenderfitTest/UIAttributesComponentContentFillingCapirenderfit.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1c70d62a7e76d0a64e8f0982c1133f38504d2001
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesComponentContentFillingCapirenderfitTest/UIAttributesComponentContentFillingCapirenderfit.test.ets
@@ -0,0 +1,176 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIAttributesComponentContentFillingCapirenderfit() {
+
+ describe('UIAttributesComponentContentFillingCapirenderfit', () => {
+ afterEach(async (done: Function) => {
+ if (Settings.windowClass == undefined) {
+ return
+ }
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`)
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0140
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0140
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为RESIZE_COVER时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0140 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0140")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0140 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0120
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0120
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为RESIZE_CONTAIN_TOP_LEFT时组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0120 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0120")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0120 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0160
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0160
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为RESIZE_COVER_BOTTOM_RIGHT时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0160 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0160")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0160 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0150
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0150
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为RESIZE_COVER_TOP_LEFT时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0150 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0150")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0150 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0130
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0130
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为RESIZE_CONTAIN_BOTTOM_RIGHT时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0130 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0130")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0130 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0110
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为RESIZE_CONTAIN时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0110 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0110")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0110 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0100
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0100
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为RESIZE_FILL时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0110 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0100")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_CAPIRENDERFIT_0100 finish.`);
+ done();
+ })
+
+
+
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesComponentContentFillingModeInterfaceTest/UIAttributesComponentContentFillingModeInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesComponentContentFillingModeInterfaceTest/UIAttributesComponentContentFillingModeInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4ad6cc29ab6a33e666c63a0faa207134d4b236ad
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesComponentContentFillingModeInterfaceTest/UIAttributesComponentContentFillingModeInterface.test.ets
@@ -0,0 +1,855 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIAttributesComponentContentFillingModeInterface() {
+ describe('UIAttributesComponentContentFillingModeInterface', () => {
+ 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_COMPONENTCONTENTFILLING_MODEINTERFACE_0340
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0340
+ * @tc.desc TOP_RIGHT,内容绘制在节点右上方,终态的高宽比始态的高宽小
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0340', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0340 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0340")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0340 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0040
+ * @tc.desc BOTTOM_RIGHT,内容绘制在节点右下方,终态的高宽比始态的高宽小
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0040 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0040")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0310
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0310
+ * @tc.desc TOP_LEFT,内容绘制在节点左上方,终态的高宽比始态的高宽大
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0310 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0310")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0310 finish.`);
+ done();
+ })
+
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0010
+ * @tc.desc BOTTOM_LEFT,内容绘制在节点左下方,终态的高宽比始态的高宽大
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0010 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0010")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0010 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0020
+ * @tc.desc BOTTOM_LEFT,内容绘制在节点左下方,终态的高宽比始态的高宽小
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0020_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0020")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0020
+ * @tc.desc BOTTOM_LEFT,内容绘制在节点左下方,终态的高宽比始态的高宽小
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0020_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0020")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0030
+ * @tc.desc BOTTOM_RIGHT,内容绘制在节点右下方,终态的高宽比始态的高宽大
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0030_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0030")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0030
+ * @tc.desc BOTTOM_RIGHT,内容绘制在节点右下方,终态的高宽比始态的高宽大
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0030_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0030")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0430
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0430
+ * @tc.desc 未配置renderFit(fitMode:RenderFit)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0430_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0430")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0430
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0430
+ * @tc.desc 未配置renderFit(fitMode:RenderFit)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0430_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0430")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0200
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0200
+ * @tc.desc RESIZE_COVER_BOTTOM_RIGHT内容完全包含节点,节点在内容右下方,内容绘制在节点右下方,节点高比内容小,宽比内容大
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0200_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0200")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0200
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0200
+ * @tc.desc RESIZE_COVER_BOTTOM_RIGHT内容完全包含节点,节点在内容右下方,内容绘制在节点右下方,节点高比内容小,宽比内容大
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0200_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0200")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0330
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0330
+ * @tc.desc TOP_RIGHT,内容绘制在节点右上方,终态的高宽比始态的高宽大
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0330_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0330")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0330
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0330
+ * @tc.desc TOP_RIGHT,内容绘制在节点右上方,终态的高宽比始态的高宽大
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0330_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0330")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0060
+ * @tc.desc BOTTOM,内容绘制在节点底部居中,终态的高宽比始态的高宽小
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0060_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0060")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0060
+ * @tc.desc BOTTOM,内容绘制在节点底部居中,终态的高宽比始态的高宽小
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0060_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0060")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0160 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0160");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0160_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0160 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0320', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0320 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0320");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0320_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0320 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0250 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0250");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0250_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0250 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0360', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0360 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0360");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0360_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0360 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0350', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0350 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0350");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0350_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0350 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0090 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0090");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0090_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0090 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0230
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0230
+ * @tc.desc RESIZE_COVER,内容完全包含节点,节点在内容中心,内容绘制在节点中心,节点高宽都比内容小
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0230', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0230")
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0130
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0130
+ * @tc.desc RESIZE_CONTAIN_BOTTOM_RIGHT.节点完全包含内容,内容绘制在节点右上方,内容高比节点小,宽比节点大
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0130', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0130")
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0180
+ * @tc.desc RESIZE_CONTAIN,节点完全包含内容,内容绘制在节点中心内容高比节点小,宽比节点大
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0180")
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0110
+ * @tc.desc renderFit设为异常值
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0110', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0110")
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0140
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0140
+ * @tc.desc RESIZE_CONTAIN_TOP_LEFT,节点完全包含内容,内容绘制在节点左上方,内容高比节点大,宽比节点小
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0140")
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0220
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0220
+ * @tc.desc RESIZE_COVER_TOP_LEFT,内容完全包含节点,节点在内容左上方,内容绘制在节点左上方,节点高比内容小,宽比内容大
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0220")
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0170
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0170
+ * @tc.desc RESIZE_COVER_TOP_LEFT,内容完全包含节点,节点在内容左上方,内容绘制在节点左上方,节点高比内容小,宽比内容大
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0170")
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0380
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0380
+ * @tc.desc 其他动画配置renderFit的效果-显式动画
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0380', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0380")
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0260
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0260
+ * @tc.desc RESIZE_FILL,内容与节点大小同步一致(高宽适配),内容与节点形状不同
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0260', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0260")
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0390
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0390
+ * @tc.desc 其他动画配置renderFit的效果-路径动画
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0390', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0390")
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(8000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0400
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0400
+ * @tc.desc 其他动画配置renderFit的效果-转场动画-元素转场
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0400', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0400")
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('stackId'));
+ await button.click();
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0410
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0410
+ * @tc.desc 其他动画配置renderFit的效果-转场动画-组件内转场
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0410', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0410")
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0420
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0420
+ * @tc.desc 其他动画配置renderFit的效果-转场动画-页面转场
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0420', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0420")
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('imageId'));
+ await button.click();
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0300', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0300 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0300");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0300_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0300 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0100 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0100");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0100_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0100 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0120 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0120");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0120_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0120 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0080 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0080");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0080_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0080 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0270 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0270");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0270_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0270 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0190 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0190");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0190_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0190 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0210 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0210");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0210_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0210 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0050 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0050");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0050_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0050 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0240 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0240");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0240_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0240 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0370', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0370 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0370");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0370_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0370 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0070 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0070");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0070_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0070 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0290', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0290 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0290");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0290_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0290 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0150 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0150");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0150_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0150 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0280 start.`);
+ Settings.createWindow("testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0280");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UIAttributesComponentcontentfillingModeinterface0280_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(3000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_COMPONENTCONTENTFILLING_MODEINTERFACE_0280 finish.`);
+ done();
+ });
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesGraphicTransformationSkewTest/UIAttributesGraphicTransformationSkew.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesGraphicTransformationSkewTest/UIAttributesGraphicTransformationSkew.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2d44ae5934d9ebe8698f8ad2dbaa06a504b91866
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesGraphicTransformationSkewTest/UIAttributesGraphicTransformationSkew.test.ets
@@ -0,0 +1,730 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIAttributesGraphicTransformationSkew() {
+
+ describe('UIAttributesGraphicTransformationSkew', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ done();
+ })
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0050_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0050_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0050");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0050_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0050_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0050_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0050_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0050");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0050_002'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0050_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0050_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0050_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0050");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0050_003'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0050_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0050_4', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0050_4 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0050");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0050_004'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0050_4 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0040_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0040_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0040");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let scale: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0040_001'));
+ await Utils.sleep(1000);
+ await scale.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let translate: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0040_002'));
+ await Utils.sleep(1000);
+ await translate.click();
+ await Utils.sleep(1000);
+ let rotate: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0040_003'));
+ await Utils.sleep(1000);
+ await rotate.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0040_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0040_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0040_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0040");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let scale: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0040_001'));
+ await Utils.sleep(1000);
+ await scale.click();
+ await Utils.sleep(1000);
+ let translate: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0040_002'));
+ await Utils.sleep(1000);
+ await translate.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let rotate: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0040_003'));
+ await Utils.sleep(1000);
+ await rotate.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0040_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0040_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0040_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0040");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let scale: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0040_001'));
+ await Utils.sleep(1000);
+ await scale.click();
+ await Utils.sleep(1000);
+ let translate: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0040_002'));
+ await Utils.sleep(1000);
+ await translate.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let rotate: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0040_003'));
+ await Utils.sleep(1000);
+ await rotate.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0040_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0030");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0030_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0030");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0030_002'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0030");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0030_003'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_4', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_4 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0030");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0030_004'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_4 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_5', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_5 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0030");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0030_005'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_5 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_6', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_6 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0030");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0030_006'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0030_6 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0090_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0090_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0090");
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0090_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0090_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0090_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0090");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0090_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0090_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0090_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0090_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0090");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0090_002'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0090_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0060_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0060_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0060");
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0060_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0060_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0060_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0060");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0060_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0060_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0060_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0060_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0060");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0060_002'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0060_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0070_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0070_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0070");
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0070_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0070_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0070_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0070");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0070_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0070_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0070_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0070_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0070");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0070_002'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0070_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0020");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0020_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0020");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0020_002'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0020");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0020_003'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_4', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_4 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0020");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0020_004'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_4 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_5', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_5 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0020");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0020_005'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_5 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_6', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_6 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0020");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0020_006'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0020_6 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0010");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0010_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0010");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0010_002'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0010");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0010_003'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_4', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_4 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0010");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0010_004'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_4 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_5', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_5 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0010");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0010_005'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_5 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_6', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_6 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0010");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0010_006'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0010_6 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0080_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0080_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0080");
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0080_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0080_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0080_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0080");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0080_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0080_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0080_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0080_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0080");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0080_002'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0080_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0100_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0100_002'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_3 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0100_003'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_4', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_4 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0100_004'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_4 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_5', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_5 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0100_005'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_5 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_6', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_6 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0100_006'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_6 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_7', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_7 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0100_007'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_7 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_8', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_8 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('UIAttributesGraphicTransformationSkew0100_008'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_SKEW_0100_8 finish.`);
+ done();
+ });
+
+
+
+
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesGraphictransformationBackwardanalysisTest/UIAttributesGraphictransformationBackwardanalysis.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesGraphictransformationBackwardanalysisTest/UIAttributesGraphictransformationBackwardanalysis.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5dc22feb19fb7ce358d48af7fd1033afe9ba0d9b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesGraphictransformationBackwardanalysisTest/UIAttributesGraphictransformationBackwardanalysis.test.ets
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+import { Component, Driver, ON } from '@ohos.UiTest'
+
+export default function UIAttributesGraphictransformationBackwardanalysis() {
+ describe('UIAttributesGraphictransformationBackwardanalysis', () => {
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_BACKWARDANALYSIS_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_BACKWARDANALYSIS_0010
+ * @tc.desc 验证transform的缩放属性,开始的位置设为中心,先放大,再恢复到原始大小,再缩小
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_BACKWARDANALYSIS_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationBackwardanalysis/UIAttributesGraphictransformationBackwardanalysis0010");
+ await Utils.sleep(1000);
+
+ let driver: 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)
+ 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/UIAttributesGraphictransformationInterfaceTest/UIAttributesGraphictransformationInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesGraphictransformationInterfaceTest/UIAttributesGraphictransformationInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..974bd3d44617f6d0693b18ad4f8b892a3cf89276
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesGraphictransformationInterfaceTest/UIAttributesGraphictransformationInterface.test.ets
@@ -0,0 +1,314 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+import { DisplayRotation, Driver, ON, Component } from '@ohos.UiTest'
+
+
+export default function UIAttributesGraphictransformationInterface() {
+
+ describe('UIAttributesGraphictransformationInterface', () => {
+ 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_GRAPHICTRANSFORMATION_INTERFACE_0310
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0310
+ * @tc.desc 1-1.组件正常显示,与原组件大小一致
+ */
+
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0310 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0310");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0310 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0230
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0230
+ * @tc.desc 1-1.组件正常显示,处于原位置
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0230 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0230");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0230 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0390
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0390
+ * @tc.desc 1.进入demo,查看scale:{y:1.5}效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0390', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0390 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0390");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0390 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0240
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0240
+ * @tc.desc 1-1.组件正常显示,处于原位置,效果{x:0,y:0,z:0}一致
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0240 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0240");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0240 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0210
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0210
+ * @tc.desc 1-1.组件正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0210 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0210");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0210 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0090
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0090
+ * @tc.desc 1-1.组件正常显示,处于原位置
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0090 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0090");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0090 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0270
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0270
+ * @tc.desc 1-1.组件正常显示,向y=0.75x方向移动50
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0270 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0270");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0270 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0380
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0380
+ * @tc.desc 1-1.以组件中心为基点,纵向缩小至0,不显示组件
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0380', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0380 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0380");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0380 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0360
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0360
+ * @tc.desc 1-1.以组件(centerX:"50%",centerY:"20px'}为基点,横向放大20%
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0360', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0360 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0360");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0360 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0260
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0260
+ * @tc.desc 1-1.组件正常显示,向右移动100px
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0260 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0260");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0260 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0220
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0220
+ * @tc.desc 1-1.组件正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0220', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0220 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0220");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0220 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0290
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0290
+ * @tc.desc 1-1.组件正常显示,与原组件大小一致
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0290', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0290 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0290");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0290 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0400
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0400
+ * @tc.desc 1-1.组件正常显示,与原组件大小一致
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0400', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0400 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0400");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0400 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0160
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0160
+ * @tc.desc 1-1.组件以y为旋转轴,顺时针旋转45°
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0160 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0160");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0160 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0370
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0370
+ * @tc.desc 1-1.以组件中心为基点,横向放大50%
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0370', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0370 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0370");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0370 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0250
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0250
+ * @tc.desc 1-1.组件正常显示,向左移动100
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0250 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0250");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0250 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0030
+ * @tc.desc 1-1.组件顺时针旋转90°
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0030 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0030 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0020
+ * @tc.desc 1-1.组件逆时针旋转90°
+*/
+ it('SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0020 start.`);
+ Settings.createWindow("testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_GRAPHICTRANSFORMATION_INTERFACE_0020 finish.`);
+ done();
+ });
+
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesHovereffectDoubleStrokeInterfaceTest/UIAttributesHovereffectDoubleStrokeInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesHovereffectDoubleStrokeInterfaceTest/UIAttributesHovereffectDoubleStrokeInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f56aaa935bf374bce82509ee234ce9aa1371c7b1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesHovereffectDoubleStrokeInterfaceTest/UIAttributesHovereffectDoubleStrokeInterface.test.ets
@@ -0,0 +1,416 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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'
+
+/*
+ * UIAttributesHovereffectDoubleStrokeInterface
+ *
+ * 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 UIAttributesHovereffectDoubleStrokeInterface() {
+
+ describe('UIAttributesHovereffectDoubleStrokeInterface', () => {
+ afterEach(async (done: Function) => {
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0170
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0170
+ * @tc.desc 使用ResourceColor的方式设置边框颜色,颜色为为黑色
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0170");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0090
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0090
+ * @tc.desc 使用EdgeoutlineColor的方式设置每个边框的宽度
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0090', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0090");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0050
+ * @tc.desc 不设置,使用默认值black。边框颜色为黑色
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0050");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0140
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0140
+ * @tc.desc 使用Length的方式设置边框宽度为5
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0140");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0200
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0200
+ * @tc.desc 只设置外描边
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0200");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0010
+ * @tc.desc 不设置外描边圆角,为默认效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0100
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0100
+ * @tc.desc 使用EdgeoutlineColor的方式设置每个边框的颜色
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0100', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0100");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0060
+ * @tc.desc 不设置,使用默认值,边框颜色为黑色
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0060");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0130
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0130
+ * @tc.desc 使用Edgeoutlinestyle的方式设置每一边边框的样式
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0130', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0130");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0020
+ * @tc.desc 不设置外描边圆角,默认效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0250
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0250
+ * @tc.desc 设置外描边样式为dotted,外描边样式为圆点
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0250', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0250");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0040
+ * @tc.desc 不设置,使用默认值0,既无边框
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0150
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0150
+ * @tc.desc 使用Length的方式设置边框宽度,宽度为5
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0150");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0030
+ * @tc.desc 不设置,使用默认值0,即无边框
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0240
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0240
+ * @tc.desc 设置外描边样式为doshed,外描边样式为虚线
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0240', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0240");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0110
+ * @tc.desc 使用Edgeoutlineradius的方式设置每一边边框的圆角
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0110', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0110");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0120
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0120
+ * @tc.desc 使用Edgeoutlineradius的方式设置每个边框的圆角
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0120', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0120");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0160
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0160
+ * @tc.desc 使用ResourceColor的方式设置边框颜色为黑色
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0160");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0180
+ * @tc.desc 单描边和外描边进行同时设置且显示样式不同
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0180");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0070
+ * @tc.desc 使用EdgeoutlineColor的方式设置每一边边框的宽度
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0210
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0210
+ * @tc.desc 设置内边框与外边框角度不一致,内边框角度大于外边框
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0210', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0210");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0220
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0220
+ * @tc.desc 设置外描边圆角为15
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0220");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0230
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0230
+ * @tc.desc 设置外描边圆角,圆角为15
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0230', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0230");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0190
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0190
+ * @tc.desc 单描边和外描边进行同时设置且显示样式相同
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0190_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0190");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0190
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0190
+ * @tc.desc 单描边和外描边进行同时设置且显示样式相同
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0190_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0190");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0260
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0260
+ * @tc.desc 设置外描边样式为solid,外描边样式为实线
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0260', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0260");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0080
+ * @tc.desc 每一边边框的颜色
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_HOVEREFFECT_DOUBLESTROKE_INTERFACE_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0080");
+ 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/UIAttributesImageEffectFilterTest/UIAttributesImageEffectFilter.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesImageEffectFilterTest/UIAttributesImageEffectFilter.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..689ddd15a022bdebf58aa2d203d6bc60893f5cc9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesImageEffectFilterTest/UIAttributesImageEffectFilter.test.ets
@@ -0,0 +1,358 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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'
+
+/*
+ * UIAttributesImageEffectFilterTest
+ *
+ * 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 UIAttributesImageEffectFilter(){
+ describe('UIAttributesImageEffectFilter',()=>{
+ 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_IMAGEEFFECT_FILTER_0100
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0100
+ * @tc.desc 验证修改组件大小和位置的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0100', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0100");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0110
+ * @tc.desc 验证图层叠加的影响
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0110', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0110");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0180
+ * @tc.desc 验证设置blur为-10,模糊度能正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0180");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0200
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0200
+ * @tc.desc 验证设置blur为10,模糊度能正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0200");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0190
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0190
+ * @tc.desc 验证设置blur为0,模糊度能正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0190', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0190");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0210
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0210
+ * @tc.desc 验证设置blur为20,模糊度能正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0210', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0210");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0220
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0220
+ * @tc.desc 验证设置blur为undefined,模糊度能正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0220");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0030
+ * @tc.desc 验证pixelStretch设置为0.1的时候,前景视效接口的正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0070
+ * @tc.desc 验证titleMode设置为DECAL的时候,前景视效接口的正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0050
+ * @tc.desc 验证pixelStretch设置为undefined的时候,前景视效接口的正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0050");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0060
+ * @tc.desc 验证pixelStretch设置为[2,0.1,2,0.1]的时候,前景视效接口的正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0060");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0010
+ * @tc.desc 验证fiter接口与原生属性接口混合使用的生效情况
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0150
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0150
+ * @tc.desc 验证设置{cubicRate:-100,quadRate:-100,linearRate:-100,degree:-100,saturation:-100,positiveCoeff[-100,-100,-100],negativeCoeff[-100,-100,-100],fraction:-100],能够正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0150");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0020
+ * @tc.desc 验证pixelStretch设置为-1的时候,前景视效接口的正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0040
+ * @tc.desc 验证pixelStretch设置为0的时候前景视效接口的正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0080
+ * @tc.desc 验证titleMode设置为MIRROR的时候,前景视效接口的正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0140
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0140
+ * @tc.desc 验证设置{cubicRate:10,quadRate.-10,JlinearRate:-10,degree-10,saturation:-10,positiveCoeff[-10,-10,-10],negativeCoeff[-10,-10,-10],fraction:1},能够正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0140");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0130
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0130
+ * @tc.desc 验证设置{cubicRate:20,quadRate20,linearRate:20,degree:20,saturation:20,positiveCoeff[20,20,20].negativeCoeff[20,20,20],fraction:1},能够正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0130', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0130");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0090
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0090
+ * @tc.desc 验证titleMode设置为REPEAT的时候,前景视效接口的正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0090', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0090");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0120
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0120
+ * @tc.desc 验证设置{cubicRate:0,quadRate0,JinearRate:0,degree 0,saturation0,positiveCoeff[0,0,0],negativeCoeff[0,0,0],fraction:0},能够正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0120', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0120");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0160
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0160
+ * @tc.desc 验证设置{cubicRate:20,quadRate.-20,JlinearRate:-20,degree:-20,saturation:1,positiveCoeff[-20,-20,-20],negativeCoeff[-20,-20,-20],fraction:1},能够正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0160");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0170
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0170
+ * @tc.desc 验证设置{cubicRate:0,quadRate0,JinearRate0,degree0,saturation:1,positiveCoeff:[0,0,0],negativeCoeff[0,0,0],fraction:0},能够正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0170");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0240
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0240
+ * @tc.desc 验证设置{cubicRate:0,quadRate0,JinearRate0,degree0,saturation:1,positiveCoeff:[0,0,0],negativeCoeff[0,0,0],fraction:0},能够正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0240', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0240");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0230
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0230
+ * @tc.desc 验证设置{cubicRate:0,quadRate0,JlinearRate:0.5534,degree-0.0083,saturation.3,positiveCoeff[2.3,4.5,2],negativeCoeff[0.5,20.5],fraction:0},能够正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0230', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0230");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0250
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0250
+ * @tc.desc 验证设置{cubicRate:100,quadRate100JlinearRate 100,degree 100,saturation:100,positiveCoeff[100,100100],negativeCoeff[100,100,100],fraction:100}能够正常显示
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_FILTER_0250', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0250");
+ 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/UIAttributesImageEffectProjectionTest/UIAttributesImageEffectProjection.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesImageEffectProjectionTest/UIAttributesImageEffectProjection.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ec7ad350ec3912db9009e1c7abd74390c316a42e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesImageEffectProjectionTest/UIAttributesImageEffectProjection.test.ets
@@ -0,0 +1,389 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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'
+
+/*
+ * UIAttributesImageEffectProjection
+ *
+ * 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 UIAttributesImageEffectProjection() {
+
+ describe('UIAttributesImageEffectProjection', () => {
+ afterEach(async (done: Function) => {
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0170
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0170
+ * @tc.desc fill设为true,与visibility组合使用-visibility(Visible)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0170");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0210
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0210
+ * @tc.desc fill设为true,offset设为resource方式下的x:60y:60
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0210', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0210");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0230
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0230
+ * @tc.desc 子组件设置true,父组件设置false
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0230', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0230");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0200
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0200
+ * @tc.desc fill设为true,offset设为{x:-50.y:-50}
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0200");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0060
+ * @tc.desc fill设为true,与colorBlend组合使用
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0060");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0040
+ * @tc.desc 配置和值为false
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0120
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0120
+ * @tc.desc fill设为true,与opacity组合使用-opacity(0.5)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0120', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0120");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0140
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0140
+ * @tc.desc fill设为true,与opacity组合使用-opacity(1)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0140");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0250
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0250
+ * @tc.desc 子组件设置false,父组件设置false
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0250', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0250");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0260
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0260
+ * @tc.desc 子组件设置false,父组件设置true
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0260', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0260");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0220
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0220
+ * @tc.desc fill设为true,offset不设置(默认值)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0220");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0240
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0240
+ * @tc.desc 子组件设置true,父组件设置true
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0240', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0240");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0190
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0190
+ * @tc.desc fill设为true,offset设为{x:50,y50}
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0190', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0190");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0160
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0160
+ * @tc.desc fill设为true,与visibility组合使用-visibility(hidden)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0160");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0080
+ * @tc.desc fill设为true,与sweepGradient组合使用
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0150
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0150
+ * @tc.desc fill设为true,与visibility组合使用-visibility(None)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0150");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0180
+ * @tc.desc fill设为true,offset设为{x:0,y:0}
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0180");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0070
+ * @tc.desc fill设为true,与linearGradient组合使用
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0090
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0090
+ * @tc.desc fill设为true,与radialGradient组合使用
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0090', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0090");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0100
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0100
+ * @tc.desc fill设为true,与foregroundColor组合使用
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0100', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0100");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0030
+ * @tc.desc 配置和值为true
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0050
+ * @tc.desc fill设为true,与backgroundColor组合使用
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0050");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0110
+ * @tc.desc fill设为true,与fontColor组合使用
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0110', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0110");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0020
+ * @tc.desc 不配置fill
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0130
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0130
+ * @tc.desc fill设为true,与opacity组合使用-opacity(0)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_PROJECTION_0130', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0130");
+ 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/UIAttributesImageEffectUseShadowBatchingTest/UIAttributesImageEffectUseShadowBatching.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesImageEffectUseShadowBatchingTest/UIAttributesImageEffectUseShadowBatching.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dfc696b99f45efced648afe85b16881785586c7d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesImageEffectUseShadowBatchingTest/UIAttributesImageEffectUseShadowBatching.test.ets
@@ -0,0 +1,144 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+import { Component, Driver, ON } from '@ohos.UiTest'
+
+export default function UIAttributesImageEffectUseShadowBatching() {
+
+ describe('UIAttributesImageEffectUseShadowBatching', () => {
+ afterEach(async (done: Function) => {
+ if (Settings.windowClass == undefined) {
+ return
+ }
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`)
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0070
+ * @tc.desc 验证接口设置为false:UseShadowBatching(false)[UI对比】
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0070")
+ await Utils.sleep(1000)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0030
+ * @tc.desc useShadowBatching使用一次,只针对第一层子节点生效【UI对比】
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0030")
+ await Utils.sleep(1000)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0060
+ * @tc.desc 验证不配置接口UseShadowBatching [UI对比】
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0060")
+ await Utils.sleep(1000)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0020
+ * @tc.desc list组件里的100个子组件都设置阴影参数,list父组件设置.UseShadowBatching(true),验证滚动帧率以及阴影显示效果【手工】
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0020")
+ await Utils.sleep(1000)
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0050
+ * @tc.desc 设置状态变量改变UseShadowBatching接口的值点击按钮切换UseShadowBatching的值,验证阴影效果是否显示正常【UI对比】
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0050")
+ await Utils.sleep(1000)
+ const button:Component = await (Driver.create().findComponent(ON.id("button")))
+ await button.click()
+ await Utils.sleep(2000)
+ await button.click()
+ await Utils.sleep(1000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0010
+ * @tc.desc list组件中设置懒加载,里面包含20个子组件且都设置阴影参数shadow,list父组件设置.UseShadowBatching(true),验证阴影显示效果【手工】
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0010")
+ await Utils.sleep(1000)
+ await Utils.sleep(3000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0040
+ * @tc.desc useShadowBatching支持嵌套使用,只针对第一层子节点生效【UI对比】
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_USESHADOWBATCHING_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0040")
+ await Utils.sleep(1000)
+ await Utils.sleep(3000)
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+
+ })
+
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesImageeffectInterfaceTest/UIAttributesImageeffectInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesImageeffectInterfaceTest/UIAttributesImageeffectInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..782b2fed311555b52578f520b686579b4aa229e9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesImageeffectInterfaceTest/UIAttributesImageeffectInterface.test.ets
@@ -0,0 +1,925 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIAttributesImageeffectInterface() {
+ describe('UIAttributesImageeffectInterface', () => {
+ afterEach(async (done: Function) => {
+ if (Settings.windowClass == undefined) {
+ return
+ }
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`)
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0070
+ * @tc.desc 创建一个image组件,为组件设置对比度属性contrast,不设置对比度,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0370
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0370
+ * @tc.desc 创建一个image组件,为组件设置阴影属性shadow,设置阴影颜色为Sr("app.color.pink"),阴影模糊半径10,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0370', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0370");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0530
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0530
+ * @tc.desc 创建一个image组件,为组件设置饱和度属性saturate,设置饱和度为1,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0530', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0530");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0420
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0420
+ * @tc.desc 创建一个image组件,为组件设置阴影属性shadow,设置阴影颜色为Color Pink,阴影模糊半径10,阴影的X轴偏移量50,阴影Y轴偏移量50,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0420', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0420");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0200
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0200
+ * @tc.desc 创建一个image组件,为组件设置色相旋转属性hueRotate,设置色相旋转为-45deg,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0200");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0540
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0540
+ * @tc.desc 创建一个image组件,为组件设置饱和度属性saturate,设置饱和度为5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0540', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0540");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0110
+ * @tc.desc 创建一个image组件,为组件设置对比度属性contrast,设置对比度为1,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0110', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0110");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0050
+ * @tc.desc 创建一个image组件,为组件设置反转属性invert,设置反转为1,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0050");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0500
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0500
+ * @tc.desc 创建一个image组件,为组件设置饱和度属性saturate,设置饱和度为-10,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0500', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0500");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0120
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0120
+ * @tc.desc 创建一个image组件,为组件设置对比度属性contrast,设置对比度为5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0120', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0120");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0610
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0610
+ * @tc.desc 创建一个Text,内容为test,为组件设置内容模糊属性blur,模糊半径为-10,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0610', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0610");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0080
+ * @tc.desc 创建一个image组件,为组件设置对比度属性contrast,设置对比度为-10,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0510
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0510
+ * @tc.desc 创建一个image组件,为组件设置饱和度属性saturate,设置饱和度为0.5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0510', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0510");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0600
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0600
+ * @tc.desc 创建一个image组件,为组件设置高光属性brightness,设置高光为2,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0600', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0600");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0520
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0520
+ * @tc.desc 创建一个image组件,为组件设置饱和度属性saturate,设置饱和度为0,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0520', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0520");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0490
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0490
+ * @tc.desc 创建一个image组件,为组件设置饱和度属性saturate,不设置饱和度,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0490', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0490");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0180
+ * @tc.desc 创建一个image组件,为组件设置灰度属性grayscale,参数设置为2.5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0180");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0680
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0680
+ * @tc.desc 创建一个Text,添加背景图片,为组件设置背景模糊属性backdropBlur,模糊半径为10,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0680', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0680");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0130
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0130
+ * @tc.desc 创建一个image组件,为组件设置灰度属性grayscale,不设置灰度,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0130', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0130");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0040
+ * @tc.desc 创建一个image组件,为组件设置反转属性invert,设置反转为0,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0230
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0230
+ * @tc.desc 创建一个image组件,为组件设置色相旋转属性hueRotate,设置色相旋转为0,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0230', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0230");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0240
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0240
+ * @tc.desc 创建一个image组件,为组件设置色相旋转属性hueRotate,设置色相旋转为180deg,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0240', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0240");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0250
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0250
+ * @tc.desc 创建一个image组件,为组件设置色相旋转属性hueRotate,设置色相旋转为180,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0250', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0250");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0260
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0260
+ * @tc.desc 创建一个image组件,为组件设置色相旋转属性hueRotate,设置色相旋转为90,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0260', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0260");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0330
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0330
+ * @tc.desc 创建一个image组件,为组件设置阴影属性shadow,设置阴影模糊半径为Sr("app.font font_1),验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0330', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0330");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0450
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0450
+ * @tc.desc 创建一个image组件,为组件设置颜色叠加属性colorBlend,设置颜色叠加为Sr("app.color pink")验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0450', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0450");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0090
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0090
+ * @tc.desc 创建一个image组件,为组件设置对比度属性contrast,设置对比度为0.5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0090', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0090");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0280
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0280
+ * @tc.desc 创建一个image组件,为组件设置转深褐色属性sepia,设置转深褐色参数为-5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0280', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0280");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0100
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0100
+ * @tc.desc 创建一个image组件,为组件设置对比度属性contrast,设置对比度为0,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0100', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0100");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0210
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0210
+ * @tc.desc 创建一个image组件,为组件设置色相旋转属性hueRotate,设置色相旋转为-45,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0210', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0210");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0170
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0170
+ * @tc.desc 创建一个image组件,为组件设置灰度属性grayscale,参数设置为1.0,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0170");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0460
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0460
+ * @tc.desc 创建一个image组件,为组件设置颜色叠加属性colorBlend,设置颜色登加为0xCCCCCC,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0460', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0460");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0160
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0160
+ * @tc.desc 创建一个image组件,为组件设置灰度属性grayscale,参数设置为0.5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0160");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0060
+ * @tc.desc 创建一个image组件,为组件设置反转属性invert,设置反转为5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0060");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0580
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0580
+ * @tc.desc 创建一个image组件,为组件设置高光属性brightness,设置高光为0,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0580', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0580");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0140
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0140
+ * @tc.desc 创建一个image组件,为组件设置灰度属性grayscale,参数设置为-0.5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0140");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0220
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0220
+ * @tc.desc 创建一个image组件,为组件设置色相旋转属性hueRotate,设置色相旋转为0deg,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0220");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0590
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0590
+ * @tc.desc 创建一个image组件,为组件设置高光属性brightness,设置高光为1,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0590', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0590");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0430
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0430
+ * @tc.desc 创建一个image组件,为组件设置阴影属性shadow,设置阴影颜色为Color Pink,阴影模糊半径10,阴影的X轴偏移量float_1(-50),阴影Y轴偏移量float_1(-50),验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0430', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0430");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0470
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0470
+ * @tc.desc 创建一个image组件,为组件设置颜色叠加属性colorBlend,设置颜色叠加为Color.Blue,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0470', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0470");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0630
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0630
+ * @tc.desc 创建一个Text,内容为test,为组件设置内容模糊属性blur,模糊半径为3,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0630', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0630");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0150
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0150
+ * @tc.desc 创建一个image组件,为组件设置灰度属性grayscale,参数设置为0.0,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0150");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0340
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0340
+ * @tc.desc 创建一个image组件,为组件设置阴影属性shadow,设置阴影模糊半径为-10,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0340', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0340");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0560
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0560
+ * @tc.desc 创建一个image组件,为组件设置高光属性brightness,设置高光为-0.5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0560', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0560");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0670
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0670
+ * @tc.desc 创建一个Text,添加背景图片为组件设置背景模糊属性backdropBlur,模糊半径为100.5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0670', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0670");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0390
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0390
+ * @tc.desc 创建一个image组件,为组件设置阴影属性shadow,设置阴影颜色为Color Black,阴影模糊半径10,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0390', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0390");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0660
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0660
+ * @tc.desc 创建一个Text,添加背景图片,为组件设置背景模糊属性backdropBlur,模糊半径为0,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0660', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0660");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0570
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0570
+ * @tc.desc 创建一个image组件,为组件设置高光属性brightness,设置高光为0.5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0570', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0570");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0290
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0290
+ * @tc.desc 创建一个image组件,为组件设置转深褐色属性sepia,设置转深褐色参数为0.5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0290', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0290");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0380
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0380
+ * @tc.desc 创建一个image组件,为组件设置阴影属性shadow,设置阴影颜色为0x0000FF,阴影模糊半径10,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0380', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0380");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0400
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0400
+ * @tc.desc 创建一个image组件,为组件设置阴影属性shadow,设置阴影颜色为Color Pink,阴影模糊半径10,阴影的X轴偏移量-50,阴影Y轴偏移量50,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0400', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0400");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0480
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0480
+ * @tc.desc 创建一个image组件,为组件设置颜色叠加属性colorBlend,设置颜色叠加为rgb(255,200,255),验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0480', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0480");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0190
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0190
+ * @tc.desc 创建一个image组件,为组件设置色相旋转属性hueRotate,不设置色相旋转,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0190', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0190");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0320
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0320
+ * @tc.desc 创建一个image组件,为组件设置转深褐色属性sepia,设置转深褐色参数为5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0320', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0320");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0270
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0270
+ * @tc.desc 创建一个image组件,为组件设置转深褐色属性sepia,不设置转深褐色,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0270', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0270");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0410
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0410
+ * @tc.desc 创建一个image组件,为组件设置阴影属性shadow,设置阴影颜色为Color Pink,阴影模糊半径10,阴影的X轴偏移量50,阴影Y轴偏移量-50,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0410', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0410");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0310
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0310
+ * @tc.desc 创建一个image组件,为组件设置转深褐色属性sepia,设置转深褐色参数为1,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0310', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0310");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0360
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0360
+ * @tc.desc 创建一个image组件,为组件设置阴影属性shadow,设置阴影模糊半径为10,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0360', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0360");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0300
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0300
+ * @tc.desc 创建一个image组件,为组件设置转深褐色属性sepia,设置转深褐色参数为0,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0300', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0300");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0440
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0440
+ * @tc.desc 创建一个image组件,为组件设置阴影属性shadow,设置阴影颜色为rgb(0,255,0),阴影模糊半径10,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0440', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0440");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0650
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0650
+ * @tc.desc 创建一个Text,添加背景图片为组件设置背景模糊属性backdropBlur,模糊半径为-10验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0650', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0650");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0350
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0350
+ * @tc.desc 创建一个image组件,为组件设置阴影属性shadow,设置阴影模糊半径为0,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0350', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0350");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0550
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0550
+ * @tc.desc 创建一个image组件,为组件设置高光属性brightness,不设置高光,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0550', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0550");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0030
+ * @tc.desc 创建一个image组件,为组件设置反转属性invert,设置反转为0.5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0640
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0640
+ * @tc.desc 创建一个Text,内容为test,为组件设置内容模糊属性blur,模糊半径为6.5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0640', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0640");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0620
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0620
+ * @tc.desc 创建一个Text,内容为test,为组件设置内容模糊属性blur,模糊半径为0,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0620', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0620");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0020
+ * @tc.desc 创建一个image组件,为组件设置反转属性invert,设置反转为5,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0010
+ * @tc.desc 创建一个image组件,为组件设置反转属性invert,不设置反转,验证效果
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INTERFACE_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0010");
+ 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/UIAttributesImageeffectInvertTest/UIAttributesImageeffectInvert.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesImageeffectInvertTest/UIAttributesImageeffectInvert.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..48b79e8f89880146adb939e91ff9538a1f608cf3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesImageeffectInvertTest/UIAttributesImageeffectInvert.test.ets
@@ -0,0 +1,119 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { 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 UIAttributesImageeffectInvert() {
+ describe('UIAttributesImageeffectInvert', () => {
+ afterEach(async (done: Function) => {
+ if (Settings.windowClass == undefined) {
+ return
+ }
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`)
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0020
+ * @tc.desc invert-InvertOptions-threshold取0.5——场景1
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0030
+ * @tc.desc invert-InvertOptions-threshold取0.5——场景2
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0050
+ * @tc.desc invert-InvertOptions-threshold取0.5-thresholdRange取0.1-智能取色范围内偏low的多
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0050");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0010
+ * @tc.desc invert-InvertOptions-threshold取0
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0040
+ * @tc.desc invert-InvertOptions-threshold取1
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0060
+ * @tc.desc invert-InvertOptions-threshold取0.5-thresholdRange取0.1-智能取色范围内偏high的多
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_IMAGEEFFECT_INVERT_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0060");
+ 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/UIAttributesOutlineColorTest/UIAttributesOutlineColor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesOutlineColorTest/UIAttributesOutlineColor.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b9c12184455507e56d0fa8112c5eb44c7f41dc7a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesOutlineColorTest/UIAttributesOutlineColor.test.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 { 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'
+
+/*
+ * UIAttributesOutlineColor
+ *
+ * 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 UIAttributesOutlineColor() {
+
+ describe('UIAttributesOutlineColor', () => {
+ afterEach(async (done: Function) => {
+ if (Settings.windowClass == undefined) {
+ return;
+ }
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`);
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_OUTLINTCOLOR_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_OUTLINTCOLOR_0020
+ * @tc.desc 验证组件的外描边颜色outlineColor取值类型为EdgeColors时,组件的外描边颜色生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_OUTLINTCOLOR_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_OUTLINTCOLOR_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_OUTLINTCOLOR_0010
+ * @tc.desc 验证组件的外描边颜色outlineColor取值类型为number时,组件的外描边颜色生效框
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_OUTLINTCOLOR_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0010");
+ 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/UIAttributesOutlinewidthTest/UIAttributesOutlinewidth.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesOutlinewidthTest/UIAttributesOutlinewidth.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b132cd9b2454ada17e8e2ad331afc1fbdec7c254
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesOutlinewidthTest/UIAttributesOutlinewidth.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, 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'
+
+/*
+ * UIAttributesOutlinewidth
+ *
+ * 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 UIAttributesOutlinewidth() {
+
+ describe('UIAttributesOutlinewidth', () => {
+ 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_UIATTRIBUTES_OUTLINEWIDTH_0010
+ * @tc.name SUB_ACE_UIATTRIBUTES_OUTLINEWIDTH_0010
+ * @tc.desc 验证组件的外描边宽度outlineWidth四条边的外描边宽度一样的情况下,长度类型为VP时,组件的外描边宽度与预设条一致
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_OUTLINEWIDTH_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesOutlinewidth/UIAttributesOutlinewidth0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UIATTRIBUTES_OUTLINEWIDTH_0020
+ * @tc.name SUB_ACE_UIATTRIBUTES_OUTLINEWIDTH_0020
+ * @tc.desc 验证组件的外描边宽度outlineWidth四条边的外描边宽度不一样的情况下,长度类型为VP时,组件的外描边宽度与预设条件一致
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_OUTLINEWIDTH_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesOutlinewidth/UIAttributesOutlinewidth0020");
+ 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/UIAttributesRenderFitTest/UIAttributesRenderFit.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesRenderFitTest/UIAttributesRenderFit.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8d4481cacbc17bf68f6b2507ba4f9154bb650926
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesRenderFitTest/UIAttributesRenderFit.test.ets
@@ -0,0 +1,213 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIAttributesRenderFit() {
+
+ describe('UIAttributesRenderFit', () => {
+ afterEach(async (done: Function) => {
+ if (Settings.windowClass == undefined) {
+ return
+ }
+ Settings.windowClass.destroyWindow((err) => {
+ if (err.code) {
+ Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`)
+ return;
+ }
+ Logger.info('TEST', `Succeeded in destroy the window.`);
+ })
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0040
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为LEFT时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0040 start.`);
+ Settings.createWindow("testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0040")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0010
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为CENTER时组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0010 start.`);
+ Settings.createWindow("testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0010")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0010 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0050
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为RIGHT时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0050 start.`);
+ Settings.createWindow("testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0050")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0050 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0060
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为TOP_LEFT时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0060 start.`);
+ Settings.createWindow("testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0060")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0080
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为BOTTOM_LEFT时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0080 start.`);
+ Settings.createWindow("testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0080")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0080 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0090
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0090
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为BOTTOM_RIGHT时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0090 start.`);
+ Settings.createWindow("testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0090")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0090 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0070
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为BOTTOM_RIGHT时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0070 start.`);
+ Settings.createWindow("testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0070")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0070 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0020
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为TOP时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0020 start.`);
+ Settings.createWindow("testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0020")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0020 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0030
+ * @tc.desc 验证组件的组件内容填充方式renderFit取值类型为BOTTOM时,组件的组件内容填充方式生效
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0030 start.`);
+ Settings.createWindow("testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0030")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let animateButton: Component = await driver.findComponent(ON.id('animate_button'));
+ await animateButton.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_RENDERFIT_0030 finish.`);
+ done();
+ })
+
+
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesShapecroppingInterfaceTest/UIAttributesShapecroppingInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesShapecroppingInterfaceTest/UIAttributesShapecroppingInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..647d81cd5f164a37e0976ca690d0029808f6ecfe
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesShapecroppingInterfaceTest/UIAttributesShapecroppingInterface.test.ets
@@ -0,0 +1,616 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+import { DisplayRotation, Driver, ON, Component } from '@ohos.UiTest'
+
+
+export default function UIAttributesShapecroppingInterface() {
+
+ describe('UIAttributesShapecroppingInterface', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0400
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0400
+ * @tc.desc 2-1.组件按宽400px、高280px的矩形裁剪,并覆盖蒙层
+ */
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0400', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0400 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0400");
+ await Utils.sleep(1000);
+ await await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0400 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0360
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0360
+ * @tc.desc 2-1.无组件显示
+ */
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0360', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0360 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0360");
+ await Utils.sleep(1000);
+ await await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0360 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0390
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0390
+ * @tc.desc 2-1.组件按宽400px、高280px、四角圆角半径为20的矩形裁剪,并覆盖蒙层
+ */
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0390', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0390 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0390");
+ await Utils.sleep(1000);
+ await await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0390 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0160
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0160
+ * @tc.desc 2-1.无组件显示
+ */
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0160 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0160");
+ await Utils.sleep(1000);
+ await await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0160 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0370
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0370
+ * @tc.desc 2-1.组件按描述的矩形(宽400px,高280px,四角圆角宽度50px,圆角高度100px)裁剪,并覆盖蒙层
+ */
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0370', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0370 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0370");
+ await Utils.sleep(1000);
+ await await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0370 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0240
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0240
+ * @tc.desc 2-1.无组件显示
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0240 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0240");
+ await Utils.sleep(1000);
+ await await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0240 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0380
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0380
+ * @tc.desc 2-1.组件按描述的矩形(宽400px,高280px,左上角、右下角圆角半径40,左下角、右上角圆角半径20)裁前并覆盖蒙层
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0380', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0380 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0380");
+ await Utils.sleep(1000);
+ await await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0380 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0080
+ * @tc.desc 2-1.超出父组件的部分会正常显示
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0080 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0080");
+ await Utils.sleep(1000);
+ await await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0080 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0060
+ * @tc.desc 2-1.无组件显示,组件被完全切除
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0060 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0060");
+ await Utils.sleep(1000);
+ await await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0060 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0140
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0140
+ * @tc.desc 2-1.显示空白
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0140 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0140");
+ await Utils.sleep(1000);
+ await await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0140 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0050
+ * @tc.desc 2-1.显示空白
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0050 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0050");
+ await Utils.sleep(1000);
+ await await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0050 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0260
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0260
+ * @tc.desc 2-1.未设置fill,无组件显示
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0260 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0260");
+ await Utils.sleep(1000);
+ await await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0260 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0150
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0150
+ * @tc.desc 2-1.无组件显示
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0150 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0150");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0150 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0100
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0100
+ * @tc.desc 2-1.组件按Path路径被裁剪(三角形)
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0100 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0100");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0100 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0130
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0130
+ * @tc.desc 2-1.显示空白
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0130 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0130");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0130 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0020
+ * @tc.desc 2-1.组件正常显示
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0020 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0020");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0020 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0220
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0220
+ * @tc.desc 2-1.超出父组件的部分会被裁剪掉不显示
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0220', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0220 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0220");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0220 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0120
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0120
+ * @tc.desc 2-1.组件按Path路径被裁剪(三角形)
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0120 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0120");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0120 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0170
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0170
+ * @tc.desc 2-1.无组件显示
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0170', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0170 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0170");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0170 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0210
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0210
+ * @tc.desc 2-1.组件被矩形裁剪(宽400px,高280px,左上角和右下角:圆角半径40,左下角和右上角:圆角半径20)
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0210 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0210");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0210 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0030
+ * @tc.desc 2-1.显示空白
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0030 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0030 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0040
+ * @tc.desc 2-1.组件被直径280px的圆裁剪
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0040 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0040 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0110
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0110
+ * @tc.desc 2-1.组件按Path路径被裁剪(三角形)
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0110 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0110");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0110 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0070
+ * @tc.desc 2-1.组件被宽400px高280px的椭圆裁剪
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0070 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0070 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0200
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0200
+ * @tc.desc 2-1.组件被矩形裁剪(宽400px,高280px,圆角宽50px,圆角高100px)
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0200', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0200 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0200");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0200 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0340
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0340
+ * @tc.desc 2-1.无组件显示
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0340', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0340 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0340");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0340 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0250
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0250
+ * @tc.desc 2-1.组件被直径为280px的圆裁剪,并覆盖蒙层
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0250 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0250");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0250 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0290
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0290
+ * @tc.desc 2-1.组件被宽400px、高280px的椭圆裁剪,并覆盖蒙层
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0290', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0290 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0290");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0290 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0350
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0350
+ * @tc.desc 2-1.无组件显示
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0350', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0350 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0350");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0350 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0090
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0090
+ * @tc.desc 2-1.显示空白
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0090 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0090");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0090 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0190
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0190
+ * @tc.desc 2-1.组件被矩形裁剪(宽400px,高280px,四角圆角半径20)
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0190 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0190");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0190 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0300
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0300
+ * @tc.desc 2-1.无组件显示
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0300', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0300 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0300");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0300 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0280
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0280
+ * @tc.desc 2-1.无组件显示
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0280 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0280");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0280 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0310
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0310
+ * @tc.desc 2-1.组件按Path被裁剪(三角形),并覆盖蒙层
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0310 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0310");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0310 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0410
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0410
+ * @tc.desc 2-1.无组件显示
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0410', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0410 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0410");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0410 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0330
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0330
+ * @tc.desc 2-1.组件按Path路径和width、height取交集被裁剪(三角形),并覆盖蒙层
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0330', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0330 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0330");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0330 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0320
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0320
+ * @tc.desc 2-1.组件按Path被裁剪(三角形),并覆盖蒙层
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0320', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0320 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0320");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0320 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0180
+ * @tc.desc 2-1.组件被矩形裁剪(宽400px,高280px)
+*/
+
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0180 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0180");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_INTERFACE_0180 finish.`);
+ done();
+ });
+
+
+ })
+
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesShapecroppingRowsplitTest/UIAttributesShapecroppingRowsplit.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesShapecroppingRowsplitTest/UIAttributesShapecroppingRowsplit.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0e81116842bf18b00923924f86ffb2cb868258a2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesShapecroppingRowsplitTest/UIAttributesShapecroppingRowsplit.test.ets
@@ -0,0 +1,487 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIAttributesShapecroppingRowsplit() {
+
+ describe('UIAttributesShapecroppingRowsplit', () => {
+ 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_SHAPECROPPING_ROWSPLIT_0100
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0100
+ * @tc.desc istitem内设置columsplit观察滚动事件与分割线拖动事件
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0100 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0100")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let listComponent: Component = await driver.findComponent(ON.id('button'));
+ await driver.drag(100,1000,100,300,1500);
+ await Utils.sleep(1000);
+ await driver.drag(100,300,100,1000,1500);
+ await Utils.sleep(1000);
+ await listComponent.scrollToBottom(1000)
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0100 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0200
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0200
+ * @tc.desc RowSplit横竖屏切换
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0200', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0200 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0200")
+ await Utils.sleep(1000);
+ let driver: 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_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0200 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0270
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0270
+ * @tc.desc 子节点设置margin动态改变测试
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0270_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0270_1 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0270")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.drag(100,200,100,450,600);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0270_1 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0270
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0270
+ * @tc.desc 子节点设置margin动态改变测试
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0270_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0270_2 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0270")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('margin'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await driver.drag(100,200,100,450,600);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0270_2 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0390
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0390
+ * @tc.desc 布局list可滚动,listitem内布局ColumnSplit
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0390', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0390 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0390")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.drag(600,500,10,500,1500);
+ await Utils.sleep(1000);
+ await driver.drag(10,500,600,500,1500);
+ await Utils.sleep(1000);
+ await driver.drag(10,220,700,220,1500);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0390 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0430
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0430
+ * @tc.desc 父容器设置为Gridltem
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0430', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0430 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0430")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.drag(150,220,700,220,1500);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0430 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0190
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0190
+ * @tc.desc RowSplit动态改变padding,观察布局情况
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0190 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0190")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('padding'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0190 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0330
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0330
+ * @tc.desc 子节点设置minheight等于maxheight
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0330', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0330 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0330")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.drag(100,200,100,450,600);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0330 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0280
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0280
+ * @tc.desc 子节点设置margin测试
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0280 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0280")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0280 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0040
+ * @tc.desc ColumnSplit交叉轴方向未设置大小
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0040 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0040")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0040 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0050
+ * @tc.desc ColumnSplit分割线上下拖动
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0050 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0050")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.drag(100,200,100,450,600);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0050 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0340
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0340
+ * @tc.desc ColumnSplit分割线上下拖动
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0340', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0340 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0340")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.drag(200,100,500,100,600);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0340 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0470
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0470
+ * @tc.desc 鼠标快速拖动分割线测试
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0470', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0470 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0470")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.mouseDrag({x:260,y:100},{x:320, y:100},600);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0470 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0310
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0310
+ * @tc.desc 子节点设置minheight大于maxheight
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0310 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0310")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.drag(100,210,100,450,600);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0310 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0260
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0260
+ * @tc.desc 子节点设置Margin动态改变
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0260 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0260")
+ await Utils.sleep(1000);
+ let driver:Driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('margin'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0260 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0080
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0080
+ * @tc.desc Grid内设置ColumnSplit测试
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0080 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0080")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.drag(120,180,120,600,1500);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0080 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0180
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0180
+ * @tc.desc ColumnSplit分割线上下拖动
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0180 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0180")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.drag(200,100,500,100,600);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0180 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0130
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0130
+ * @tc.desc resizeable属性设置为false测试
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0130 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0130")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.drag(200,100,500,100,600);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0130 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0450
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0450
+ * @tc.desc 被裁剪区域设置点击事件
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0450', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0450 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0450")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('text'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0450 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0250
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0250
+ * @tc.desc 子节点设置height属性
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0250 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0250")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.mouseDrag({x:300,y:75},{x:300,y:100},800);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0250 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0230
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0230
+ * @tc.desc 子节点大小不同,ColumnSplit交叉轴不设置大小
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0230 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0230")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0230 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0150
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0150
+ * @tc.desc resizeable属性设置为false测试
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0150 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0150")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.drag(200,100,500,100,600);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0150 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0070
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0070
+ * @tc.desc ColumnSplit配合divider.margin()使用
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0070 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0070")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0070 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0060
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0060
+ * @tc.desc ColumnSplit动态改变padding属性
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0060 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0060")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('padding'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0060 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0210
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0210
+ * @tc.desc RowSplit设置padding动态改变
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0210 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0210")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let btn = await driver.findComponent(ON.id('padding'));
+ await btn.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0210 finish.`);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0020
+ * @tc.desc clip属性设置为true裁剪效果测试
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0020 start.`);
+ Settings.createWindow("testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0020")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SHAPECROPPING_ROWSPLIT_0020 finish.`);
+ done();
+ })
+ })}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesTransparencyInterfaceTest/UIAttributesTransparencyInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesTransparencyInterfaceTest/UIAttributesTransparencyInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..34bc1746a6f6a5dadf293507d9ea7dc26672e83c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesTransparencyInterfaceTest/UIAttributesTransparencyInterface.test.ets
@@ -0,0 +1,174 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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'
+
+/*
+ * UIAttributesTransparencyInterface
+ *
+ * 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 UIAttributesTransparencyInterface() {
+
+ describe('UIAttributesTransparencyInterface', () => {
+ 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_TRANSPARENCY_INTERFACE_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0030
+ * @tc.desc 在透明度设置中设置opacity为0,Text为透明backgroundColor(0xAFEEEE)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0030");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0050
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0050
+ * @tc.desc 在透明度设置中设置opacity为1,backgroundColor(0xAFEEEE)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0050");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0040
+ * @tc.desc 在透明度设置中设置opacity为10/-10backgroundColor(0xAFEEEE)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0040_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0040");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId1'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0040
+ * @tc.desc 在透明度设置中设置opacity为10/-10backgroundColor(0xAFEEEE)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0040_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0040");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId2'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0020
+ * @tc.desc 在透明度设置中设置opacity为0.5,backgroundColor(0xAFEEEE)
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0020");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0010
+ * @tc.desc 验证组件的外描边颜色outlineColor取值类型为number时,组件的外描边颜色生效框
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_INTERFACE_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0010");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ 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/UIAttributesTransparencyRenderGroupTest/UIAttributesTransparencyRenderGroup.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesTransparencyRenderGroupTest/UIAttributesTransparencyRenderGroup.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c6722d9600c0442e65f98e92a101125b3bad6cc9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesTransparencyRenderGroupTest/UIAttributesTransparencyRenderGroup.test.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 { 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'
+
+/*
+ * UIAttributesTransparencyRenderGroup
+ *
+ * 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 UIAttributesTransparencyRenderGroup() {
+
+ describe('UIAttributesTransparencyRenderGroup', () => {
+ 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_TRANSPARENCY_RENDERGROUP_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0030
+ * @tc.desc 设置renderGroup接口里的参数为不设置
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0030_1', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0030
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0030
+ * @tc.desc 设置renderGroup接口里的参数为不设置
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0030_2', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0030");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('buttonId'));
+ await button.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0020
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0020
+ * @tc.desc 设置renderGroup接口里的参数为true
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0040
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0040
+ * @tc.desc 设置renderGroup接口里的参数为true
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0010
+ * @tc.name SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0010
+ * @tc.desc 设置renderGroup接口里的参数为false
+ */
+ it('SUB_ACE_UI_ATTRIBUTES_TRANSPARENCY_RENDERGROUP_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0010");
+ 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/UIComponentCommonattrBackgroundColoringTest/UIComponentCommonattrBackgroundColoring.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCommonattrBackgroundColoringTest/UIComponentCommonattrBackgroundColoring.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..83507ce8115163d4aef2f8aa7cd6ecb0c6327cb2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCommonattrBackgroundColoringTest/UIComponentCommonattrBackgroundColoring.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 { 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 UIComponentCommonattrBackgroundColoring() {
+
+ describe('UIComponentCommonattrBackgroundColoring', () => {
+ 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_COMMONATTR_BACKGROUND_COLORING_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0070 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0030 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0040 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0020 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0020 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0060");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0060 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0080 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0080 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0050");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0050 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0010 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_BACKGROUND_COLORING_0010 finish.`);
+ done();
+ });
+
+
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCommonattrForegroundEffectTest/UIComponentCommonattrForegroundEffect.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCommonattrForegroundEffectTest/UIComponentCommonattrForegroundEffect.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6396105d92fd18898286b6d196304c01d57805a8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCommonattrForegroundEffectTest/UIComponentCommonattrForegroundEffect.test.ets
@@ -0,0 +1,2001 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+import { DisplayRotation, Driver, ON, Component } from '@ohos.UiTest'
+
+/*
+* SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUND_EFFECT:验证控件 foregroundEffect 属性生效
+*
+* 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 UIComponentCommonattrForegroundEffect() {
+ describe('UIComponentCommonattrForegroundEffect', () => {
+ afterEach(async (done: Function) => {
+ await Settings.initEnv();
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0480
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0480
+ * @tc.desc 验证Select设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0480', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0480 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0480");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0480 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0140
+ * @tc.desc 验证Grid设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0140 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0140");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0140 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0030
+ * @tc.desc 验证Button设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0030");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0030 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0070
+ * @tc.desc 验证Column设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0070");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0070 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0150
+ * @tc.desc 验证GridCol设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0150 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0150");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0150 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0090
+ * @tc.desc 验证Counter设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0090 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0090");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0090 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0020
+ * @tc.desc 验证Blank设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0020 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0020");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0020 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0100
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0100
+ * @tc.desc 验证DataPanel设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0100 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0100 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0170
+ * @tc.desc 验证GridRow设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0170', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0170 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0170");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0170 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0180
+ * @tc.desc 验证Hyperlink设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0180 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0180");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0180 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0080
+ * @tc.desc 验证ColumnSplit设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0080 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0080");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0080 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0120
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0120
+ * @tc.desc 验证Divider设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0120 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0120");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0120 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0210
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0210
+ * @tc.desc 验证Line设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0210 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0210");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0210 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0220
+ * @tc.desc 验证List设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0220', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0220 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0220");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0220 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0240
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0240
+ * @tc.desc 验证ListItemGroup设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0240 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0240");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0240 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0230
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0230
+ * @tc.desc 验证ListItem设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0230 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0230");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0230 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0250
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0250
+ * @tc.desc 验证Marquee设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0250 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0250");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0250 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0260
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0260
+ * @tc.desc 验证Menu设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0260 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0260");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0260 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0280
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0280
+ * @tc.desc 验证MenuItemGroup设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0280 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0280");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0280 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0270
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0270
+ * @tc.desc 验证MenuItem设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0270 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0270");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0270 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0320
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0320
+ * @tc.desc 验证NavRouter设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0320', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0320 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0320");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0320 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0290
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0290
+ * @tc.desc 验证NavDestination设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0290', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0290 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0290");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0290 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0300
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0300
+ * @tc.desc 验证Navigation设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0300', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0300 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0300");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0300 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0330
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0330
+ * @tc.desc 验证Panel设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0330', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0330 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0330");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0330 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0380
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0380
+ * @tc.desc 验证Progress设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0380', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0380 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0380");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0380 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0310
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0310
+ * @tc.desc 验证Navigator设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0310 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0310");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0310 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0360
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0360
+ * @tc.desc 验证Polygon设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0360', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0360 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0360");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0360 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0350
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0350
+ * @tc.desc 验证PatternLock设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0350', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0350 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0350");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0350 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0370
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0370
+ * @tc.desc 验证Polyline设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0370', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0370 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0370");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0370 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0340
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0340
+ * @tc.desc 验证Path设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0340', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0340 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0340");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0340 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0390
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0390
+ * @tc.desc 验证QRcode设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0390', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0390 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0390");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0390 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0500
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0500
+ * @tc.desc 验证SlideBarContainer设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0500', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0500 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0500");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0500 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0460
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0460
+ * @tc.desc 验证scroll设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0460', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0460 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0460");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0460 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0110
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0110
+ * @tc.desc 验证Datepicker设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0110 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0110");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0110 finish.`);
+ done();
+ });
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0590
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0590
+ * @tc.desc 验证Video设置foregroundEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0590', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0590 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0590");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let stroll: Component = await driver.findComponent(ON.id('scroll'));
+ await stroll.scrollToBottom();
+ await Utils.sleep(1000);
+ let button1: Component = await driver.findComponent(ON.id('button1'));
+ await button1.click();
+ await Utils.sleep(1000);
+ let button2: Component = await driver.findComponent(ON.id('button2'));
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ let button3: Component = await driver.findComponent(ON.id('button3'));
+ await button3.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0590 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0010
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0010
+ * @tc.desc 验证 AlphabetIndexer 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0010', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0010')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0010_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0010_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0010_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0040
+ * @tc.desc 验证 CalendarPicker 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0040', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0040')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0040_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0040_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0040_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0040_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0050
+ * @tc.desc 验证 Checkbox 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0050', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0050')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0050_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0050_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0050_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0050_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0060
+ * @tc.desc 验证 CheckboxGroup 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0060', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0060')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0060_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0060_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0060_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0060_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0130
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0130
+ * @tc.desc 验证 Gauge 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0130', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0130')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0130_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0130_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0130_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0130_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0160
+ * @tc.desc 验证 GridItem 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0160', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0160')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0160_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0160_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0160_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0160_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0190
+ * @tc.desc 验证 Image 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0190', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0190')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0190_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0190_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0190_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0190_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0200
+ * @tc.desc 验证 ImageSpan 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0200', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0200')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0200_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0200_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0200_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0200_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0400
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0400
+ * @tc.desc 验证 Radio 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0400', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0400')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0400_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0400_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0400_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0400_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0410
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0410
+ * @tc.desc 验证 Rating 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0410', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0410')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0410_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0410_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0410_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0410_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0420
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0420
+ * @tc.desc 验证 Rect 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0420', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0420')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0420_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0420_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0420_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0420_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0430
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0430
+ * @tc.desc 验证 RichEditor 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0430', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0430')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0430_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0430_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0430_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0430_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0440
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0440
+ * @tc.desc 验证 Row 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0440', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0440')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0440_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0440_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0440_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0440_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0450
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0450
+ * @tc.desc 验证 RowSplit 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0450', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0450')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0450_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0450_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0450_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0450_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0470
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0470
+ * @tc.desc 验证 Search 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0470', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0470')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0470_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0470_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0470_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0470_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0490
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0490
+ * @tc.desc 验证 Shape 设置 foregroundEfect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0490', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0490')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0490_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0490_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0490_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0490_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0510
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0510
+ * @tc.desc 验证 Slider 设置 foregroundEffect 属性不生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0510', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0510')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0510_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0510_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0510_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0510_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0520
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0520
+ * @tc.desc 验证 Span 设置 foregroundEffect 属性不生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0520', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0520')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0520_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0520_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0520_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0520_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0530
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0530
+ * @tc.desc 验证 Stack 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0530', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0530')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0530_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0530_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0530_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0530_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0540
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0540
+ * @tc.desc 验证 TextInput 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0540', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0540')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0540_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0540_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0540_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0540_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0550
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0550
+ * @tc.desc 验证 TextPicker 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0550', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0550')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0550_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0550_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0550_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0550_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0560
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0560
+ * @tc.desc 验证 TextTimer 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0560', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0560')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0560_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0560_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0560_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0560_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0570
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0570
+ * @tc.desc 验证 TimePicker 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0570', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0570')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0570_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0570_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0570_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0570_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0580
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0580
+ * @tc.desc 验证 Toggle 设置 foregroundEffect 属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0580', 0, async (done: Function) => {
+ Settings.createWindow('testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0580')
+ await Utils.sleep(1000)
+
+ let driver = Driver.create()
+ let scroll = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0580_004'))
+ await scroll.scrollToBottom()
+ await Utils.sleep(1000)
+
+ let leftButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0580_001'))
+ let middleButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0580_002'))
+ let rightButton = await driver.findComponent(ON.id('UIComponentCommonattrForegroundEffect0580_003'))
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await middleButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await leftButton.click()
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+
+ await rightButton.click()
+ await windowSnap.snapShot()
+ 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/UIComponentCommonattrGrayscaleTest/UIComponentCommonattrGrayscale.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCommonattrGrayscaleTest/UIComponentCommonattrGrayscale.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8bcfa44961009d1ec2e73d523e9c0ed70c3811c3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCommonattrGrayscaleTest/UIComponentCommonattrGrayscale.test.ets
@@ -0,0 +1,215 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIComponentCommonattrGrayscale() {
+
+ describe('UIComponentCommonattrGrayscale', () => {
+ 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_COMMONATTR_GRAYSCALE_0140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0140 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0140");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0140 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0040 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0020 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0020 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0060");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0060 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0110 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0110");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0110 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0070 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0100 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0100");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0100 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0080 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0080 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0150 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0150");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0150 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0130 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0130");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0130 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0120 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0120");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0120 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0090 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0090");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0090 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0050");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0050 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0010 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0010 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_COMMONATTR_GRAYSCALE_0030 finish.`);
+ done();
+ });
+
+
+
+
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCommonattrSetDynamicDimmingTest/UIComponentCommonattrSetDynamicDimming.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCommonattrSetDynamicDimmingTest/UIComponentCommonattrSetDynamicDimming.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9e6bb7a35213f8ce1c3c8136ac9f9adc40c9e25d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCommonattrSetDynamicDimmingTest/UIComponentCommonattrSetDynamicDimming.test.ets
@@ -0,0 +1,304 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIComponentCommonattrSetDynamicDimming() {
+
+ describe('UIComponentCommonattrSetDynamicDimming', () => {
+ 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_COMMONATTR_SETDYNAMICDIMMING_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0060
+ * @tc.desc 功耗测试:由亮变暗,由暗变亮
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0060")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let 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 SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0070
+ * @tc.desc 在A的页面给B页面的Button组件设置setDynamicDimming属性,B页面Button组件的亮暗效果会生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0070_1")
+ await Utils.sleep(1000);
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button1'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ let btn2: Component = await driver.findComponent(ON.id('button2'));
+ await btn2.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0170
+ * @tc.desc 验证给组件添加压暗属性且给压暗属性增加动画,观察组件亮暗效果是否正常
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0170")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('click'));
+ await button.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0180
+ * @tc.desc 验证自定义组件的根节点设置setDynamicDimming属性会生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0180")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(500);
+ let changeText:Component = await driver.findComponent(ON.id("change"));
+ await changeText.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0080
+ * @tc.desc 性能测试:验证页面上500个组件同时进行由亮到暗的变化,显示效果是否正常
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0080")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let 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 SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0050
+ * @tc.desc setDynamicDimming下value参数设置为异常值50
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0050")
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ const image1: Component = await driver.findComponent(ON.id('image1'));
+ const image2: Component = await driver.findComponent(ON.id('image2'));
+ await image1.click();
+ await image2.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0040
+ * @tc.desc setDynamicDimming下value参数设置为异常值-10
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0040")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ const image1: Component = await driver.findComponent(ON.id('image1'));
+ const image2: Component = await driver.findComponent(ON.id('image2'));
+ await image1.click();
+ await image2.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0160
+ * @tc.desc 验证相互叠加的组件同时配置setDynamicDimming,重叠部分以上层组件亮度效果展示
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0160")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ const button1: Component = await driver.findComponent(ON.id('button1'));
+ const button2: Component = await driver.findComponent(ON.id('button2'));
+ await button1.click();
+ await button2.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0020
+ * @tc.desc RenderNode设置setDynamicDimming属性会生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0020")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ 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_COMMONATTR_SETDYNAMICDIMMING_0010
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0010
+ * @tc.desc FrameNode设置setDynamicDimming属性会生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0010")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ 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_COMMONATTR_SETDYNAMICDIMMING_0100
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0100
+ * @tc.desc 验证builderNode设置setDynamicDimming属性会生效
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0100', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0100")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ 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_COMMONATTR_SETDYNAMICDIMMING_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0140
+ * @tc.desc 验证区域超出父组件且两者有重叠部分的子组件设置setDynamicDimming属性的效果
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0140")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ const button: Component = await driver.findComponent(ON.id('child'));
+ await button.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0150
+ * @tc.desc 验证已经设置了borader、outline、shadow、padding属性的Button组件,再设置setDynamicDimming属性的效果
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0150")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ 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_COMMONATTR_SETDYNAMICDIMMING_0130
+ * @tc.name SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0130
+ * @tc.desc 验证setDynamicDimming和brightness同时配置,验证亮度效果
+ */
+ it('SUB_ACE_UI_COMPONENT_COMMONATTR_SETDYNAMICDIMMING_0130', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0130")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ const button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ 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/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/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/UIComponentUISupportForegroundColorTest/UIComponentUISupportForegroundColor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentUISupportForegroundColorTest/UIComponentUISupportForegroundColor.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a3f4d10afecf007e9a40927e7f75d47e7ea83aa0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentUISupportForegroundColorTest/UIComponentUISupportForegroundColor.test.ets
@@ -0,0 +1,162 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIComponentUISupportForegroundColor() {
+
+ describe('UIComponentUISupportForegroundColor', () => {
+ 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_FOREGROUNDCOLOR_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0050");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0050 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0090 start.`);
+ Settings.createWindow("testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0090");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0090 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0060");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0060 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0040 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0110 start.`);
+ Settings.createWindow("testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0110");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0110 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0030 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0010 start.`);
+ Settings.createWindow("testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0010 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0020 start.`);
+ Settings.createWindow("testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0020 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0070 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0080 start.`);
+ Settings.createWindow("testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_FOREGROUNDCOLOR_0080 finish.`);
+ done();
+ });
+
+
+
+
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentUISupportImageTest/UIComponentUISupportImage.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentUISupportImageTest/UIComponentUISupportImage.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..09e22648762ba72588de2d1d6cad524391ca9c6b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentUISupportImageTest/UIComponentUISupportImage.test.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 { 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 UIComponentUISupportImage() {
+ describe('UIComponentUISupportImage', () => {
+ 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_UISUPPORT_IMAGE_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_IMAGE_0020
+ * @tc.desc 设置ColoringStrategy.Invert,backgroundColor:black,前景色为黑色
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_IMAGE_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_IMAGE_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_IMAGE_0030
+ * @tc.desc 设置ColoringStrategy.Invert,backgroundColor:white,前景色为黑色
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_IMAGE_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_IMAGE_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_IMAGE_0040
+ * @tc.desc 设置ColoringStrategy.Invert,前景色为黑色
+ */
+ it('SUB_ACE_UI_COMPONENT_UISUPPORT_IMAGE_0040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0040");
+ 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/UIThemeTest/UITheme.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIThemeTest/UITheme.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3af9017c73a1bd6d1a55be5c1274adafc578e2f2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIThemeTest/UITheme.test.ets
@@ -0,0 +1,2060 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UITheme() {
+
+ describe('UITheme', () => {
+
+ 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_THEME_0040_1
+ * @tc.name SUB_ACE_UI_THEME_0040_1
+ * @tc.desc 设置ConfirmDialog组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0040_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0040_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0040")
+ 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_THEME_0040_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0040_2
+ * @tc.name SUB_ACE_UI_THEME_0040_2
+ * @tc.desc 设置ConfirmDialog组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0040_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0040_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0040")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ let testButton: Component = await driver.findComponent(ON.id('test_button'));
+ await Utils.sleep(1000);
+ await testButton.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_THEME_0040_2 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_THEME_0050_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0050_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0050");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UITheme0050_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0050_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0050_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0050_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0050_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0050");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UITheme0050_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0050_002'));
+ await Utils.sleep(1000);
+ await button1.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_THEME_0050_2 finish.`);
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0550
+ * @tc.name SUB_ACE_UI_THEME_0550
+ * @tc.desc 设置Search与default theme
+ */
+ it('SUB_ACE_UI_THEME_0550', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0550 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0550")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0550 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0640
+ * @tc.name SUB_ACE_UI_THEME_0640
+ * @tc.desc 设置TextPicker与default theme
+ */
+ it('SUB_ACE_UI_THEME_0640', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0640 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0640")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0640 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0530
+ * @tc.name SUB_ACE_UI_THEME_0530
+ * @tc.desc 设置Menu与default theme
+ */
+ it('SUB_ACE_UI_THEME_0530', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0530 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0530")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ let menuButton: Component = await driver.findComponent(ON.id('Menu_button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await menuButton.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0530 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0510
+ * @tc.name SUB_ACE_UI_THEME_0510
+ * @tc.desc 设置Toggle与default theme
+ */
+ it('SUB_ACE_UI_THEME_0510', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0530 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0510")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0510 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0580
+ * @tc.name SUB_ACE_UI_THEME_0580
+ * @tc.desc 设置CheckBox与default theme
+ */
+ it('SUB_ACE_UI_THEME_0580', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0580 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0580")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0580 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0540
+ * @tc.name SUB_ACE_UI_THEME_0540
+ * @tc.desc 设置TextInput与default theme
+ */
+ it('SUB_ACE_UI_THEME_0540', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0540 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0540")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0540 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0650
+ * @tc.name SUB_ACE_UI_THEME_0650
+ * @tc.desc 设置ComposeListItem与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0650', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0650 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0650")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0650 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0590
+ * @tc.name SUB_ACE_UI_THEME_0590
+ * @tc.desc 设置CheckBoxGroup与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0590', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0590 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0590")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0590 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0560
+ * @tc.name SUB_ACE_UI_THEME_0560
+ * @tc.desc 设置CheckBoxGroup与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0560', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0560 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0560")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0560 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0600
+ * @tc.name SUB_ACE_UI_THEME_0600
+ * @tc.desc 设置Radio与default theme
+ */
+ it('SUB_ACE_UI_THEME_0600', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0600 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0600")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0600 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0620
+ * @tc.name SUB_ACE_UI_THEME_0620
+ * @tc.desc 设置TimePicker与default theme
+ */
+ it('SUB_ACE_UI_THEME_0620', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0620 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0620")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0620 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0660
+ * @tc.name SUB_ACE_UI_THEME_0660
+ * @tc.desc 设置QRCode与default theme
+ */
+ it('SUB_ACE_UI_THEME_0660', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0660 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0660")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0660 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0570
+ * @tc.name SUB_ACE_UI_THEME_0570
+ * @tc.desc 设置QRCode与default theme
+ */
+ it('SUB_ACE_UI_THEME_0570', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0570 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0570")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0570 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0520
+ * @tc.name SUB_ACE_UI_THEME_0520
+ * @tc.desc 设置Toolbar与default theme
+ */
+ it('SUB_ACE_UI_THEME_0520', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0520 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0520")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0520 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0610
+ * @tc.name SUB_ACE_UI_THEME_0610
+ * @tc.desc 设置Slider与default theme
+ */
+ it('SUB_ACE_UI_THEME_0610', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0520 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0610")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0610 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0630
+ * @tc.name SUB_ACE_UI_THEME_0630
+ * @tc.desc 设置DatePicker与default theme
+ */
+ it('SUB_ACE_UI_THEME_0630', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0520 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0630")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0630 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0170_1
+ * @tc.name SUB_ACE_UI_THEME_0170_1
+ * @tc.desc 设置Button组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0170_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0170_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0170")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0170_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0170_2
+ * @tc.name SUB_ACE_UI_THEME_0170_2
+ * @tc.desc 设置Button组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0170_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0170_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0170")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0170_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0170_3
+ * @tc.name SUB_ACE_UI_THEME_0170_3
+ * @tc.desc 设置Button组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0170_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0170_3 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0170")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.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_THEME_0170_3 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0170_4
+ * @tc.name SUB_ACE_UI_THEME_0170_4
+ * @tc.desc 设置Button组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0170_4', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0170_4 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0170")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await button.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_THEME_0170_4 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0180
+ * @tc.name SUB_ACE_UI_THEME_0180
+ * @tc.desc 设置Select组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0180 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0180")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ let select: Component = await driver.findComponent(ON.id('select'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await select.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0180 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0190
+ * @tc.name SUB_ACE_UI_THEME_0190
+ * @tc.desc 设置Toggle组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0190 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0190")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0190 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0200_1
+ * @tc.name SUB_ACE_UI_THEME_0200_1
+ * @tc.desc 设置Toolbar组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0200_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0200_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0200")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0200_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0200_2
+ * @tc.name SUB_ACE_UI_THEME_0200_2
+ * @tc.desc 设置Toolbar组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0200_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0200_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0200")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.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_THEME_0200_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0200_3
+ * @tc.name SUB_ACE_UI_THEME_0200_3
+ * @tc.desc 设置Toolbar组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0200_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0200_3 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0200")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await button.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_THEME_0200_3 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0200_4
+ * @tc.name SUB_ACE_UI_THEME_0200_4
+ * @tc.desc 设置Toolbar组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0200_4', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0200_4 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0200")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await button.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_THEME_0200_4 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0210_1
+ * @tc.name SUB_ACE_UI_THEME_0200_1
+ * @tc.desc 设置Menu组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0210_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0210_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0210")
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0210_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0210_2
+ * @tc.name SUB_ACE_UI_THEME_0210_2
+ * @tc.desc 设置Menu组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0210_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0210_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0210")
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(80,200);
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0210_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0210_3
+ * @tc.name SUB_ACE_UI_THEME_0210_3
+ * @tc.desc 设置Menu组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0210_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0210_3 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0210")
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(80,200);
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(80,200);
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0210_3 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0230_1
+ * @tc.name SUB_ACE_UI_THEME_0230_1
+ * @tc.desc 设置Search组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0230_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0230_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0230")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0230_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0230_2
+ * @tc.name SUB_ACE_UI_THEME_0230_2
+ * @tc.desc 设置Search组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0230_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0230_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0230")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.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_THEME_0230_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0220
+ * @tc.name SUB_ACE_UI_THEME_0220
+ * @tc.desc 设置TextInput组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0220', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0220 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0220")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0220 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0240
+ * @tc.name SUB_ACE_UI_THEME_0240
+ * @tc.desc 设置counter组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0240 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0240")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0240 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0260
+ * @tc.name SUB_ACE_UI_THEME_0260
+ * @tc.desc 设置CheckBox组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0260 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0260")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ let checkbox: Component = await driver.findComponent(ON.id('checkbox'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await checkbox.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0260 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0290_1
+ * @tc.name SUB_ACE_UI_THEME_0290_1
+ * @tc.desc 设置Slider组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0290_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0290_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0290")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0290_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0290_2
+ * @tc.name SUB_ACE_UI_THEME_0290_2
+ * @tc.desc 设置Slider组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0290_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0290_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0290")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.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_THEME_0290_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0300
+ * @tc.name SUB_ACE_UI_THEME_0300
+ * @tc.desc 设置TimePicker组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0300', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0300 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0300")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.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_THEME_0300 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0310
+ * @tc.name SUB_ACE_UI_THEME_0310
+ * @tc.desc 设置DatePicker组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0310 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0310")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.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_THEME_0310 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0390_1
+ * @tc.name SUB_ACE_UI_THEME_0390_1
+ * @tc.desc 设置Swiper与default theme
+ */
+ it('SUB_ACE_UI_THEME_0390_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0390_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0390")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0390_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0390_2
+ * @tc.name SUB_ACE_UI_THEME_0390_2
+ * @tc.desc 设置Swiper与default theme
+ */
+ it('SUB_ACE_UI_THEME_0390_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0390_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0390")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0390_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0370_1
+ * @tc.name SUB_ACE_UI_THEME_0370_1
+ * @tc.desc 设置EditableTitleBar与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0370_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0370_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0370")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0370_1 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0370_2
+ * @tc.name SUB_ACE_UI_THEME_0370_2
+ * @tc.desc 设置EditableTitleBar与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0370_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0370_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0370")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0370_2 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0350
+ * @tc.name SUB_ACE_UI_THEME_0350
+ * @tc.desc 设置EditableTitleBar与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0350', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0350 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0350")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0350 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0410
+ * @tc.name SUB_ACE_UI_THEME_0410
+ * @tc.desc 设置SubHeader与default theme
+ */
+ it('SUB_ACE_UI_THEME_0410', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0410 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0410")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0410 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0420
+ * @tc.name SUB_ACE_UI_THEME_0420
+ * @tc.desc 设置Progress与default theme
+ */
+ it('SUB_ACE_UI_THEME_0420', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0420 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0420")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0420 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0450
+ * @tc.name SUB_ACE_UI_THEME_0450
+ * @tc.desc 设置AlphabetIndexer与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0450', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0450 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0450")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0450 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0430
+ * @tc.name SUB_ACE_UI_THEME_0430
+ * @tc.desc 设置ProgressButton与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0430', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0430 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0430")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0430 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0490
+ * @tc.name SUB_ACE_UI_THEME_0490
+ * @tc.desc 设置Button与default theme
+ */
+ it('SUB_ACE_UI_THEME_0490', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0490 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0490")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0490 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0470
+ * @tc.name SUB_ACE_UI_THEME_0470
+ * @tc.desc 设置Badge与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0470', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0470 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0470")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0470 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0460
+ * @tc.name SUB_ACE_UI_THEME_0460
+ * @tc.desc 设置Scroll与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0460', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0460 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0460")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0460 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0480
+ * @tc.name SUB_ACE_UI_THEME_0480
+ * @tc.desc 设置Popup与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0480', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0480 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0480")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0480 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0500
+ * @tc.name SUB_ACE_UI_THEME_0500
+ * @tc.desc 设置Select与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0500', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0500 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0500")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0500 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0670
+ * @tc.name SUB_ACE_UI_THEME_0670
+ * @tc.desc 设置Divider与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0670', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0670 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0670")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0670 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0380
+ * @tc.name SUB_ACE_UI_THEME_0380
+ * @tc.desc 设置Dialog与defaulttheme
+ */
+ it('SUB_ACE_UI_THEME_0380', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0380 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0380")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0380 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_THEME_0270
+ * @tc.name SUB_ACE_UI_THEME_0270
+ * @tc.desc 设置CheckBox组件主题风格
+ */
+ it('SUB_ACE_UI_THEME_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0270 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0270")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ let checkbox: Component = await driver.findComponent(ON.id('checkbox'));
+ await Utils.sleep(1000);
+ await checkbox.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_THEME_0270 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_THEME_0280
+* @tc.name SUB_ACE_UI_THEME_0280
+* @tc.desc 设置Radio组件主题风格
+*/
+ it('SUB_ACE_UI_THEME_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0280 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0280")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0280 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_THEME_0250
+* @tc.name SUB_ACE_UI_THEME_0250
+* @tc.desc 设置PatternLock组件主题风格
+*/
+ it('SUB_ACE_UI_THEME_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0250 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0250")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.doubleClick();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0250 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_THEME_0320
+* @tc.name SUB_ACE_UI_THEME_0320
+* @tc.desc 设置TextPicker组件主题风格
+*/
+ it('SUB_ACE_UI_THEME_0320', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0320 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0320")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.doubleClick();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0320 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_THEME_0340_1
+* @tc.name SUB_ACE_UI_THEME_0340_1
+* @tc.desc 设置QRCode组件主题风格
+*/
+ it('SUB_ACE_UI_THEME_0340_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0340_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0340")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0340_1 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_THEME_0340_2
+* @tc.name SUB_ACE_UI_THEME_0340_2
+* @tc.desc 设置QRCode组件主题风格
+*/
+ it('SUB_ACE_UI_THEME_0340_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0340_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0340")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.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_THEME_0340_2 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_THEME_0360
+* @tc.name SUB_ACE_UI_THEME_0360
+* @tc.desc 设置default theme
+*/
+ it('SUB_ACE_UI_THEME_0360', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0360 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0360")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0360 finish.`);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_THEME_0400
+* @tc.name SUB_ACE_UI_THEME_0400
+* @tc.desc 设置Text与default theme
+*/
+ it('SUB_ACE_UI_THEME_0400', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0400 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0400")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0400 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_THEME_0080_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0080_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0080_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0080_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0080_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0080_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0080");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0080_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0080_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0080_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0080_3 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0080");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0080_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0080_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0030_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0030_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0030");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UITheme0030_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0030_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0030_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0030_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0030_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0030");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UITheme0030_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0030_002'));
+ await Utils.sleep(1000);
+ await button1.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_THEME_0030_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0010_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0010_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0010_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0010_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0010_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0010_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0010");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0010_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0010_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0100_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0100_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0100");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0100_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0100_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0100_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0100_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0100");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0100_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0100_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0100_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0100_3 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0100");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0100_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0100_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0140_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0140_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0140");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0140_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0140_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0140_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0140_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0140");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0140_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0140_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0090_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0090_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0090");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0090_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0090_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0090_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0090_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0090");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0090_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0090_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0090_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0090_3 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0090");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0090_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0090_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0090_4', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0090_4 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0090");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0090_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0090_4 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0150_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0150_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0150");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0150_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0150_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0150_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0150_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0150");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0150_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0150_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0150_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0150_3 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0150");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0150_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0150_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0150_4', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0150_4 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0150");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0150_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0150_4 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0060_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0060_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0060");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UITheme0060_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0060_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0060_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0060_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0060_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0060");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UITheme0060_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0060_002'));
+ await Utils.sleep(1000);
+ await button1.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_THEME_0060_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0110_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0110_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0110");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0110_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0110_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0110_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0110_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0110");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0110_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0110_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0020_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0020_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0020");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UITheme0020_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0020_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0020_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0020_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0020_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0020");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ let button = await driver.findComponent(ON.id('UITheme0020_001'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await driver.click(200, 200);
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0020_002'));
+ await Utils.sleep(1000);
+ await button1.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_THEME_0020_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0160_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0160_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0160");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0160_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0160_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0160_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0160_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0160");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0160_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0160_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0070_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0070_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0070_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0070_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0070_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0070_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0070");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0070_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0070_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0070_3', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0070_3 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0070");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0070_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0070_3 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0130_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0130_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0130");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0130_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0130_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0130_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0130_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0130");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0130_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0130_2 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0330_1', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0330_1 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0330");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0330_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0330_1 finish.`);
+ done();
+ });
+
+ it('SUB_ACE_UI_THEME_0330_2', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0330_2 start.`);
+ Settings.createWindow("testability/pages/UITheme/UITheme0330");
+ await Utils.sleep(1000);
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ let button1 = await driver.findComponent(ON.id('UITheme0330_002'));
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_THEME_0330_2 finish.`);
+ done();
+ });
+
+
+
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentPopupboxPopupFollowtransformoftargetTest/UIComponentPopupboxPopupFollowtransformoftarget.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentPopupboxPopupFollowtransformoftargetTest/UIComponentPopupboxPopupFollowtransformoftarget.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0f6259f212794411e5dcb75163591758a63e3915
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentPopupboxPopupFollowtransformoftargetTest/UIComponentPopupboxPopupFollowtransformoftarget.test.ets
@@ -0,0 +1,915 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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 UIComponentPopupboxPopupFollowtransformoftarget() {
+
+ describe('UIComponentPopupboxPopupFollowtransformoftarget', () => {
+ 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_POPUP_FOLLOWTRANSFORMOFTARGET_0290
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0290
+ * @tc.desc popup设置CustomPopupOptions,followTransformOfTarget(fasle),autoCancel(false),column组件点击后的rotate更改为{angle:"90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0290', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0290")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.mouseDrag({
+ x: 500, y: 700
+ }, {
+ x: 200, y: 700
+ }, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('angle'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0260
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0260
+ * @tc.desc popup设置CustomPopupOptions,followTransformOfTarget(fasle),autoCancel(false),button组件点击后的scale更改为{x:0.5,y:2}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0260', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0260")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('scale'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0280
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0280
+ * @tc.desc popup设置CustomPopupOptions,followTransformOfTarget(fasle),autoCancel(false),button组件点击后的translate更改为{x:50,y:100}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0280', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0280")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('translate'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0750
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0750
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(fasle),autoCancel(false),button组件点击后的transform更改为(matrix4.identity().translate({ x: 50, y: 100 }).scale({ x: 0.5, y: 2 }).rotate({angle: "90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0750', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0750")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('animation'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0200
+ * @tc.desc popup不设置followTransformOfTarget,设置autoCancel(false),设置PopupOptions,,设置PopupOptions,button组件点击后的rotate更改为{angle:"90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0200")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('angle'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0270
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0270
+ * @tc.desc popup设置CustomPopupOptions,followTransformOfTarget(fasle),autoCancel(false),button组件点击后的transform更改为(matrix4.identity().translate({ x: 50, y: 100 }).scale({ x: 0.5, y: 2 }).rotate({angle: "90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0270', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0270")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('animation'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0250
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0250
+ * @tc.desc popup设置CustomPopupOptions,followTransformOfTarget(fasle),autoCancel(false),button组件点击后的rotate更改为{angle:"90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0250', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0250")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('angle'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0220
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0220
+ * @tc.desc popup不设置followTransformOfTarget,设置autoCancel(false),设置PopupOptions,column组件点击后的rotate更改为{angle:"90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0220', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0220")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('angle'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0240
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0240
+ * @tc.desc popup不设置followTransformOfTarget,设置autoCancel(false),设置PopupOptions,column组件点击后的transform更改为(matrix4.identity().translate({ x: 50, y: 100 }).scale({ x: 0.5, y: 2 }).rotate({angle: "90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0240', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0240")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('animation'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0210
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0210
+ * @tc.desc popup不设置followTransformOfTarget,设置autoCancel(false),设置PopupOptions,,设置PopupOptions,最外层的column组件点击后的rotate更改为{angle:"90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0210', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0210")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('angle'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0190
+ * @tc.desc popup不设置followTransformOfTarget,设置autoCancel(false),设置PopupOptions,,最外层的column组件点击后的translate更改为{x:50,y:100}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0190', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0190")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('translate'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0170
+ * @tc.desc popup不设置followTransformOfTarget,设置autoCancel(false),设置PopupOptions,,最外层的column组件点击后的scale更改为{x:0.5,y:2}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0170")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('scale'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1150
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1150
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(undefined),autoCancel(false),column组件点击后的transform更改为(matrix4.identity().translate({ x: 50, y: 100 }).scale({ x: 0.5, y: 2 }).rotate({angle: "90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1150")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('animation'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1120
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1120
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(undefined),autoCancel(false),button组件点击后的translate更改为{x:50,y:100}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1120', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1120")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('translate'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1160
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1160
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(undefined),autoCancel(false),column组件点击后的translate更改为{x:50,y:100}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1160")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('translate'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1080
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1080
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(true),autoCancel(false),最外层的column组件点击后的translate更改为{x:50,y:100}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1080")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('translate'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1050
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1050
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(true),autoCancel(false),最外层的column组件点击后的rotate更改为{angle:"90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1050")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('angle'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1040
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1040
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(true),autoCancel(false),column组件点击后的translate更改为{x:50,y:100}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1040', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1040")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('translate'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1140
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1140
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(undefined),autoCancel(false),column组件点击后的scale更改为{x:0.5,y:2}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1140")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('scale'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1100
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1100
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(undefined),autoCancel(false),button组件点击后的scale更改为{x:0.5,y:2}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1100', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1100")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('scale'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1010
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1010
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(true),autoCancel(false),column组件点击后的rotate更改为{angle:"90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1010")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('angle'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1030
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1030
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(true),autoCancel(false),column组件点击后的transform更改为(matrix4.identity().translate({ x: 50, y: 100 }).scale({ x: 0.5, y: 2 }).rotate({angle: "90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1030")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('animation'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1090
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1090
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(true),autoCancel(false),column组件点击后的transform更改为(matrix4.identity().translate({ x: 50, y: 100 }).scale({ x: 0.5, y: 2 }).rotate({angle: "90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1090', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1090")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('angle'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1070
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1070
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(true),autoCancel(false),最外层的column组件点击后的transform更改为(matrix4.identity().translate({ x: 50, y: 100 }).scale({ x: 0.5, y: 2 }).rotate({angle: "90deg"}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1070', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1070")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('animation'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1060
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1060
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(true),autoCancel(false),最外层的column组件点击后的scale更改为{x:0.5,y:2}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1060")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('button'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ await driver.drag(500, 700, 200, 700, 1500);
+ await Utils.sleep(1000);
+ let ang: Component = await driver.findComponent(ON.id('scale'));
+ await ang.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0300
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0300
+ * @tc.desc 功耗测试:由亮变暗,由暗变亮
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0300', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0300")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button0 = await driver.findComponent(ON.id('button'));
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(1000);
+ await driver.swipe(300, 600, 0, 600,1000);
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0770
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0770
+ * @tc.desc 功耗测试:由亮变暗,由暗变亮
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0770', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0770")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button0 = await driver.findComponent(ON.id('button'));
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(1000);
+ await driver.swipe(300, 300, 0, 300);
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0670
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0670
+ * @tc.desc 功耗测试:由亮变暗,由暗变亮
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0670', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0670")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button0 = await driver.findComponent(ON.id('button'));
+ let button1 = await driver.findComponent(ON.id('button1'));
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(1000);
+ await driver.swipe(300, 300, 0, 300);
+ await Utils.sleep(1000);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0690
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0690
+* @tc.desc 功耗测试:由亮变暗,由暗变亮
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0690', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0690")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button0 = await driver.findComponent(ON.id('button'));
+ let button1 = await driver.findComponent(ON.id('button1'));
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(1000);
+ await driver.swipe(300, 300, 0, 300);
+ await Utils.sleep(1000);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0740
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0740
+* @tc.desc 功耗测试:由亮变暗,由暗变亮
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0740', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0740")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button0 = await driver.findComponent(ON.id('button'));
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0730
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0730
+* @tc.desc 功耗测试:由亮变暗,由暗变亮
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0730', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0730")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button0 = await driver.findComponent(ON.id('button'));
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0680
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0680
+* @tc.desc 功耗测试:由亮变暗,由暗变亮
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0680', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0680")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button0 = await driver.findComponent(ON.id('button'));
+ let button1 = await driver.findComponent(ON.id('button1'));
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(1000);
+ await driver.swipe(300, 300, 0, 300);
+ await Utils.sleep(1000);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+* @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0710
+* @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0710
+* @tc.desc 功耗测试:由亮变暗,由暗变亮
+*/
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0710', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0710")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button0 = await driver.findComponent(ON.id('button'));
+ let button1 = await driver.findComponent(ON.id('button1'));
+ let button2 = await driver.findComponent(ON.id('button2'));
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(1000);
+ await driver.swipe(300, 300, 0, 300);
+ await Utils.sleep(1000);
+ await button2.click();
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0810
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0810
+ * @tc.desc 功耗测试:由亮变暗,由暗变亮
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0810', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0810")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button0 = await driver.findComponent(ON.id('button'));
+ let button1 = await driver.findComponent(ON.id('button1'));
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(1000);
+ await driver.swipe(300, 300, 0, 300);
+ await Utils.sleep(1000);
+ await button1.click();
+ await Utils.sleep(1000);
+ await button0.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0700
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0700
+ * @tc.desc popup设置CustomPopupOptions,followTransformOfTarget(undefined),autoCancel(false),最外层的column组件点击后的scale更改为{x:0.5,y:2}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0700', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0700")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(1000);
+ let button: Component = await driver.findComponent(ON.id('button'));
+ let column: Component = await driver.findComponent(ON.id('column'));
+ await button.click();
+ await Utils.sleep(4000);
+ await column.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0320
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0320
+ * @tc.desc popup设置CustomPopupOptions,followTransformOfTarget(fasle),autoCancel(false),column组件点击后的translate更改为{x:50,y:100}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0320', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0320")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(1000);
+ let button: Component = await driver.findComponent(ON.id('button'));
+ let column: Component = await driver.findComponent(ON.id('column'));
+ await button.click();
+ await Utils.sleep(4000);
+ await column.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0800
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0800
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(fasle),autoCancel(false),column组件点击后的translate更改为{x:50,y:100}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0800', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0800")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(1000);
+ let button: Component = await driver.findComponent(ON.id('button'));
+ let column: Component = await driver.findComponent(ON.id('column'));
+ await button.click();
+ await Utils.sleep(4000);
+ await column.click();
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0780
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0780
+ * @tc.desc popup设置PopupOptions,followTransformOfTarget(fasle),autoCancel(false),column组件点击后的scale更改为{x:0.5,y:2}
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0780', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0780")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(1000);
+ let button: Component = await driver.findComponent(ON.id('button'));
+ let column: Component = await driver.findComponent(ON.id('column'));
+ await button.click();
+ await Utils.sleep(4000);
+ await column.click();
+ 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/model/Settings.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets
index c74ae272407cbf707ddcfaaacf42c1e132d5452d..75e0586cb541e85f4832d1272ef267e948cab781 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,8 +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 { systemDateTime } from '@kit.BasicServicesKit';
+import { router, uiAppearance } from '@kit.ArkUI';
+import { ConfigurationConstant } from '@kit.AbilityKit';
+import Utils from './Utils';
const TAG: string = '[TEST]';
@@ -36,14 +37,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 +146,27 @@ 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);
+ uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => {
+ });
+ 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/test/model/snapShot.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/snapShot.ets
index 773f21352336973e8a11bce347632a45bd62dd62..48d21d373d56aa20caa74dd05f449feed1b2fca1 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/snapShot.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/snapShot.ets
@@ -43,7 +43,6 @@ class windowSnap {
let filePath: string = pathDir + "/" + displayName;
Logger.info(TAG, 'createFile filePath = ${filePath}')
return filePath;
-
}
async deleteFile(filePath: string) {
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..8a199268477cf2de8f3a31df2987a66e374bef43 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,29 @@ export default class TestAbility extends UIAbility {
hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageCreate');
GlobalThis.getInstance().setContext("context", this.context)
- windowStage.loadContent('testability/pages/Index', (err) => {
- if (err.code) {
- hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? '');
- return;
+ //
+ let atManager = abilityAccessCtrl.createAtManager();
+ let appFlags = bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION;
+ let permissionFlags = 0;
+ bundleManager.getBundleInfoForSelf(appFlags, (err, data) => {
+ if (err) {
+ Logger.error(TAG, 'getAllApplicationInfo failed: %{public}s', err.message);
+ console.error("")
}
- hilog.info(0x0000, 'testTag', 'Succeeded in loading the content.');
- });
+ let tokenID =
+ data.appInfo.accessTokenId; //系统应用可以通过bundleManager.getApplicationInfo获取,普通应用可以通过bundleManager.getBundleInfoForSelf获取
+ atManager.grantUserGrantedPermission(tokenID, 'ohos.permission.READ_MEDIA', permissionFlags, (err, data) => {
+ if (err) {
+ Logger.info(TAG, `grantUserGrantedPermission fail, err->${JSON.stringify(err)}`)
+ }
+ })
+ atManager.grantUserGrantedPermission(tokenID, 'ohos.permission.WRITE_MEDIA', permissionFlags, (err, data) => {
+ if (err) {
+ Logger.info(TAG, `grantUserGrantedPermission fail, err->${JSON.stringify(err)}`)
+ }
+ })
+ })
+
}
onWindowStageDestroy() {
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/DecouplingBaseDatabase/DecouplingBaseDatabase0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/DecouplingBaseDatabase/DecouplingBaseDatabase0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0ee96465a01fa5c606a96ea758467b0babf1b826
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/DecouplingBaseDatabase/DecouplingBaseDatabase0110.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.
+ */
+
+const TAG: string = 'y_yang'
+
+@Entry
+@Component
+struct DecouplingBaseDatabase0110 {
+ build() {
+ Column({ space: 20 }) {
+ Text('SUB_ACE_DECOUPLING_BASE_DATABASE_0110')
+ .fontSize(16)
+
+ TextInput({ placeholder: 'input your username' })
+ .id('DecouplingBaseDatabase0110_001')
+ .onSubmit((EnterKeyType) => {
+ console.info(TAG, EnterKeyType + ' 输入法回车键的类型值')
+ })
+
+ TextInput({ placeholder: 'input your password' })
+ .id('DecouplingBaseDatabase0110_002')
+ .type(InputType.Password)
+ .onSubmit((EnterKeyType) => {
+ console.info(TAG, EnterKeyType + ' 输入法回车键的类型值')
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/DecouplingBaseDatabase/DecouplingBaseDatabase0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/DecouplingBaseDatabase/DecouplingBaseDatabase0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..862665b55f454916ef1b445ffd3abe5d104d5a5e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/DecouplingBaseDatabase/DecouplingBaseDatabase0210.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 DecouplingBaseDatabase0210 {
+ private iconStr: ResourceStr = $r("app.media.icon")
+
+ @Builder
+ MyMenu() {
+ Menu() {
+ MenuItem({ startIcon: this.iconStr, content: "分屏1" })
+ MenuItem({ startIcon: this.iconStr, content: "分屏2" })
+ MenuItem({ startIcon: this.iconStr, content: "分屏3" })
+ }
+ }
+
+ @Builder
+ MyPreview() {
+ Column() {
+ Image($r('app.media.icon'))
+ .width(200)
+ .height(200)
+ }
+ }
+
+ build() {
+ Column({ space: 50 }) {
+ Column() {
+ Column() {
+ Button('preview-max')
+ .id('button')
+ .width(200)
+ .height(100)
+ .margin(100)
+ .fontSize(30)
+ .bindContextMenu(this.MyMenu, ResponseType.LongPress,
+ {
+ preview: this.MyPreview
+ })
+ }
+ }.width('100%')
+ }
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b4823a21f0a1e6664b932aa8e0e08d7d28f4c86b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0010.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 ResourceManagerAmount0010 {
+ private iterNoList: number[] = [0, 1, 2]
+
+ build() {
+ Column({ space: 20 }) {
+ Text('SUB_ACE_RESOURCEMANAGER_AMOUNT_0010')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (itemNo: number) => {
+ Image($r('app.media.media_' + itemNo))
+ .width(200)
+ .height(200)
+ .objectFit(ImageFit.Cover)
+ }, (itemNo: number) => itemNo.toString())
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0945e447cc181624c09c99a673e26b5449051ede
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0030.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 ResourceManagerAmount0030 {
+ iterNoList: string[] = ['1', '2', '3'];
+
+ build() {
+ Column({ space: 20 }) {
+ ForEach(this.iterNoList, (iterNo: string) => {
+ if($r(`app.boolean.boolean_${iterNo}`)){
+ Text('true')
+ }else {
+ Text('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/ResourceManagerAmount/ResourceManagerAmount0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..da2f64e913cf2796479e52e7ef908c90350f22db
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0040.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 ResourceManagerAmount0040 {
+ private iterNoList: number[] = [0, 1, 2]
+
+ build() {
+ Column({ space: 20 }) {
+ Text('SUB_ACE_RESOURCEMANAGER_AMOUNT_0040')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (itemNo: number) => {
+ Text('我是测试文本' + itemNo)
+ .fontSize(28)
+ .fontWeight(FontWeight.Bold)
+ .fontColor($r('app.color.color_' + itemNo))
+ }, (itemNo: number) => itemNo.toString())
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b8bf454410c7743db03f2cf35c620b93b04dfa5f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0050.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 ResourceManagerAmount0050 {
+ iterNoList: string[] = ['01', '02', '03'];
+
+ build() {
+ Column({ space: 20 }) {
+ ForEach(this.iterNoList, (iterNo: string) => {
+ Text('测试文本')
+ .fontSize($r(`app.float.float_${iterNo}`))
+ })
+
+ }.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/ResourceManagerAmount/ResourceManagerAmount0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8200a71c3bbb83797f3c3543f6d3b4ab1be44ead
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0060.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 ResourceManagerAmount0060 {
+ private iterNoList: number[] = [0, 1, 2]
+
+ build() {
+ Column({ space: 20 }) {
+ Text('SUB_ACE_RESOURCEMANAGER_AMOUNT_0060')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (itemNo: number) => {
+ Text(JSON.stringify($r('app.intarray.intarray_' + itemNo)))
+ .fontSize(28)
+ .fontWeight(FontWeight.Bold)
+ }, (itemNo: number) => itemNo.toString())
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..571313407f9c708ee204855c7ccf2bb63072b5a0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0070.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 ResourceManagerAmount0070 {
+ private iterNoList: number[] = [0, 1, 2]
+
+ build() {
+ Column({ space: 20 }) {
+ Text('SUB_ACE_RESOURCEMANAGER_AMOUNT_0070')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (itemNo: number) => {
+ Text('ResourceManagerAmount0070')
+ .fontSize($r('app.integer.integer_' + itemNo))
+ .fontWeight(FontWeight.Bold)
+ }, (itemNo: number) => itemNo.toString())
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..71a67299ab77690abd578a75b5c6900a4c8afdb9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0080.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 ResourceManagerAmount0080 {
+ private iterNoList: number[] = [0, 1, 2]
+
+ build() {
+ Column({ space: 20 }) {
+ Text('SUB_ACE_RESOURCEMANAGER_AMOUNT_0080')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (itemNo: number) => {
+ Image($r('app.media.media_' + itemNo))
+ .width(200)
+ .height(200)
+ .objectFit(ImageFit.Cover)
+ }, (itemNo: number) => itemNo.toString())
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..816e9be4b067f3ac50b4d47386a80a88b77a98d7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0090.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 ResourceManagerAmount0090 {
+ private iterNoList: number[] = [0, 1, 2]
+
+ build() {
+ Column({ space: 20 }) {
+ Text('SUB_ACE_RESOURCEMANAGER_AMOUNT_0090')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (itemNo: number) => {
+ Text(JSON.stringify($r('app.pattern.pattern_' + itemNo)))
+ .fontSize(28)
+ }, (itemNo: number) => itemNo.toString())
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f789522f2b8382ec4f0321e02672f63f4d7af13b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0100.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 ResourceManagerAmount0100 {
+ private iterNoList: number[] = [0, 1, 2]
+
+ build() {
+ Column({ space: 20 }) {
+ Text('SUB_ACE_RESOURCEMANAGER_AMOUNT_0100')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (itemNo: number) => {
+ Text($r('app.plural.plural_' + itemNo, 0, 3))
+ .fontSize(28)
+ .fontWeight(FontWeight.Bold)
+ }, (itemNo: number) => itemNo.toString())
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e621af12e4df6ed48752168e4ff6a63e955f8c85
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0110.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 { common } from '@kit.AbilityKit';
+import { BusinessError } from '@kit.BasicServicesKit';
+import { JSON } from '@kit.ArkTS';
+
+const TAG: string = 'y_yang'
+
+@Entry
+@Component
+struct ResourceManagerAmount0110 {
+ private iterNoList: number[] = [0, 1, 2]
+ private strArray: string[] = []
+
+ aboutToAppear(): void {
+ try {
+ let context = getContext(this) as common.UIAbilityContext
+ let resourceManager = context.resourceManager
+ this.iterNoList.forEach((itemNo) => {
+ this.strArray = resourceManager.getStringArrayValueSync($r('app.strarray.strarray_' + itemNo))
+ console.log(TAG, JSON.stringify(this.strArray))
+ })
+ } catch (error) {
+ let code = (error as BusinessError).code;
+ let message = (error as BusinessError).message;
+ console.error(`getStringArrayValueSync failed, error code: ${code}, message: ${message}.`)
+ }
+ }
+
+ build() {
+ Column({ space: 20 }) {
+ Text('SUB_ACE_RESOURCEMANAGER_AMOUNT_0110')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (itemNo: number) => {
+ if (this.strArray) {
+ Text(this.strArray[itemNo] + itemNo)
+ .fontSize(28)
+ .fontWeight(FontWeight.Bold)
+ }
+ }, (itemNo: number) => itemNo.toString())
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..69e0b6c7759317f2dbe0d9e3d31820b0069a8d55
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0120.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 ResourceManagerAmount0120 {
+ private iterNoList: number[] = [0, 1, 2]
+
+ build() {
+ Column({ space: 20 }) {
+ Text('SUB_ACE_RESOURCEMANAGER_AMOUNT_0120')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (itemNo: number) => {
+ Text($r('app.string.string_' + itemNo))
+ .fontSize(28)
+ .fontWeight(FontWeight.Bold)
+ }, (itemNo: number) => itemNo.toString())
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..321c8c2c6a113c87dbebc713f5fc3efa0fe55a0f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerAmount/ResourceManagerAmount0130.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct ResourceManagerAmount0130 {
+ iterNoList: string[] = ['base', 'child'];
+
+ build() {
+ Column({ space: 20 }) {
+ ForEach(this.iterNoList, (iterNo: string) => {
+ Text($r(`app.theme.${iterNo}`, 1))
+ })
+
+ }.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/ResourceManagerModuleSr/ResourceManagerModuleSr0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerModuleSr/ResourceManagerModuleSr0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fff0d867286a84bbefe5931760b4036e53073e26
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourceManagerModuleSr/ResourceManagerModuleSr0010.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 ResourceManagerModuleSr0010 {
+ private text: string = '[library].string.test_string'
+
+ build() {
+ Column({ space: 20 }) {
+ Text('SUB_ACE_RESOURCEMANAGER_MODULE_Sr_0010')
+ .fontSize(16)
+
+ Text($r(this.text))
+ .fontSize(28)
+ .fontColor(Color.Pink)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourcemanagerModuleRawfile/ResourcemanagerModuleRawfile0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourcemanagerModuleRawfile/ResourcemanagerModuleRawfile0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1901b7e736ba37e29fbfab157a404940c5aee9f2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourcemanagerModuleRawfile/ResourcemanagerModuleRawfile0010.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 ResourcemanagerModuleRawfile0010 {
+ videoController: VideoController = new VideoController();
+ rawfile: string = '[library].test.mp4'
+
+ build() {
+ Column() {
+ Video({
+ src: $rawfile(this.rawfile),
+ controller: this.videoController
+ })
+ .width('100%')
+ .height(300)
+
+ Button(' 播放 ')
+ .id('playButton')
+ .margin({ top: 50 })
+ .onClick(() => {
+ this.videoController.start();
+ })
+ }.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/ResourcemanagerRawfile/ResourcemanagerRawfile0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourcemanagerRawfile/ResourcemanagerRawfile0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a25f670f5c877814ebcb8c7bfd01dfb0cff88966
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ResourcemanagerRawfile/ResourcemanagerRawfile0010.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 ResourcemanagerRawfile0010 {
+ videoController: VideoController = new VideoController();
+
+ build() {
+ Column() {
+ Video({
+ src: $rawfile('test.mp4'),
+ controller: this.videoController
+ })
+ .width('100%')
+ .height(300)
+
+ Button(' 播放 ')
+ .id('playButton')
+ .margin({ top: 50 })
+ .onClick(() => {
+ this.videoController.start();
+ })
+ }.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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bdc2321baf890fc2eb9f6c996bfede4083bc8dc3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0010.ets
@@ -0,0 +1,105 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, LoadingDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0010 {
+ @State index: number = 0
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0010_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0010_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Column() {
+ EditableTitleBar({
+ title: 'title',
+ subtitle: 'subtitle',
+ menuItems: [],
+ onCancel: () => {
+
+ },
+ onSave: () => {
+
+ }
+ })
+ }
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1b3ac7a92e74c85b836a147fb70b04eebbac1754
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0020.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 { AlertDialog } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, LoadingDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0020 {
+ @State index:number = 0;
+ private testCases :CustomTheme[]=[
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ dialogControllerProgress: CustomDialogController = new CustomDialogController({
+ builder: LoadingDialog({
+ content: '文本文本文本文本文本...',
+ theme: this.customTheme,
+ }),
+ })
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0020_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0020_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ Button('LoadingDialog')
+ .id('SUBAceThemeComponentStyleswitch0020_001')
+ .onClick(() => {
+ this.dialogControllerProgress.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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0211cb3b037e44732d08d1bac0407c1584f6c308
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0030.ets
@@ -0,0 +1,117 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, TipsDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0030 {
+ @State index:number =0
+ private testCases :CustomTheme[]=[
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex =0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ dialogControllerImage: CustomDialogController = new CustomDialogController({
+ builder: TipsDialog({
+ imageRes: 'cat.jpg',
+ content: '想要卸载这个APP嘛?',
+ primaryButton: {
+ value: '取消',
+ action: () => {
+ console.info('Callback when the first button is clicked')
+ },
+ },
+ secondaryButton: {
+ value: '删除',
+ role: ButtonRole.ERROR,
+ action: () => {
+ console.info('Callback when the second button is clicked')
+ }
+ },
+ onCheckedChange: () => {
+ console.info('Callback when the checkbox is clicked')
+ },
+ theme: this.customTheme,
+ }),
+ })
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0030_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0030_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ Button('TipsDialog')
+ .id('SUBAceThemeComponentStyleswitch0030_001')
+ .onClick(() => {
+ this.dialogControllerImage.open()
+ })
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..70f6dadc5fda2c346bc4fe605c022262925e68dc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0040.ets
@@ -0,0 +1,120 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, ConfirmDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0040 {
+ @State index:number =0
+ private testCases :CustomTheme[]=[
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex =0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ dialogControllerCheckBox: CustomDialogController = new CustomDialogController({
+ builder: ConfirmDialog({
+ title: '文本标题',
+ content: '文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本',
+ isChecked: this.isChecked,
+ checkTips: '禁止后不再提示',
+ primaryButton: {
+ value: '禁止',
+ action: () => {},
+ },
+ secondaryButton: {
+ value: '允许',
+ action: () => {
+ this.isChecked = false
+ console.info('Callback when the second button is clicked')
+ }
+ },
+ onCheckedChange: () => {
+ console.info('Callback when the checkbox is clicked')
+ },
+ theme: this.customTheme,
+ }),
+ autoCancel: true,
+ customStyle: true,
+ alignment: DialogAlignment.Bottom
+ })
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0040_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0040_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ Button('ConfirmDialog')
+ .id('SUBAceThemeComponentStyleswitch0040_001')
+ .onClick(() => {
+ this.dialogControllerCheckBox.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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..034a0db3b2fc003458e4493e8f955659ec3f26a2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0050.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 { AlertDialog } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, LoadingDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0050 {
+ @State index:number =0
+ private testCases :CustomTheme[]=[
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex =0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ dialogControllerConfirm: CustomDialogController = new CustomDialogController({
+ builder: AlertDialog({
+ primaryTitle: '弹框一级标题',
+ secondaryTitle: '弹框二级标题',
+ content: '文本文本文本文本文本',
+ primaryButton: {
+ value: '取消',
+ action: () => {
+ },
+ },
+ secondaryButton: {
+ value: '确认',
+ role: ButtonRole.ERROR,
+ action: () => {
+ console.info('Callback when the second button is clicked')
+ }
+ },
+ theme: this.customTheme,
+ }),
+ });
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0050_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0050_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ Button('AlertDialog')
+ .id('SUBAceThemeComponentStyleswitch0050_001')
+ .onClick(() => {
+ this.dialogControllerConfirm.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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f8a8567ef655ed8f84f16d1fb954126e02f154d1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0060.ets
@@ -0,0 +1,126 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, SelectDialog } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, LoadingDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0060 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ dialogControllerList: CustomDialogController = new CustomDialogController({
+ builder: SelectDialog({
+ title: '文本标题',
+ selectedIndex: this.radioIndex,
+ confirm: {
+ value: '取消',
+ action: () => {},
+ },
+ radioContent: [
+ {
+ title: '文本文本文本文本文本',
+ action: () => {
+ this.radioIndex = 0
+ }
+ },
+ {
+ title: '文本文本文本文本',
+ action: () => {
+ this.radioIndex = 1
+ }
+ },
+ {
+ title: '文本文本文本文本',
+ action: () => {
+ this.radioIndex = 2
+ }
+ },
+ ],
+ theme: this.customTheme,
+ }),
+ })
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0060_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0060_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ Button('SelectDialog')
+ .id('SUBAceThemeComponentStyleswitch0060_001')
+ .onClick(() => {
+ this.dialogControllerList.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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b42792975d8df6df5d1decb287dc918db59232f4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0070.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 { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, LoadingDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0070 {
+ @State index: number = 0
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ data: string[] = [];
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ aboutToAppear(): void {
+ for (let i = 0; i < 10; i++) {
+ this.data.push(i.toString());
+ }
+ }
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0070_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0070_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Swiper() {
+ ForEach(this.data, (item: string) => {
+ Text(item.toString())
+ .width('90%')
+ .height(160)
+ .backgroundColor(0xAFEEEE)
+ .textAlign(TextAlign.Center)
+ .fontSize(30)
+ })
+ }
+ .indicator(new DotIndicator())
+ .displayArrow({
+ showBackground: true,
+ backgroundSize: '30vp',
+ }, false)
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..642020ea194a43153f3cbb138a2b8038acee0272
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0080.ets
@@ -0,0 +1,93 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, LoadingDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0080 {
+ @State index: number = 0
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0080_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0080_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Text('WithTheme_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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f7a5ba50fbaa5e3c4d0eca33b10ce9e4c8b3de10
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0100.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 { AlertDialog, EditableTitleBar, OperationType, promptAction, SubHeader } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0100 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0100_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0100_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ SubHeader({
+ icon: '',
+ primaryTitle: '一级标题',
+ secondaryTitle: '二级标题',
+ operationType: OperationType.TEXT_ARROW,
+ operationItem: [{ value: '更多',
+ action: () => {
+ promptAction.showToast({ message: 'demo' })
+ }
+ }]
+ })
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9cd0683cc71ebab4b6c3c979531fb61fb650c187
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0110.ets
@@ -0,0 +1,93 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, LoadingDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0110 {
+ @State index: number = 0
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0110_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0110_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Progress({ value: 30, type: ProgressType.Linear }).width(200)
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5f8c1d3188c86a3107895e6189dfd7d27d2fc554
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0120.ets
@@ -0,0 +1,195 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar, ProgressButton } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0120 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ @State halfProgress: number = 0
+ @State smallProgress: number = 0
+ @State bigProgress: number = 0
+ @State textState1: string = ''
+ @State isRunning1: boolean = false
+ @State enableState1: boolean = true
+ @State progressState: Visibility = Visibility.None
+ @State ButtonState: Visibility = Visibility.Visible
+ @State buttonText: string = '下载'
+ @State buttonEnable: boolean = true
+ @State isEnd: boolean = false
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0120_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0120_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Column({ space: 20 }) {
+ Text('下载按钮')
+ Button(this.buttonText)
+ .id('SUBAceThemeComponentStyleswitch0120_001')
+ .fontSize($r('sys.float.ohos_id_text_size_button3'))
+ .fontWeight(FontWeight.Medium)
+ .padding({ left: 8, right: 8 })
+ .opacity(this.buttonEnable ? 1 : 0.4)
+ .enabled(this.buttonEnable)
+ .height(28)
+ .borderRadius(14)
+ .width(60)
+ .onClick(() => {
+ if (!this.isEnd) {
+ this.buttonText = '等待中'
+ let timer1 = setInterval(() => {
+ this.progressState = Visibility.Visible
+ this.ButtonState = Visibility.None
+ clearInterval(timer1)
+ this.isRunning1 = true
+ let timer = setInterval(() => {
+ if (this.isRunning1) {
+ if (this.halfProgress === 100) {
+ this.isEnd = true
+ } else {
+ this.halfProgress++
+ if (this.halfProgress === 100) {
+ this.textState1 = '安装中'
+ this.enableState1 = false
+ this.ButtonState = Visibility.Visible
+ this.progressState = Visibility.None
+ this.buttonEnable = false
+ this.buttonText = '安装中'
+ let timer2 = setInterval(() => {
+ this.buttonText = '打开'
+ this.buttonEnable = true
+ this.isEnd = true
+ clearInterval(timer2)
+ }, 2000)
+ }
+ console.info('x progress++ = ' + this.halfProgress)
+ }
+ } else {
+ console.info('x isRunning = ' + false)
+ clearInterval(timer)
+ }
+ }, 100)
+ }, 2000)
+ }
+ })
+ .visibility(this.ButtonState)
+ ProgressButton({
+ progress: this.halfProgress,
+ progressButtonWidth: "60",
+ content: this.textState1,
+ enable: this.enableState1,
+
+ clickCallback: () => {
+ if (this.isRunning1 && this.halfProgress < 100) {
+ this.textState1 = '继续'
+ }
+ this.isRunning1 = !this.isRunning1
+ let timer = setInterval(() => {
+
+ if (this.isRunning1) {
+ if (this.halfProgress === 100) {
+ } else {
+ this.halfProgress++
+ if (this.halfProgress === 100) {
+ this.textState1 = '安装中'
+ this.enableState1 = false
+ this.ButtonState = Visibility.Visible
+ this.progressState = Visibility.None
+ this.buttonEnable = false
+ this.buttonText = '安装中'
+ let timer2 = setInterval(() => {
+ this.buttonText = '打开'
+ this.buttonEnable = true
+ this.isEnd = true
+ clearInterval(timer2)
+ }, 2000)
+ }
+ console.info('x progress++ = ' + this.halfProgress)
+ }
+ } else {
+ console.info('x isRunning = ' + false)
+ clearInterval(timer)
+ }
+ }, 100)
+ }
+ }).visibility(this.progressState)
+ }.alignItems(HorizontalAlign.Center).width('100%')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f3f3c1856dd38934c6b97915c9358b3b320f4449
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0140.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 { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0140 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ private arrayA: string[] = ['安'];
+ private arrayB: string[] = ['卜', '白', '包', '毕', '丙'];
+ private arrayC: string[] = ['曹', '成', '陈', '催'];
+ private arrayL: string[] = ['刘', '李', '楼', '梁', '雷', '吕', '柳', '卢'];
+ private value: string[] = ['#', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
+ 'H', 'I', 'J', 'K', 'L', 'M', 'N',
+ 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
+ 'V', 'W', 'X', 'Y', 'Z'];
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0140_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0140_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Column(){
+ AlphabetIndexer({ arrayValue: this.value, selected: 1 })
+ .usingPopup(true)
+ .onSelect((index: number) => {
+ console.info(this.value[index] + ' Selected!')
+ })
+ .onRequestPopupData((index: number) => {
+ if (this.value[index] == 'A') {
+ return this.arrayA
+ } else if (this.value[index] == 'B') {
+ return this.arrayB
+ } else if (this.value[index] == 'C') {
+ return this.arrayC
+ } else if (this.value[index] == 'L') {
+ return this.arrayL
+ } else {
+ return []
+ }
+ })
+ .onPopupSelect((index: number) => {
+ console.info('onPopupSelected:' + index)
+ })
+ }
+ .height('80%')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d7cbcde0dd185a2dde91bd031d91f67e39624599
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0150.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 { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0150 {
+ @State index: number = 0
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ scroller: Scroller = new Scroller()
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0150_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0150_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Stack({ alignContent: Alignment.TopStart }) {
+ Scroll(this.scroller) {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(item.toString())
+ .width('90%')
+ .height(150)
+ .backgroundColor('#ff285fcd')
+ .borderRadius(15)
+ .fontSize(16)
+ .textAlign(TextAlign.Center)
+ .margin({ top: 10 })
+ }, (item: string) => item)
+ }.width('100%')
+ }
+ }
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4264557b39e8b822a10eeb32488a95ee2701fc38
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0160.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 { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0160 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0160_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0160_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ List({ space: 12 }) {
+ ListItem() {
+ Badge({
+ value: 'New',
+ position: BadgePosition.Right,
+ style: { badgeSize: 16 }
+ }) {
+ Text('list2').width(27).height(19).fontSize(14).fontColor('#182431')
+ }.width(49.5).height(19)
+ .margin({ left: 12 })
+ }
+ .width('100%')
+ .height(56)
+ .backgroundColor('#FFFFFF')
+ .borderRadius(24)
+ .align(Alignment.Start)
+ }.width(336)
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..da40408761411e66154c3d266576dd97f147929e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0170.ets
@@ -0,0 +1,129 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar, Popup,
+ PopupButtonOptions,
+ PopupIconOptions, PopupTextOptions } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0170 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0170_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0170_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Popup({
+ icon: {
+ image: 'cat.jpg',
+ width:32,
+ height:32,
+ borderRadius: 16
+ } as PopupIconOptions,
+ title: {
+ text: 'This is a popup with PopupOptions',
+ fontSize: 20,
+ fontWeight: FontWeight.Normal
+ } as PopupTextOptions,
+ message: {
+ text: 'This is the message',
+ fontSize: 15,
+ } as PopupTextOptions,
+ showClose: false,
+ onClose: () => {
+ console.info('close Button click')
+ },
+ buttons: [{
+ text: 'confirm',
+ action: () => {
+ console.info('confirm button click')
+ },
+ fontSize: 15,
+ },
+ {
+ text: 'cancel',
+ action: () => {
+ console.info('cancel button click')
+ },
+ fontSize: 15,
+ },] as [PopupButtonOptions?, PopupButtonOptions?]
+ })
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3fa44c6c52fee4b8c921bd3918a159d82b5be071
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0180.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.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0180 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0180_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0180_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Select([{ value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .selected(0)
+ .value('Select')
+ .id('SUBAceThemeComponentStyleswitch0180_001')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8e7055ec06ae0167e51d7d71fbd050a169835f7c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0190.ets
@@ -0,0 +1,96 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0190 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0190_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0190_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Toggle({ type: ToggleType.Switch, isOn: true })
+ .onChange((isOn: boolean) => {
+ console.info('Component status:' + isOn)
+ })
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3ab81b8b9cf48bdb84eb88c37672f67971680d1f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0200.ets
@@ -0,0 +1,144 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { ToolBar, ToolBarOptions } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+enum ItemState {
+ ENABLE = 1,
+ DISABLE = 2,
+ ACTIVATE = 3
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0200 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ @State toolbarList: ToolBarOptions = new ToolBarOptions()
+ aboutToAppear() {
+ this.toolbarList.push({
+ content: '剪贴我是超超超超超超超超超长样式',
+ icon: $r('sys.media.ohos_ic_public_share'),
+ action: () => {
+ },
+ })
+ this.toolbarList.push({
+ content: '拷贝',
+ icon: $r('sys.media.ohos_ic_public_copy'),
+ action: () => {
+ },
+ state:ItemState.DISABLE
+ })
+ this.toolbarList.push({
+ content: '粘贴',
+ icon: $r('sys.media.ohos_ic_public_paste'),
+ action: () => {
+ },
+ state:ItemState.ACTIVATE
+ })
+ this.toolbarList.push({
+ content: '全选',
+ icon: $r('sys.media.ohos_ic_public_select_all'),
+ action: () => {
+ },
+ })
+ this.toolbarList.push({
+ content: '分享',
+ icon: $r('sys.media.ohos_ic_public_share'),
+ action: () => {
+ },
+ })
+ this.toolbarList.push({
+ content: '分享',
+ icon: $r('sys.media.ohos_ic_public_share'),
+ action: () => {
+ },
+ })
+ }
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0200_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0200_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ ToolBar({
+ activateIndex: 2,
+ toolBarList: this.toolbarList,
+ })
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3a29eb12476822c31aba9aeedf7ba7b612b864f9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0210.ets
@@ -0,0 +1,126 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0210 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ @State select: boolean = true
+
+ @Builder
+ SubMenu() {
+ WithTheme({ theme: this.customTheme }) {
+ Menu() {
+ MenuItem({ content: "复制", labelInfo: "Ctrl+C" })
+ MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" })
+ }
+ }
+ }
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0210_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0210_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Menu() {
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ .enabled(false)
+ MenuItem({
+ content: "菜单选项",
+ builder: ():void=>this.SubMenu()
+ })
+ MenuItemGroup({ header: '小标题' }) {
+ MenuItem({
+ content: "菜单选项",
+ builder: ():void=>this.SubMenu()
+ })
+ MenuItem({
+ startIcon: $r("app.media.app_icon"),
+ content: "菜单选项",
+ builder: ():void=>this.SubMenu()
+ })
+ }
+ MenuItem({
+ content: "菜单选项",
+ })
+ }
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..aa04ade663dbfddf415c17f1d1d5854fe950c853
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0220.ets
@@ -0,0 +1,96 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0220 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0220_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0220_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ TextInput({ text: 'input' })
+ .width('95%')
+ .height(50)
+ .margin(20)
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dd8724da1b55acf318557eb1f6a3a5733062d4f7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0230.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.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0230 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme | undefined = undefined;
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0230_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0230_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Search({ value: 'Search', placeholder: 'Type to search...' })
+ .searchButton('SEARCH')
+ .cancelButton({
+ style: CancelButtonStyle.CONSTANT,
+ })
+ .width('90%')
+ .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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..43be12d2c9e2b3a05f0a3524c0e28a41c523a691
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0240.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 { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0240 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ @State value: number = 0
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0240_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0240_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Counter() {
+ Text(this.value.toString())
+ }.margin(100)
+ .onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a4975d5520ecb266b057a72c124ea32326b4a6af
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0250.ets
@@ -0,0 +1,93 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0250 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0250_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0250_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ PatternLock()
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..467c2e2140c50711b73657d4e260d7baa6153df8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0260.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 { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0260 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0260_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0260_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Column({ space: '8vp'}) {
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .select(true)
+ .shape(CheckBoxShape.CIRCLE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox1 change is' + value)
+ })
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .select(false)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox2 change is' + 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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fdd6b103a1842adfef64dc2bfbe2930421effce6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0270.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.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0270 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0270_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0270_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Column() {
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectAll(true)
+ }
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ }
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectAll(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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d4a951bebcbba229a433482db684a92acd7a97f7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0280.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 { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0280 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0280_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0280_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Column() {
+ Radio({ value: 'Radio1', group: 'radioGroup' })
+ .checked(true)
+ .height(50)
+ .width(50)
+ Radio({ value: 'Radio2', group: 'radioGroup' })
+ .height(50)
+ .width(50)
+ }.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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..534630959cf596425a3dfb6e414dbd996299039c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0290.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.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0290 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0290_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0290_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Slider({
+ value: 40,
+ min: 0,
+ max: 100,
+ style: SliderStyle.OutSet
+ })
+ .showTips(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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4433b24a13dc5834aa4d05129f6e0eb1f1f92055
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0300.ets
@@ -0,0 +1,93 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0300 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0300_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0300_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ TimePicker({})
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e13c3fc69f7876b043d9a768870a151764f4a59e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0310.ets
@@ -0,0 +1,96 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0310 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0310_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0310_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ 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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..82d0a9d17557a1e8942faa44a1a03ab1c92fab2f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0320.ets
@@ -0,0 +1,98 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0320 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ private select: number = 1
+ private apfruits: string[] = ['apple1', 'apple2', 'apple3', 'apple4']
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0320_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0320_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ TextPicker({ range: this.apfruits, selected: this.select })
+ .onChange((value: string | string[], index: number | number[]) => {
+ console.info('Picker item changed, value: ' + value + ', index: ' + index)
+ })
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0330.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b5c64d0e7cda4762a75a07c4d4ea18136e657a5c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0330.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 { AlertDialog, ComposeListItem, EditableTitleBar, IconType, promptAction } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0330 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0330_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0330_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ List() {
+ ListItem() {
+ ComposeListItem({
+ contentItem: ({
+ iconStyle: IconType.NORMAL_ICON,
+ icon: $r('sys.media.ohos_app_icon'),
+ primaryText: '双行列表',
+ secondaryText: '辅助文字',
+ description: '描述内容文字'
+ }),
+ operateItem: ({
+ icon: {
+ value: $r('sys.media.ohos_app_icon'),
+ action: () => {
+ promptAction.showToast({ message: 'icon' });
+ }
+ },
+ 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/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0340.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8444483adf4ad5e0fd45acc1cadf4db7033e7daf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0340.ets
@@ -0,0 +1,93 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct SUBAceThemeComponentStyleswitch0340 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0340_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('SUBAceThemeComponentStyleswitch0340_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ QRCode('hello world').width(140).height(140)
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/theme_Param/CustomColorslmlp.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/theme_Param/CustomColorslmlp.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c6ed17bc9fb80d6d3e53218ae756bedc1080b15c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBAceThemeComponentStyleswitch/theme_Param/CustomColorslmlp.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.
+ */
+
+import { CustomColors } from '@ohos.arkui.theme'
+
+export class RedColors implements CustomColors {
+ fontEmphasize = '#FFD53032'
+ compBackgroundTertiary = '#FFD53032'
+ interactivePressed = '#ff56cfe3'
+ backgroundEmphasize = '#FFD00000'
+ iconOnPrimary = '#ff8fdd5b'
+ iconFourth = '#FFD00000'
+ iconEmphasize = '#FFD53032'
+ backgroundPrimary = '#FFD53032'
+ backgroundSecondary = '#33FF1111'
+ backgroundTertiary = '#44FF2222'
+ compBackgroundEmphasize = '#ff56cfe3'
+ compEmphasizeSecondary = '#33FF1111'
+ iconPrimary = '#FFD53032'
+ fontPrimary = '#a6a331f3'
+ fontSecondary = '#33FF1111'
+ interactiveHover = '#ff8fdd5b'
+ interactiveFocus = '#FFD53032'
+ compBackgroundSecondary = '#33FF1111'
+ iconSecondary = '#33FF1111'
+ warning = '#33FF1111'
+ compDivider = '#33FF1111'
+ compBackgroundPrimary = '#33FF1111'
+ compBackgroundPrimaryContrary = '#33FF1111'
+ iconTertiary = '#33FF1111'
+ icon_secondary = '#33FF1111'
+ compFocusedTertiary = '#33FF1111'
+ brand = '#33FF1111'
+ compBackgroundNeutral = '#33FF1111'
+ fontTertiary = '#FFD00000'
+ interactiveActive = '#3311ff15'
+ compForegroundPrimary = '#ff8fdd5b'
+}
+
+export class GreenColors implements CustomColors {
+ fontEmphasize = 'rgb(0, 128, 0)'
+ iconOnPrimary = 'rgb(226, 132, 96)'
+ iconFourth = 'rgb(0, 128, 0)'
+ iconEmphasize = 'rgb(0, 128, 0)'
+ backgroundPrimary = 'rgb(0, 128, 0)'
+ backgroundSecondary = 'rgb(8, 33, 1)'
+ backgroundTertiary = 'rgb(128, 128, 0)'
+ backgroundEmphasize = 'rgb(22, 83, 5)'
+ compBackgroundEmphasize = 'rgb(128, 97, 238)'
+ compEmphasizeSecondary = 'rgb(8, 33, 1)'
+ iconPrimary = 'rgb(0, 128, 0)'
+ fontPrimary = 'rgb(224, 21, 69)'
+ fontSecondary = 'rgb(219, 93, 158)'
+ compBackgroundTertiary = 'rgb(0, 128, 0)'
+ interactiveHover = 'rgb(226, 132, 96)'
+ interactivePressed = 'rgb(224, 21, 69)'
+ interactiveFocus = 'rgb(0, 128, 0)'
+ compBackgroundSecondary = 'rgb(22, 83, 5)'
+ iconSecondary = 'rgb(22, 83, 5)'
+ warning = 'rgb(22, 83, 5)'
+ compDivider = 'rgb(22, 83, 5)'
+ compBackgroundPrimary = 'rgb(8, 33, 1)'
+ compBackgroundPrimaryContrary = 'rgb(8, 33, 1)'
+ iconTertiary = 'rgb(8, 33, 1)'
+ icon_secondary = 'rgb(8, 33, 1)'
+ compFocusedTertiary = 'rgb(8, 33, 1)'
+ brand = 'rgb(8, 33, 1)'
+ compBackgroundNeutral = 'rgb(8, 33, 1)'
+ fontTertiary = 'rgba(185, 117, 214, 1.00)'
+ interactiveActive = 'rgba(33, 1, 18, 1.00)'
+ compForegroundPrimary = 'rgb(185, 117, 214)'
+}
+
+export class YellowColors implements CustomColors {
+ fontEmphasize = Color.Yellow
+ iconOnPrimary = Color.Orange
+ iconFourth = Color.Yellow
+ iconEmphasize = Color.Yellow
+ backgroundPrimary = Color.Yellow
+ backgroundSecondary = Color.Orange
+ backgroundTertiary = Color.Orange
+ backgroundEmphasize = Color.Yellow
+ compBackgroundEmphasize = Color.Pink
+ compEmphasizeSecondary = Color.Orange
+ iconPrimary = Color.Yellow
+ fontPrimary = Color.Orange
+ fontSecondary = Color.Blue
+ compBackgroundTertiary = Color.Yellow
+ interactiveHover = Color.Brown
+ interactivePressed = Color.Red
+ interactiveFocus = Color.Yellow
+ compBackgroundSecondary = Color.Brown
+ iconSecondary = Color.Brown
+ warning = Color.Brown
+ compDivider = Color.Brown
+ compBackgroundPrimary = Color.Brown
+ compBackgroundPrimaryContrary = Color.Brown
+ iconTertiary = Color.Brown
+ icon_secondary = Color.Brown
+ compFocusedTertiary = Color.Brown
+ brand = Color.Brown
+ compBackgroundNeutral = Color.Brown
+ fontTertiary = Color.Green
+ interactiveActive = Color.Brown
+ compForegroundPrimary = Color.Pink
+}
+
+export class BrownColors implements CustomColors {
+ fontEmphasize = 0xFF8B6B5C
+ iconOnPrimary = 0xFFE28460
+ iconFourth = 0xFF8B6B5C
+ iconEmphasize = 0xFF8B6B5C
+ backgroundPrimary = 0xFF8B6B5C
+ backgroundSecondary = 0x33556B55
+ backgroundTertiary = 0x44556B55
+ backgroundEmphasize = 0xFF8B6B5C
+ compBackgroundEmphasize = 0xFF8B6B5C
+ compEmphasizeSecondary = 0x33556B55
+ iconPrimary = 0xFF8B6B5C
+ fontPrimary = 0xFF067006
+ fontSecondary = 0xFFA434A7
+ compBackgroundTertiary = 0xFF8B6B5C
+ interactiveHover = 0xFFE28460
+ interactivePressed = 0xE6D95279
+ interactiveFocus = 0xFF067006
+ compBackgroundSecondary = 0xFFFFFFFF
+ iconSecondary = 0xFFFFFFFF
+ warning = 0xFFFFFFFF
+ compDivider = 0xFFFFFFFF
+ compBackgroundPrimary = 0xFFFFFFFF
+ compBackgroundPrimaryContrary = 0xFFFFFFFF
+ iconTertiary = 0xFFFFFFFF
+ icon_secondary = 0xFFFFFFFF
+ compFocusedTertiary = 0xFFFFFFFF
+ brand = 0xFFFFFFFF
+ compBackgroundNeutral = 0xFFFFFFFF
+ fontTertiary = 0xFF6CA6EC
+ interactiveActive = 0xFFFFFFFF
+ compForegroundPrimary = 0x33556B55
+}
+
+export const RedThemeColors = new RedColors()
+
+export const GreenThemeColors = new GreenColors()
+
+export const BrownThemeColors = new BrownColors()
+
+export const YellowThemeColors = new YellowColors()
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommoneventEventInterface/SubAceActionEventCommoneventEventInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommoneventEventInterface/SubAceActionEventCommoneventEventInterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..df0cb2a687168faabfda7debfed04cdf56fcc7fd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommoneventEventInterface/SubAceActionEventCommoneventEventInterface0070.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 { AlertDialog, EditableTitleBar, OperationType, promptAction, SubHeader } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct SubAceActionEventCommoneventEventInterface0130 {
+ @State num:number=0;
+ @State stackS1: string = 'Stack1 触发事件---->';
+ @State stackS2: string = 'Stack2 触发事件---->';
+ @State stackS3: string = 'Stack3 触发事件---->';
+ @State buttonS1: string = 'Button 触发事件---->';
+ @State message: string = "事件结果:---->";
+
+ build() {
+ Column() {
+ Text(this.message)
+ .fontSize(16)
+ Stack({ alignContent: Alignment.End }) {
+ Stack({ alignContent: Alignment.Center }) {
+
+ }
+ .onClick(() => {
+ this.num+=1;
+ this.message += this.stackS2+this.num+ '\n';
+ })
+ .onTouchIntercept((event: TouchEvent) => {
+ console.log("OnTouchIntercept + " + JSON.stringify(event));
+ return HitTestMode.Default
+ })
+ .id('stack2')
+ .backgroundColor(Color.Green)
+ .width('90%')
+ .height("80%")
+
+ Stack({ alignContent: Alignment.Center }) {
+ Button("Button")
+ .id('button')
+ .onClick(() => {this.num+=1;
+
+ this.message += this.buttonS1+this.num + '\n';
+ })
+ }
+ .onClick(() => {
+ this.num+=1;
+ this.message += this.stackS3+this.num+ '\n';
+ })
+ .onTouchIntercept((event: TouchEvent) => {
+ console.log("OnTouchIntercept + " + JSON.stringify(event));
+ return HitTestMode.Default
+ })
+ .id('stack3')
+ .backgroundColor(Color.Red)
+ .width('70%')
+ .height("50%")
+ }
+ .onTouchIntercept((event: TouchEvent) => {
+ console.log("OnTouchIntercept + " + JSON.stringify(event));
+ return HitTestMode.Default
+
+ })
+ .id('stack1')
+ .onClick(() => {
+ this.num+=1;
+ this.message += this.stackS1+this.num + '\n';
+ })
+ .backgroundColor(Color.Blue)
+ .width('100%')
+ .height("80%")
+ }
+ .width('100%')
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommoneventEventInterface/SubAceActionEventCommoneventEventInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommoneventEventInterface/SubAceActionEventCommoneventEventInterface0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e1c50f9db95e79f978a95fe6dd72349855b8db8e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommoneventEventInterface/SubAceActionEventCommoneventEventInterface0130.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 { AlertDialog, EditableTitleBar, OperationType, promptAction, SubHeader } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct SubAceActionEventCommoneventEventInterface0130 {
+ @State num:number=0;
+ @State stackS1: string = 'Stack1 触发事件---->';
+ @State stackS2: string = 'Stack2 触发事件---->';
+ @State stackS3: string = 'Stack3 触发事件---->';
+ @State buttonS1: string = 'Button 触发事件---->';
+ @State message: string = "事件结果:---->";
+
+ build() {
+ Column() {
+ Text(this.message)
+ .fontSize(16)
+ Stack({ alignContent: Alignment.End }) {
+ Stack({ alignContent: Alignment.Center }) {
+
+ }
+ .onClick(() => {
+ this.num+=1;
+ this.message += this.stackS2+this.num+ '\n';
+ })
+ .onTouchIntercept((event: TouchEvent) => {
+ console.log("OnTouchIntercept + " + JSON.stringify(event));
+ return HitTestMode.None
+ })
+ .id('stack2')
+ .backgroundColor(Color.Green)
+ .width('90%')
+ .height("80%")
+
+ Stack({ alignContent: Alignment.Center }) {
+ Button("Button")
+ .id('button')
+ .onClick(() => {this.num+=1;
+
+ this.message += this.buttonS1+this.num + '\n';
+ })
+ }
+ .onClick(() => {
+ this.num+=1;
+ this.message += this.stackS3+this.num+ '\n';
+ })
+ .onTouchIntercept((event: TouchEvent) => {
+ console.log("OnTouchIntercept + " + JSON.stringify(event));
+ return HitTestMode.None
+ })
+ .id('stack3')
+ .backgroundColor(Color.Red)
+ .width('70%')
+ .height("50%")
+ }
+ .onTouchIntercept((event: TouchEvent) => {
+ console.log("OnTouchIntercept + " + JSON.stringify(event));
+ return HitTestMode.Default
+
+ })
+ .id('stack1')
+ .onClick(() => {
+ this.num+=1;
+ this.message += this.stackS1+this.num + '\n';
+ })
+ .backgroundColor(Color.Blue)
+ .width('100%')
+ .height("80%")
+ }
+ .width('100%')
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceResourcemanagerSubject/SubAceResourcemanagerSubject0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceResourcemanagerSubject/SubAceResourcemanagerSubject0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d3c04d469144a0797c660c05d576cab0d92b13ab
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceResourcemanagerSubject/SubAceResourcemanagerSubject0010.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 { AlertDialog, EditableTitleBar, OperationType, promptAction, SubHeader } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct SubAceResourcemanagerSubject0010 {
+ build() {
+ Column() {
+ // 系统默认
+ Column() {
+ Text('无WithTheme')
+ .fontSize(40)
+ .fontWeight(FontWeight.Bold)
+ }
+ .justifyContent(FlexAlign.Center)
+ .width('100%')
+ .height('33%')
+ .backgroundColor($r('sys.color.background_primary'))
+
+ // 设置组件为深色模式
+ WithTheme({ colorMode: ThemeColorMode.DARK }) {
+ Column() {
+ Text('WithTheme')
+ .fontSize(40)
+ .fontWeight(FontWeight.Bold)
+ Text('DARK')
+ .fontSize(40)
+ .fontWeight(FontWeight.Bold)
+ }
+ .justifyContent(FlexAlign.Center)
+ .width('100%')
+ .height('33%')
+ .backgroundColor($r('sys.color.background_primary'))
+ }
+
+ // 设置组件为浅色模式
+ WithTheme({ colorMode: ThemeColorMode.LIGHT }) {
+ Column() {
+ Text('WithTheme')
+ .fontSize(40)
+ .fontWeight(FontWeight.Bold)
+ Text('LIGHT')
+ .fontSize(40)
+ .fontWeight(FontWeight.Bold)
+ }
+ .justifyContent(FlexAlign.Center)
+ .width('100%')
+ .height('33%')
+ .backgroundColor($r('sys.color.background_primary'))
+ }
+ }
+ .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/TestCase249cf82ec62c4410a12f43d962681d5b.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase249cf82ec62c4410a12f43d962681d5b.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e21ce03cf59374f5af9f5998d4ce17eb17905c8c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase249cf82ec62c4410a12f43d962681d5b.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 TestCase249cf82ec62c4410a12f43d962681d5b {
+ iterNoList: number[] = [1, 2, 3];
+
+ build() {
+ Column({ space: 20 }) {
+ ForEach(this.iterNoList, (item: string)=>{
+ Text('测试文本')
+ .fontSize($r(`app.intarray.intarray_${item}`, 1, item))
+ .width(100)
+ .height(50)
+ })
+ }.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/TestCase28e03736992e4ecea430931612e3c556.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase28e03736992e4ecea430931612e3c556.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2d0db05a71a7a795c98703eb5b5161a274173922
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase28e03736992e4ecea430931612e3c556.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct TestCase28e03736992e4ecea430931612e3c556 {
+ iterNoList: string[] = ['base', 'child'];
+
+ build() {
+ Column({ space: 20 }) {
+ ForEach(this.iterNoList, (iterNo: string) => {
+ Text($r(`app.theme.${iterNo}`, 1))
+ })
+
+ }.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/TestCase4c0f78ffa2494ff8aa24be9cf0b65243.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase4c0f78ffa2494ff8aa24be9cf0b65243.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4bbf446e8f2e24edf8fa36f4a6b205eec89a5ec8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase4c0f78ffa2494ff8aa24be9cf0b65243.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 TestCase4c0f78ffa2494ff8aa24be9cf0b65243 {
+ iterNoList: number[] = [1, 2, 3]
+
+ build() {
+ Column({ space: 20 }) {
+ ForEach(this.iterNoList, (item: number)=>{
+ Text($r(`app.plural.plural_${item}`, 1, item))
+ .width(100)
+ .height(50)
+ })
+ }
+ .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/TestCase56613681deb7487b8168ea008f8d2b17.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase56613681deb7487b8168ea008f8d2b17.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5c58a577cb1108d31329630eb208af405b0e870e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase56613681deb7487b8168ea008f8d2b17.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 TestCase56613681deb7487b8168ea008f8d2b17 {
+ iterNoList: string[] = ['1', '2', '3'];
+
+ build() {
+ Column({ space: 20 }) {
+ ForEach(this.iterNoList, (iterNo: string) => {
+ Text('测试文本')
+ .fontSize($r(`app.integer.integer_${iterNo}`))
+ })
+
+ }.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/TestCase74086c77009a4074a2010acdeb67468a.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase74086c77009a4074a2010acdeb67468a.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5d60f1258a7ae56c92c0359933b99966cc42b79f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase74086c77009a4074a2010acdeb67468a.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 TestCase74086c77009a4074a2010acdeb67468a {
+ iterNoList: string[] = ['01', '02', '03'];
+
+ build() {
+ Column({ space: 20 }) {
+ ForEach(this.iterNoList, (iterNo: string) => {
+ Text('测试文本')
+ .width(100)
+ .height(50)
+ .textAlign(TextAlign.Center)
+ .backgroundColor($r(`app.color.color_${iterNo}`))
+ })
+
+ }.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_0a25f4ffc9c140118842be8455973975.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_0a25f4ffc9c140118842be8455973975.ets
new file mode 100644
index 0000000000000000000000000000000000000000..02f0843b00076cab420e4c491fc9aed057b6f881
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_0a25f4ffc9c140118842be8455973975.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 TestCase_0a25f4ffc9c140118842be8455973975 {
+ private iterNoList: number[] = [0, 1, 2]
+
+ build() {
+ Column({ space: 20 }) {
+ Text('TestCase_0a25f4ffc9c140118842be8455973975')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (itemNo: number) => {
+ Image($r('app.media.media_' + itemNo))
+ .width(200)
+ .height(200)
+ .objectFit(ImageFit.Cover)
+ }, (itemNo: number) => itemNo.toString())
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .backgroundColor(Color.Pink)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_1bfdd20e3f5544e49c612141698fd8ef.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_1bfdd20e3f5544e49c612141698fd8ef.ets
new file mode 100644
index 0000000000000000000000000000000000000000..39e120c44861c40fa9641928156fc852b653d1bc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_1bfdd20e3f5544e49c612141698fd8ef.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 TestCase_1bfdd20e3f5544e49c612141698fd8ef {
+ private iterNoList: number[] = [0, 3, 5]
+
+ build() {
+ Column({ space: 20 }) {
+ Text('TestCase_1bfdd20e3f5544e49c612141698fd8ef')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (itemNo: number) => {
+ Text('1bfdd20e3f5544e49c612141698fd8ef')
+ .fontSize($r('app.float.float_' + itemNo))
+ .fontWeight(FontWeight.Bold)
+ }, (itemNo: number) => itemNo.toString())
+ }
+ .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/TestCase_35e34cc405bd4e679be07d698aa8afbd.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_35e34cc405bd4e679be07d698aa8afbd.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ce41099518597920f8bf33290c5d100893f47142
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_35e34cc405bd4e679be07d698aa8afbd.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 TestCase_35e34cc405bd4e679be07d698aa8afbd {
+ private iterNoList: number[] = [0, 1, 2]
+
+ build() {
+ Column({ space: 20 }) {
+ Text('TestCase_35e34cc405bd4e679be07d698aa8afbd')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (itemNo: number) => {
+ Text($r('app.string.string_' + itemNo))
+ .fontSize(28)
+ .fontWeight(FontWeight.Bold)
+ }, (itemNo: number) => itemNo.toString())
+ }
+ .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/TestCase_f04ea52ddc7242c190e5ceb395dd5e9f.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_f04ea52ddc7242c190e5ceb395dd5e9f.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4efa44816b5d77bd3aee85625348ca117e75dc79
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_f04ea52ddc7242c190e5ceb395dd5e9f.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 TestCase_f04ea52ddc7242c190e5ceb395dd5e9f {
+ private iterNoList: number[] = [0, 1, 2]
+
+ build() {
+ Column({ space: 20 }) {
+ Text('TestCase_f04ea52ddc7242c190e5ceb395dd5e9f')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (itemNo: number) => {
+ Image($r('app.media.media_' + itemNo))
+ .width(200)
+ .height(200)
+ .objectFit(ImageFit.Cover)
+ }, (itemNo: number) => itemNo.toString())
+ }
+ .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/TestCase_f5d751b26dca4076b0ce1d181d74beaC.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_f5d751b26dca4076b0ce1d181d74beaC.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f7ffc11353a68b105bd13c20f5a8bb7efbb9182f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCase_f5d751b26dca4076b0ce1d181d74beaC.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 TestCase_f5d751b26dca4076b0ce1d181d74beaC {
+ private iterNoList: number[] = [0, 1, 2]
+
+ build() {
+ Column({ space: 20 }) {
+ Text('TestCase_f5d751b26dca4076b0ce1d181d74beaC')
+ .fontSize(16)
+
+ ForEach(this.iterNoList, (item: string) => {
+ Text($r('app.strarray.strarray_' + item))
+ .width(100)
+ .height(50)
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCasec691bac3146c44c9b98e2bfclf74f9d1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCasec691bac3146c44c9b98e2bfclf74f9d1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..44fed109c13b61c4a7df91e07b34cccbb3f9ce33
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCasec691bac3146c44c9b98e2bfclf74f9d1.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 TestCasec691bac3146c44c9b98e2bfclf74f9d1 {
+ iterNoList: string[] = ['1', '2', '3'];
+
+ build() {
+ Column({ space: 20 }) {
+ ForEach(this.iterNoList, (iterNo: string) => {
+ if($r(`app.boolean.boolean_${iterNo}`)){
+ Text('true')
+ }else {
+ Text('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/TestCase/TestCased82b91937eeb4cf88604d954ac86ae79.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCased82b91937eeb4cf88604d954ac86ae79.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1ebdbd46da3e88149997b87e80832e4d85e98e99
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TestCase/TestCased82b91937eeb4cf88604d954ac86ae79.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 TestCased82b91937eeb4cf88604d954ac86ae79 {
+ iterNoList: number[] = [1, 2];
+
+ build() {
+ Column({ space: 20 }) {
+ ForEach(this.iterNoList, (item: string)=>{
+ Text('测试文本')
+ .fontSize($r(`app.pattern.pattern_${item}`, 1, item))
+ .width(100)
+ .height(50)
+ })
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..38bd2d5392e37659951f5c0a8a0a6e9d8d517b99
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0010.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 { Container } from '@kit.ArkGraphics3D'
+
+@Entry
+@Component
+struct UIAttributesBlendModeBlendModeMix0010 {
+ @State isClick:boolean = false
+ onButtonClick(){
+ this.isClick = true
+ }
+ build() {
+ Column(){
+ Column(){
+
+ }
+ .blendMode(BlendMode.SRC_IN)
+ .backgroundColor(this.isClick == true ? Color.Transparent : Color.Pink)
+ .height(300).width('100%')
+ Button("NoChildNode")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..be60eebb9ad0b4921d400af516abe5dcac963745
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0020.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 UIAttributesBlendModeBlendModeMix0020 {
+ @State isbgcColor:boolean = false
+ @State isClick:boolean = false
+ @State opacity1:number = 1.0
+ onButtonClick(){
+ this.opacity1 = 0.5
+ this.isClick = true
+ this.isbgcColor = true
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件')
+ .backgroundColor(this.isbgcColor == true ? Color.Red : Color.Transparent)
+ .blendMode(BlendMode.SRC_IN)
+ .margin({left:100,top:50})
+ }.width('100%').height(200).backgroundColor(this.isbgcColor == true ? Color.Red : Color.Transparent)
+ .opacity(this.opacity1)
+ Button("NoChildNode")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6e3c841e33522550f4577b36d61e715160f85bd0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0030.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 UIAttributesBlendModeBlendModeMix0030 {
+ @State isClick:boolean = false
+ onButtonClick(){
+ this.isClick = true
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件').fontSize(20).fontColor(this.isClick == true ? Color.Green :Color.White)
+ .margin({left:50,top:50}).padding(10).backgroundColor('red')
+ }.width('100%').height(200).backgroundColor(Color.Green)
+ Button("OnlyOneNode")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ba0b145a0a58414e6c1ae9dad3e38afc5f739d74
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0040.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 { Container } from '@kit.ArkGraphics3D'
+
+@Entry
+@Component
+struct UIAttributesBlendModeBlendModeMix0040 {
+ @State isClick:boolean = false
+ onButtonClick(){
+ this.isClick = true
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White)
+ .margin({left:100,top:50}).position({x:50,y:50})
+ }.width('100%').height(200).backgroundColor(Color.Green)
+ Button("OnlyOneNode")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c0a81140ed872b83ba60cc71bee84463be007df4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0050.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 { Container } from '@kit.ArkGraphics3D'
+
+@Entry
+@Component
+struct UIAttributesBlendModeBlendModeMix0050 {
+ @State isClick:boolean = false
+ onButtonClick(){
+ this.isClick = true
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White)
+ .margin({left:100,top:50}).offset({x:30,y:10})
+ }.width('100%').height(200).backgroundColor(Color.Green)
+ Button("OnlyOneNode")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..30f9ccf824c3153067f4151fe80b54e99691821e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0060.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 UIAttributesBlendModeBlendModeMix0060 {
+ @State isClick:boolean = false
+ onButtonClick(){
+ this.isClick = true
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:100,top:50})
+ .border({width:2.5,color:Color.Blue,style:BorderStyle.Solid})
+ }.width('100%').height(200).backgroundColor(Color.Green)
+ Button("OnlyOneNode")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ecd4c7554cc3b711bdccff07527afce8d053095d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0070.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 UIAttributesBlendModeBlendModeMix0070 {
+ @State isClick:boolean =false
+ onButtonClick(){
+ this.isClick = true
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件1').fontSize(20).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:50,top:50})
+ Text('Text子组件2').fontSize(20).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:50,top:50})
+ Text('Text子组件3').fontSize(20).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:50,top:50})
+ }.width('100%').height(200).backgroundColor(Color.Green)
+ Button("ManyNode")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4fe08420e8dfc7c48e716fed85816fd841def4bf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0080.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 UIAttributesBlendModeBlendModeMix0080 {
+ @State isClick:boolean = false
+ onButtonClick(){
+ this.isClick = true
+ }
+ build() {
+ Column(){
+ Row(){
+ Row(){
+ Text('Text子组件').fontSize(20).fontColor(this.isClick == true ? Color.Pink :Color.White).margin({left:50,top:50})
+ }.width('100%').height(150).backgroundColor(Color.Pink)
+ }.width('100%').height(200).backgroundColor(Color.Green)
+ Button("ManyNode")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..20e36946bb04dc7497eb785a292b5e7a66eb0ea5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0090.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 { Container } from '@kit.ArkGraphics3D'
+
+@Entry
+@Component
+struct UIAttributesBlendModeBlendModeMix0090 {
+ @State isClick:boolean = false
+ onButtonClick(){
+ this.isClick = true
+ }
+ build() {
+ Column(){
+ Row(){
+ Row(){
+ Text('Text子组件1').fontSize(20).fontColor(this.isClick == true ? Color.Pink : Color.White)
+ .margin({left:20,top:50})
+ Text('Text子组件2').fontSize(20).fontColor(this.isClick == true ? Color.Pink : Color.White)
+ .margin({left:20,top:50})
+ Text('Text子组件3').fontSize(20).fontColor(this.isClick == true ? Color.Pink : Color.White)
+ .margin({left:20,top:50})
+ }.width('100%').height(150).backgroundColor(Color.Pink)
+ }.width('100%').height(200).backgroundColor(Color.Green)
+ Button("ManyNode")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..862f1147e363409891720f29dec5c46deaac1944
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0100.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 { Container } from '@kit.ArkGraphics3D'
+
+@Entry
+@Component
+struct UIAttributesBlendModeBlendModeMix0100 {
+ @State isClick:boolean = false
+ onButtonClick(){
+ this.isClick = true
+ }
+ build() {
+ Column(){
+ Row(){
+ Row(){
+ Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White)
+ .margin({left:100,top:50})
+ }.width('100%').height(150).backgroundColor(Color.Pink)
+ }.width('100%').height(200).backgroundColor(Color.Green)
+ Button("ManyNode")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c2824e8fc1e3a86359027e3b04320faf6969482d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0110.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 { Container } from '@kit.ArkGraphics3D'
+
+interface location{
+ x:number,
+ y:number
+}
+@Entry
+@Component
+struct UIAttributesBlendModeBlendModeMix0110 {
+ @State isDragging: boolean = false;
+ @State textPosition: location = { x: 100, y: 100 };
+ @State newTextPosition: location = { x: 200, y: 200 };
+ @State textOpacity: number = 1.0;
+ onDragBegin(event: DragEvent) {
+ this.isDragging = true;
+ }
+ onDrag(event: DragEvent) {
+ this.textPosition = {
+ x: event.getDisplayX() - 25,
+ y: event.getDisplayY() - 25
+ };
+ }
+ onDragOver(event: DragEvent) {
+ this.isDragging = false;
+ }
+ simulateDrag() {
+ this.isDragging = true;
+ this.textPosition = this.newTextPosition;
+ setTimeout(() => {
+ this.isDragging = false;
+ this.textPosition = { x: 100, y: 100 };
+ }, 1500);
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('drag')
+ .position(this.textPosition)
+ .fontSize(24)
+ .fontColor(this.isDragging ? Color.Black : Color.White)
+ .draggable(true)
+ .onDragStart(this.onDragBegin.bind(this))
+ .onDragMove(this.onDrag.bind(this))
+ .onDragEnd(this.onDragOver.bind(this))
+ }
+ .backgroundColor(Color.Green)
+ .width('100%')
+ .height(300)
+ .opacity(this.isDragging ? 0.5 : 1.0)
+ Button('drag')
+ .height(50)
+ .width(100)
+ .margin({ top: 20 })
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .onClick(() => {
+ this.simulateDrag()
+ })
+ .id('buttonId')
+ }
+ .opacity(this.textOpacity)
+ .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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8976a7a52e7cd0499f350bf6b1419f17ec3d4fbb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0120.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 { Container } from '@kit.ArkGraphics3D'
+
+@Entry
+@Component
+struct UIAttributesBlendModeBlendModeMix0120 {
+ @State isTextVisible:boolean = true
+ onButtonClick(){
+ this.isTextVisible = false
+ }
+ build() {
+ Column(){
+ Row(){
+ if (this.isTextVisible){
+ Text('Text子组件').fontSize(50).fontColor(Color.White)
+ .margin({left:100,top:50})
+ }
+ }.width('100%').height(200).backgroundColor(Color.Green)
+ Button("HideNode")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..db56c0118d09df34192955cfd1dd7c665b13bb92
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0130.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 UIAttributesBlendModeBlendModeMix0130 {
+ @State isDialogVisible: boolean = false;
+ onButtonClick(){
+
+ this.isDialogVisible = true
+ if (this.isDialogVisible == true) {
+ AlertDialog.show({message:'这是Text子组件的弹窗内容'})
+ }
+ }
+ build() {
+ Column(){
+ Scroll(){
+ Row(){
+ Text('Text子组件').fontSize(50).fontColor(this.isDialogVisible == true ? Color.Green :Color.White).margin({left:100,top:-100})
+ }.width('100%').height(400).backgroundColor(Color.Green)
+ }
+ .scrollable(ScrollDirection.Vertical)
+ .scrollBar(BarState.On)
+ .scrollBarColor(Color.Gray)
+ .scrollBarWidth(10)
+ .friction(0.6)
+ .edgeEffect(EdgeEffect.None)
+ Button("scroll")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f6e69169724a444e6c9e4dc719b4bed1bf834870
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0140.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 UIAttributesBlendModeBlendModeMix0140 {
+ @State isDialogVisible: boolean = false;
+ onButtonClick(){
+ this.isDialogVisible = true
+ if (this.isDialogVisible == true) {
+ AlertDialog.show({
+ message:'这是Text子组件的弹窗内容',
+ backgroundColor:this.isDialogVisible == true ? Color.Green : Color.White
+ })
+ }
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件').fontSize(50).fontColor(Color.White).margin({left:100,top:-100})
+ }.width('100%').height(400).backgroundColor(Color.Green)
+ Button("animation")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5b5fad3ac5813c8c8143bcd97a37fd857c7e2a14
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0150.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 UIAttributesBlendModeBlendModeMix0150 {
+ @State rotateAngle: number = 0
+ @State isAnimation:boolean = false
+ animationStart(){
+ animateTo({
+ duration: 2000,
+ curve: Curve.EaseOut,
+ iterations: -1,
+ playMode: PlayMode.Normal,
+ onFinish: () => {
+ console.info('play end')
+ }
+ }, () => {
+ this.rotateAngle = 90
+ this.isAnimation = true
+ })
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件')
+ .fontSize(50)
+ .margin({left:100,top:50})
+ .fontColor(this.isAnimation == true ? Color.Green : Color.Red)
+ .rotate({ angle: this.rotateAngle })
+ }
+ .backgroundColor(Color.Green)
+ .width('100%')
+ .height(300)
+ Button('animation')
+ .height(50)
+ .margin({ top: 20 })
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .onClick(() => {
+ this.animationStart()
+ })
+ .id('buttonId')
+ }
+ .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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5bf76f45d1d14ea32dd1fa8c3951e2635ef64b31
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0160.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.
+ */
+
+interface location{
+ x:number,
+ y:number
+}
+@Entry
+@Component
+struct UIAttributesBlendModeBlendModeMix0160 {
+ @State textPosition: location = { x: 0, y: 150 };
+ @State isAnimation:boolean = false
+ // @State textOpacity: number = 1.0;
+ animationStart(){
+ // this.textOpacity = 0.5
+ animateTo({
+ duration: 2000,
+ curve: Curve.EaseOut,
+ iterations: -1,
+ playMode: PlayMode.Normal,
+ onFinish: () => {
+ console.info('play end')
+ }
+ }, () => {
+ this.textPosition = { x: 100, y: 150 }
+ this.isAnimation = true
+ })
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件')
+ .position(this.textPosition)
+ .fontSize(24)
+ .fontColor(this.isAnimation == true ? Color.Green : Color.Red)
+ .margin({left:100,top:50})
+ }
+ .backgroundColor(Color.Green)
+ .width('100%')
+ .height(300)
+ // .opacity(this.textOpacity)
+ Button('animation')
+ .fontSize(15)
+ .height(50)
+ .margin({ top: 20 })
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .onClick(() => {
+ this.animationStart()
+ })
+ .id('buttonId')
+ }
+ .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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bdff414e7e3dcdf81f11eab03554503789d281e9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0170.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 UIAttributesBlendModeBlendModeMix0170 {
+ @State Fontsize: number = 50
+ @State isAnimation:boolean = false
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件')
+ .fontSize(this.Fontsize)
+ .margin({left:100,top:50})
+ .fontColor(this.isAnimation == true ? Color.Green : Color.Red)
+ }
+ .backgroundColor(Color.Green)
+ .width('100%')
+ .height(300)
+ Button('animation')
+ .height(50)
+ .margin({ top: 20 })
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .onClick(() => {
+ animateTo({
+ duration: 2000,
+ curve: Curve.EaseOut,
+ iterations: -1,
+ playMode: PlayMode.Normal,
+ onFinish: () => {
+ console.info('play end')
+ }
+ }, () => {
+ this.Fontsize = 30;
+ this.isAnimation = true
+ })
+ })
+ .id('buttonId')
+ }
+ .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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2ce8e9b98b9b646e68b0f9ee957eb4e5931108c1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0180.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 UIAttributesBlendModeBlendModeMix0180 {
+ @State isClick:boolean = false
+ onButtonClick(){
+ this.isClick = true
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Pink : Color.White).margin({left:100,top:50})
+ }.width('100%').height(200).backgroundColor(this.isClick == true ? Color.Pink : Color.Green)
+ Button("background")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..61481b1ba416fe26202773d5d4b4c79d2acaeb43
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0190.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 { Container } from '@kit.ArkGraphics3D'
+
+@Entry
+@Component
+struct UIAttributesBlendModeBlendModeMix0190 {
+ @State opacity1:number = 1.0
+ onButtonClick(){
+ this.opacity1 = 0.5
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件').fontSize(50).fontColor(Color.White).margin({left:100,top:50})
+ }.width('100%').height(200).backgroundColor(Color.Green).opacity(this.opacity1)
+ Button("background")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..caa8f0fe2e0e4ebda129054f8762e0570ef10390
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0200.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 UIAttributesBlendModeBlendModeMix0200 {
+ @State isClick:boolean = false
+ onButtonClick(){
+ this.isClick = true
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:100,top:50})
+ }.width('100%').height(this.isClick == true ? 300 : 200).backgroundColor(Color.Green)
+ Button("background")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId')
+ }.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/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bc81fe2492d206bfeb631082823a911e9d58e599
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0210.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 UIAttributesBlendModeBlendModeMix0210 {
+ @State opacity1:number = 1.0
+ @State isClick:boolean = false
+ onButtonClick(){
+ this.opacity1 = 0.5
+ this.isClick = true
+ }
+ build() {
+ Column(){
+ Row(){
+ Text('Text子组件').fontSize(20).fontColor(this.isClick == true ? Color.Black : Color.Red)
+ .margin({left:50,top:50}).padding(10)
+ .blendMode(this.isClick == true ? BlendMode.SRC_IN : BlendMode.SRC)
+ }.width('100%').height(200).backgroundColor(Color.Green).opacity(this.opacity1)
+ Button("OnlyOneNode")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ })
+ .id('buttonId1')
+ Button("padding设置BlendMode")
+ .height(50)
+ .fontColor(Color.Black)
+ .backgroundColor(Color.Red)
+ .margin({ top: '20px' })
+ .onClick(()=>{
+ this.onButtonClick()
+ })
+ .id('buttonId2')
+ }.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/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..abcdeefdd588761236b7134518fa5469eb41fd3e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0010.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 UIAttributesClivkreboundeffectInterface0010 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .stateEffect(true)
+ .clickEffect({ level: ClickEffectLevel.MIDDLE, scale: 0.9 })
+ .id('UIAttributesClivkreboundeffectInterface0010_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..42c390bf439847d2ca5da9741e48e8ced463c82f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0020.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 UIAttributesClivkreboundeffectInterface0020 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .stateEffect(false)
+ .clickEffect({ level: ClickEffectLevel.MIDDLE, scale: 0.9 })
+ .id('UIAttributesClivkreboundeffectInterface0020_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ba6ff3890503f8884b2d66c53b06d37fd62d6680
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0030.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 UIAttributesClivkreboundeffectInterface0030 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect({ level: undefined, scale: null })
+ .id('UIAttributesClivkreboundeffectInterface0030_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..81cff197f65271be5eeea31093e95e8d7e82d356
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0040.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 UIAttributesClivkreboundeffectInterface0040 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect(null)
+ .id('UIAttributesClivkreboundeffectInterface0040_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c841e8d349d6a49f28461b5f091c01c4cb1aa983
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0050.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 UIAttributesClivkreboundeffectInterface0050 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect(undefined)
+ .id('UIAttributesClivkreboundeffectInterface0050_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4cf90849c88fd0d34c26d04bd44a452f288e7f91
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0060.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 UIAttributesClivkreboundeffectInterface0060 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect({ level: ClickEffectLevel.LIGHT, scale: -1 })
+ .id('UIAttributesClivkreboundeffectInterface0060_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..274b0a57d45e9d021f0c845ea6310b52edb8af3a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0070.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 UIAttributesClivkreboundeffectInterface0070 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 1.1 })
+ .id('UIAttributesClivkreboundeffectInterface0070_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2fd5f673a9979b6d176a8b7ecc853b63a09ee76c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0080.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 UIAttributesClivkreboundeffectInterface0080 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect({ level: ClickEffectLevel.LIGHT, scale: null })
+ .id('UIAttributesClivkreboundeffectInterface0080_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..33c246ef9fc6ef3bc8604305be4b4209aeb60304
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0090.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 UIAttributesClivkreboundeffectInterface0090 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect({ level: ClickEffectLevel.LIGHT, scale: undefined })
+ .id('UIAttributesClivkreboundeffectInterface0090_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..48dfe5d6035732e571db2f58a2f2b5b11b84707a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0100.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 UIAttributesClivkreboundeffectInterface0100 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect({ level: ClickEffectLevel.HEAVY })
+ .id('UIAttributesClivkreboundeffectInterface0100_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9c6cfe1d4ff9e3b0a57dadb3bf07a991b5198e77
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0110.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 UIAttributesClivkreboundeffectInterface0110 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect({ level: ClickEffectLevel.LIGHT })
+ .id('UIAttributesClivkreboundeffectInterface0110_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..06670784f40ea2a2341a3c3cd7d9fefb78bbf00f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0120.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 UIAttributesClivkreboundeffectInterface0120 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect({ level: ClickEffectLevel.MIDDLE })
+ .id('UIAttributesClivkreboundeffectInterface0120_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a1e94270fa48767ff70294528bfc2e483daa7fca
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0130.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 UIAttributesClivkreboundeffectInterface0130 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0.5 })
+ .id('UIAttributesClivkreboundeffectInterface0130_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a020da7fa4039ae875bd6e15b3239e147967e238
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0140.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 UIAttributesClivkreboundeffectInterface0140 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0.8 })
+ .id('UIAttributesClivkreboundeffectInterface0140_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2fd8e939dc16307f8bc37f5239914adc7defd061
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0150.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 UIAttributesClivkreboundeffectInterface0150 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0 })
+ .id('UIAttributesClivkreboundeffectInterface0150_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9c6ff0b8bd408516466299c65e517d5794ac2662
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0160.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 UIAttributesClivkreboundeffectInterface0160 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button')
+ .width(106)
+ .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 1 })
+ .id('UIAttributesClivkreboundeffectInterface0160_001')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6ace89733f4351dadd9154f84f918313cf2f565b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0170.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 UIAttributesClivkreboundeffectInterface0170 {
+
+ build() {
+ Row() {
+ Column() {
+ Button('Button-MIDDLE')
+ .width(106)
+ .clickEffect({ level: ClickEffectLevel.MIDDLE, scale: 0.2 })
+ .id('UIAttributesClivkreboundeffectInterface0170_001')
+ Button('Button-LIGHT')
+ .width(106)
+ .margin(20)
+ .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0.1 })
+ .id('UIAttributesClivkreboundeffectInterface0170_002')
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..03017af2c3855c78a9b4fcb764cfcf46084e218e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0180.ets
@@ -0,0 +1,257 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIAttributesClivkreboundeffectInterface0180 {
+ private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
+ build() {
+ Scroll(){
+ Column({space:5}) {
+ Stack(){
+ Text('harmonyOS')
+ Image('icon.png').width(40)
+ }
+ .id('StackClick')
+ .clickEffect({level:ClickEffectLevel.MIDDLE, scale: 0.5})
+ Flex({ direction: FlexDirection.Row }){
+ Text('1').width('20%').height(25).backgroundColor(0xF5DEB3)
+ Text('2').width('20%').height(25).backgroundColor(0xD2B48C)
+ Text('3').width('20%').height(25).backgroundColor(0xF5DEB3)
+ Text('4').width('20%').height(25).backgroundColor(0xD2B48C)
+ }
+ .id('FlexClick')
+ .clickEffect({level:ClickEffectLevel.MIDDLE, scale: 0.5})
+ RelativeContainer() {
+ Row(){Text('row1')}.justifyContent(FlexAlign.Center)
+ .width(40).height(40)
+ .backgroundColor("#FF3333")
+ .alignRules({
+ left: {anchor: "__container__", align: HorizontalAlign.Start},
+ right: {anchor: "row2", align : HorizontalAlign.Start},
+ center: {anchor: "__container__", align: VerticalAlign.Center},
+ bias : {horizontal : 0}
+ })
+ .id("row1")
+ .chainMode(Axis.Horizontal, ChainStyle.PACKED)
+
+ Row(){Text('row2')}.justifyContent(FlexAlign.Center)
+ .width(40).height(40)
+ .backgroundColor("#FFCC00")
+ .alignRules({
+ left: {anchor: "row1", align: HorizontalAlign.End},
+ right: {anchor: "row3", align : HorizontalAlign.Start},
+ top: {anchor: "row1", align: VerticalAlign.Top}
+ })
+ .id("row2")
+
+ Row(){Text('row3')}.justifyContent(FlexAlign.Center)
+ .width(40).height(40)
+ .backgroundColor("#FF6633")
+ .alignRules({
+ left: {anchor: "row2", align: HorizontalAlign.End},
+ right: {anchor: "__container__", align : HorizontalAlign.End},
+ top: {anchor: "row1", align: VerticalAlign.Top}
+ })
+ .id("row3")
+ }
+ .id('RelativeContainer')
+ .clickEffect({level:ClickEffectLevel.MIDDLE, scale: 0.5})
+ .width(120).height(120)
+ .margin({left: 50})
+ .border({width:2, color: "#6699FF"})
+ Progress({ value: 10, type: ProgressType.Linear }).width(200)
+ .id('progress')
+ .clickEffect({level:ClickEffectLevel.MIDDLE, scale: 0.5})
+ DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(200).height(200)
+ .id('dataPanel')
+ .clickEffect({level:ClickEffectLevel.MIDDLE, scale: 0.5})
+ Gauge({ value: 50, min: 1, max: 100 }) {
+ Column() {
+ Text('50')
+ .fontWeight(FontWeight.Medium)
+ .width('62%')
+ .fontColor("#ff182431")
+ .maxFontSize("60.0vp")
+ .minFontSize("30.0vp")
+ .textAlign(TextAlign.Center)
+ .margin({ top: '35%' })
+ .textOverflow({ overflow: TextOverflow.Ellipsis })
+ .maxLines(1)
+ }.width('100%').height('100%')
+ }
+ .id('gauge')
+ .clickEffect({level:ClickEffectLevel.MIDDLE, scale: 0.5})
+ .startAngle(210)
+ .endAngle(150)
+ .colors([[new LinearGradient([{ color: "#deb6fb", offset: 0 }, { color: "#ac49f5", offset: 1 }]), 9],
+ [new LinearGradient([{ color: "#bbb7fc", offset: 0 }, { color: "#564af7", offset: 1 }]), 8],
+ [new LinearGradient([{ color: "#f5b5c2", offset: 0 }, { color: "#e64566", offset: 1 }]), 7],
+ [new LinearGradient([{ color: "#f8c5a6", offset: 0 }, { color: "#ed6f21", offset: 1 }]), 6],
+ [new LinearGradient([{ color: "#fceb99", offset: 0 }, { color: "#f7ce00", offset: 1 }]), 5],
+ [new LinearGradient([{ color: "#dbefa5", offset: 0 }, { color: "#a5d61d", offset: 1 }]), 4],
+ [new LinearGradient([{ color: "#c1e4be", offset: 0 }, { color: "#64bb5c", offset: 1 }]), 3],
+ [new LinearGradient([{ color: "#c0ece5", offset: 0 }, { color: "#61cfbe", offset: 1 }]), 2],
+ [new LinearGradient([{ color: "#b5e0f4", offset: 0 }, { color: "#46b1e3", offset: 1 }]), 1]])
+ .width('40%')
+ .height('40%')
+ .strokeWidth(18)
+ .trackShadow({ radius: 7, offsetX: 7, offsetY: 7 })
+ .padding(18)
+ LoadingProgress()
+ .color(Color.Blue)
+ .layoutWeight(1)
+ Marquee({
+ start: false,
+ step: 10,
+ loop: Number.POSITIVE_INFINITY,
+ fromStart: true,
+ src: 'harmonyOS'
+ })
+ .marqueeUpdateStrategy(MarqueeUpdateStrategy.PRESERVE_POSITION)
+ .width(300)
+ .height(80)
+ .fontColor('#FFFFFF')
+ .fontSize(48)
+ .fontWeight(700)
+ .backgroundColor('#182431')
+ .margin({ bottom: 40 })
+ QRCode('abc').color(0xF7CE00).width(50).height(50)
+ TextClock({ timeZoneOffset: -8 })
+ .height(50)
+ .format('aa hh:mm:ss')
+ .margin(20)
+ .fontSize(30)
+ TextTimer({ isCountDown: true, count: 30000 })
+ .height(50)
+ .format('mm:ss.SS')
+ .fontColor(Color.Black)
+ .fontSize(50)
+ ColumnSplit() {
+ Text('1').width('100%').height(50).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('2').width('100%').height(50).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('3').width('100%').height(50).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('4').width('100%').height(50).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('5').width('100%').height(50).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ }
+ .height(50)
+ .borderWidth(1)
+ .resizeable(true)
+ RowSplit() {
+ Text('1').width('10%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('2').width('10%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('3').width('10%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('4').width('10%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('5').width('10%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ }
+ .height(50)
+ .resizeable(true)
+ SideBarContainer(SideBarContainerType.Embed){
+ Column(){
+ Text('index1')
+ Text('index2')
+ Text('index3')
+ }
+ }
+ .height(50).sideBarWidth(150)
+ .minSideBarWidth(50)
+ .maxSideBarWidth(300)
+ .minContentWidth(0)
+ List({ space: 20, initialIndex: 0 }) {
+ ForEach(this.arr, (item: number) => {
+ ListItem() {
+ Text('' + item)
+ .width('100%')
+ .height(100)
+ .fontSize(16)
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ }
+ }, (item: string) => item)
+ }.width('90%').height(100)
+ Grid(){
+ ForEach(this.arr,(item:number)=>{
+ GridItem(){
+ Text(`${item}`)
+ }
+ })
+ }.height(50)
+ .columnsTemplate('1fr 1fr 1fr')
+ .rowsTemplate('1fr 1fr 1fr 1fr')
+ Swiper(){
+ ForEach(this.arr,(item:number)=>{
+ Text(`${item}`)
+ })
+ }.height(50)
+ NavRouter() {
+ Row() {
+ Row()
+ .width(30)
+ .height(30)
+ .borderRadius(30)
+ .margin({ left: 3, right: 10 })
+ .backgroundColor(Color.Pink)
+ Text(`蓝牙`)
+ .fontSize(22)
+ .fontWeight(500)
+ .textAlign(TextAlign.Center)
+ }
+ .width('90%')
+ .height(60)
+ NavDestination() {
+ Flex({ direction: FlexDirection.Row }) {
+ Text('未找到可用蓝牙').fontSize(30).padding({ left: 15 })
+ }
+ }.title("蓝牙")
+ }
+ .height(50)
+ .margin({ top: 10, bottom: 10 })
+ .borderRadius(20)
+ .mode(NavRouteMode.REPLACE)
+ Tabs(){
+ TabContent().tabBar('111')
+ TabContent().tabBar('222')
+ TabContent().tabBar('333')
+ }.height(50)
+ Stepper(){
+ StepperItem(){
+ Text('第一步')
+ }.nextLabel('Next')
+ StepperItem(){
+ Text('第二步')
+ }.nextLabel('Next')
+ StepperItem(){
+ Text('第三步')
+ }.nextLabel('Next')
+ }.height(50)
+ Button('click').height(50)
+ }
+ .width('100%')
+ .height(3000)
+ }.scrollable(ScrollDirection.Vertical)
+ .nestedScroll({
+ scrollForward: NestedScrollMode.SELF_ONLY,
+ scrollBackward: NestedScrollMode.SELF_ONLY
+ })
+ .scrollBar(BarState.On)
+ .scrollBarColor(Color.Gray)
+ .scrollBarWidth(10)
+ .friction(0.6)
+ .edgeEffect(EdgeEffect.None)
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3dc11dd11e68b10e7a68c721122052931ff08c0c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0010.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 UIAttributesColorRampAny0010 {
+ build() {
+ Row(){
+ Button('Hello,World')
+ .width(200).height(50)
+ .linearGradient({
+ direction:GradientDirection.Left,
+ repeating:true,
+ colors:[[0xff00000,0],[0x0000ff,0.3],[0xfff001,0]]
+ })
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b001c44e9e876224bec6b7625b246749c5c6a07f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0040.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 UIAttributesColorRampAny0040 {
+ build() {
+ Row(){
+ Button('Hello,World')
+ .width(200).height(50)
+ .sweepGradient({
+ center:[50,50],
+ start:0,
+ end:359,
+ colors:[[0xff00000,0],[0x0000ff,0.3],[0xfff001,0]]
+ })
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e4144a928f020dc6ab1c0bd21e116c73816bf375
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0060.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 UIAttributesColorRampAny0060 {
+ build() {
+ Row(){
+ Button('Hello,World')
+ .width(200).height(50)
+ .linearGradient({
+ direction:GradientDirection.Left,
+ repeating:true,
+ colors:[[0xff0000,0.0], [0x0000ff,0.3], [0xffff00,0.5]]
+ })
+ }.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/UIAttributesColorRampAny/UIAttributesColorRampAny0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..063b97d9a342ddf379c24b07d4503c6a305e3661
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0080.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 UIAttributesColorRampAny0080 {
+ build() {
+ Row(){
+ Button('Hello,World')
+ .width(200).height(50)
+ .radialGradient({
+ center:[50,50],
+ radius:60,
+ colors:[[0xff00000,0],[0x0000ff,0.3],[0xfff001,0]]
+ })
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..25f4ee51c477938f42b5f1009f0c2a855d20b9eb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0020.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 UIAttributesColorRampBlurGradient0020 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(0, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Bottom})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7d6039ae6f3b1c1c37da3fff3990c90218137d99
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0030.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 UIAttributesColorRampBlurGradient0030 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Bottom})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..15b756da293a2f2d72610852882de0a545c5f142
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0040.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 UIAttributesColorRampBlurGradient0040 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.24],[1,0.64],[1,1]], direction: GradientDirection.LeftBottom})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fd24a4b2df7818734c4fd005fecb42e30ae67c25
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0050.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 UIAttributesColorRampBlurGradient0050 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Left})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..133207f0261108d312363dbb129de2d2119d1866
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0060.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 UIAttributesColorRampBlurGradient0060 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0.6,0.6],[1,1]], direction: GradientDirection.None})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2db1b37926d620021d003c7d9c61d9b399e54739
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0070.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 UIAttributesColorRampBlurGradient0070 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.RightBottom})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..66e1bb161a2f901e221212f4aaed41cc0300c760
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0080.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 UIAttributesColorRampBlurGradient0080 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,0.66],[1,1]], direction: GradientDirection.RightTop})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d051725a62499389cde1e9f6618263740dc5d9d7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0090.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 UIAttributesColorRampBlurGradient0090 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Right})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4b17ab3f1b0dc6f494de40bd7f8b013b47062617
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0100.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 UIAttributesColorRampBlurGradient0100 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0.5,0.5],[1,1]], direction: GradientDirection.Top})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..70f3d4310386baf5354e2e629ab8a47adbb9198d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0110.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 UIAttributesColorRampBlurGradient0110 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.None})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..639b066f03b41c60750e43bf4f4f904694249dd2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0120.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 UIAttributesColorRampBlurGradient0120 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0.5,0.5],[1,1]], direction: GradientDirection.None})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..73c56a6d14518e2454d5f10d0f4f323fe9c49546
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0130.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 UIAttributesColorRampBlurGradient0130 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.None})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8e5f06a748710cb62c18d87b7216b113f4088d0d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0140.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 UIAttributesColorRampBlurGradient0140 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0,0],[2,2]], direction: GradientDirection.None})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bb5ab2a876cdaacc956d7d50d67253505d07345e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0150.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 UIAttributesColorRampBlurGradient0150 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(60, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.None})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..20b6c7f34fe430687624fd69f71808bda4bbae42
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0160.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 UIAttributesColorRampBlurGradient0160 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(80, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.None})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a3435bf25baad0e9241a34b639127d8f0ab72be3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0170.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 UIAttributesColorRampBlurGradient0170 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: undefined, direction: GradientDirection.None})
+ }.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/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2247ee97768e17446c43b61a4079d46f69cf901d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0180.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 UIAttributesColorRampBlurGradient0180 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(-10, { fractionStops: [[0.5,0.5],[1,1]], direction: GradientDirection.None})
+ }.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/UIAttributesColorrampDfx/UIAttributesColorrampDfx0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampDfx/UIAttributesColorrampDfx0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..823edf70c87a8edb66969d1bb005763900a2f0dd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampDfx/UIAttributesColorrampDfx0010.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 UIAttributesColorrampDfx0010 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Bottom})
+ }.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/UIAttributesColorrampDfx/UIAttributesColorrampDfx0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampDfx/UIAttributesColorrampDfx0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9aceb01a1ff1914c0386a41121dbf1e642c05320
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampDfx/UIAttributesColorrampDfx0020.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 UIAttributesColorrampDfx0020 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Bottom})
+ }.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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..718cc762552c5309dc575074d4d64b37ba0a0e41
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0020.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 UIAttributesColorrampInterface0020 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors: [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]],
+ angle:0
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f1bee38ddcba7a54d14b6ee2d64c9b9fdf864601
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0030.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 UIAttributesColorrampInterface0030 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ angle: 0,
+ direction: GradientDirection.Left,
+ colors: [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..364d716e83d3b256ab8a85513612986b7aaf7444
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0040.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 UIAttributesColorrampInterface0040 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[[$r("app.color.blue"),0.0],[Color.Pink,0.5]],
+ direction:GradientDirection.Bottom,
+ repeating:false
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8e9e30898789c0a3823e58c042fdee21d4266c32
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0050.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 UIAttributesColorrampInterface0050 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[[$r("app.color.blue"),0.0],[Color.Pink,0.5]],
+ direction:GradientDirection.Bottom,
+ repeating:true
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4000e00245e1b351fc35c81735bf84f6f803e682
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0060.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 UIAttributesColorrampInterface0060 {
+
+ @State btnShow: Visibility = Visibility.Visible;
+ @State directionY:GradientDirection = GradientDirection.Top
+ flag: boolean = true;
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ angle: 0,
+ direction: this.directionY,
+ colors: [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]]
+ })
+ .visibility(this.btnShow)
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+
+
+ animateTo({
+ duration: 2000,
+ iterations: 3,
+ playMode: PlayMode.Normal,
+ }, () => {
+ if (this.flag) {
+ this.btnShow = Visibility.Hidden
+ this.directionY=GradientDirection.Bottom
+ } else {
+ this.btnShow = Visibility.Visible
+ this.directionY=GradientDirection.Top
+ }
+ this.flag = !this.flag
+ })
+
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..467007c4ff876ce9e9a06fc47553b548c50fcd92
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0070.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 UIAttributesColorrampInterface0070 {
+ @State btnShow: Visibility = Visibility.Visible;
+ @State directionY:GradientDirection = GradientDirection.Bottom
+ flag: boolean = true;
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ angle: 0,
+ direction: this.directionY,
+ colors: [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]]
+ })
+ .visibility(this.btnShow)
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+
+
+ animateTo({
+ duration: 2000,
+ playMode: PlayMode.Normal,
+ }, () => {
+ if (this.flag) {
+ this.btnShow = Visibility.None
+ this.directionY=GradientDirection.Top
+ } else {
+ this.btnShow = Visibility.Visible
+ this.directionY=GradientDirection.Bottom
+ }
+ this.flag = !this.flag
+ })
+
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6ad5d38c1e12c63d350a54c50b109699fadc5c24
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0080.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 UIAttributesColorrampInterface0080 {
+ @State angleY:number=0
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .linearGradient({
+ colors:[[$r("app.color.blue"),0.0],[Color.Pink,0.5]],
+ direction:GradientDirection.Bottom,
+ angle:this.angleY
+
+ })
+ .animation({
+ duration: 1000,
+ })
+
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ this.angleY=90
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ae3ca99b86de63333b41395828add1df3b53ea8e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0090.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 UIAttributesColorrampInterface90 {
+ @State btnShow: Visibility = Visibility.Visible;
+ @State angleR:number=0
+ flag: boolean = true;
+
+ build() {
+
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ direction: GradientDirection.Bottom,
+ colors: [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]],
+ angle:this.angleR
+ })
+ .animation({
+ duration: 2000,
+ })
+ .visibility(this.btnShow)
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ if (this.flag) {
+ this.btnShow = Visibility.None
+ this.angleR=30
+ } else {
+ this.btnShow = Visibility.Visible
+ this.angleR=60
+ }
+ this.flag = !this.flag
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cd27f8d030d7241373e7f3affa59873f2ab4c575
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0100.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesColorrampInterface0100 {
+ @State colors:Array<[ResourceColor, number]> = [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]];
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ direction: GradientDirection.Bottom,
+ colors: this.colors
+ })
+ .animation({
+ duration: 2000,
+ })
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ this.colors= [[$r('app.color.colorRed'), 0.0], [Color.Yellow, 0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4665af160f680129a430348955b6f01a37947d6c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0110.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 UIAttributesColorrampInterface0110 {
+ @State directionY:GradientDirection= GradientDirection.Bottom
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .linearGradient({
+ colors:[[$r("app.color.blue"),0.0],[Color.Pink,0.5]],
+ direction:this.directionY,
+
+
+ })
+ .animation({
+ duration: 1000,
+ })
+
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ this.directionY=GradientDirection.Right
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5555f6d31ec63acf3489624873e3d99ab21f66a3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0120.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 UIAttributesColorrampInterface0120 {
+ @State repeat:boolean=false
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ direction: GradientDirection.Bottom,
+ colors: [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]],
+ repeating:this.repeat
+ })
+ .animation({
+ duration: 2000,
+ })
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ this.repeat=!this.repeat
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8c8d79a6134c73f98cdf6ce006cc437c84256e20
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0130.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 UIAttributesColorrampInterface0130 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .linearGradient({
+ colors: [[$r("app.color.blue"), 0.0], [Color.Pink, 0.5]],
+ direction: GradientDirection.Bottom
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..000057ea249b0348ab996a7b1c50ef8a34ad17ed
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0140.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 UIAttributesColorrampInterface0140 {
+ build() {
+
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[[$r("app.color.blue"),0.0],[Color.Pink,0.5]],
+ direction:GradientDirection.LeftBottom
+
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2a3905d2cc6d781ad387ed5f94d4d02f71e30411
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0150.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 UIAttributesColorrampInterface0150 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ direction: GradientDirection.LeftTop,
+ colors: [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c5bf97db8bb5e9a3565b45b1c80f54ec49be8ccd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0160.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 UIAttributesColorrampInterface0160 {
+ build() {
+
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[[$r("app.color.blue"),0.0],[Color.Pink,0.5]],
+ direction:GradientDirection.Left
+
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ff6b2e044c9305d55a3083a59cf5ad5eaf840b11
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0170.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 UIAttributesColorrampInterface0170 {
+ build() {
+
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[[$r("app.color.blue"),0.0],[Color.Pink,0.5]],
+ direction:GradientDirection.None
+
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6ed0f90cdee252a97b862ef45cbce251b6e1f45b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0180.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 UIAttributesColorrampInterface0180 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ direction: GradientDirection.RightBottom,
+ colors: [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..762a0ea40ba26ca4cbc9d9e5e1c14de8e4f8c91a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0190.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 UIAttributesColorrampInterface0190 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[[$r("app.color.blue"),0.0],[Color.Pink,0.5]],
+ direction:GradientDirection.RightTop
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ebecae3a8b204acd4579a8cc8d691dcb3c913445
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0200.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 UIAttributesColorrampInterface0200 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ direction: GradientDirection.Right,
+ colors: [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7272c682de05516025ae5c34ec8d709fa46daefb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0210.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 UIAttributesColorrampInterface0210 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ direction: GradientDirection.Top,
+ colors: [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d1c2ce6d6a6ec360aa8684a034506de62d4ec36d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0220.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 UIAttributesColorrampInterface0220 {
+ @State btnShow: Visibility = Visibility.Visible;
+ @State angleR:number=0;
+ flag: boolean = true;
+
+ build() {
+
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ direction: GradientDirection.Bottom,
+ colors: [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]],
+ angle:this.angleR
+ })
+ .animation({
+ duration: 2000,
+ })
+ .visibility(this.btnShow)
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ if (this.flag) {
+ this.btnShow = Visibility.Hidden
+ this.angleR=90
+ } else {
+ this.btnShow = Visibility.Visible
+ this.angleR=0
+ }
+ this.flag = !this.flag
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..658ba8ec4a81d16c64b4dd1ddac26cc97b5b70f2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0230.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 UIAttributesColorrampInterface0230 {
+ build() {
+
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[[$r("app.color.blue"),0.0],[Color.Pink,0.5]],
+ angle:180,
+ direction:GradientDirection.Bottom
+
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4d2e0460ee68c3ba49afe0b02ddb1c4b0f1b81c6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0240.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 UIAttributesColorrampInterface0240 {
+ build() {
+
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[[$r("app.color.blue"),0.0],[Color.Pink,0.5]],
+ angle:'50%'
+
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a1d11fbad797682b6f607716293ca82dcf57d6c4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0250.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 UIAttributesColorrampInterface0250 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ angle:180,
+ colors: [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3ec08c1109bb34a57d26e72ebb09dcf25cfdb7f9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0260.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 UIAttributesColorrampInterface0260 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[[$r("app.color.blue"),-0.1],[Color.Pink,0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b6284d9ac57821c93963d4c5ea7b737cae6b019b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0270.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 UIAttributesColorrampInterface0270 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors: [[$r('app.color.blue'), 0.0], [Color.Pink, 0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..330ebf713c011df13cb2d4c6e16df67fc0c057e9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0280.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 UIAttributesColorrampInterface0280 {
+ build() {
+ Column({ space: 4 }) {
+ Button('Button')
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[[0x0000ff,0.1],[Color.Pink,0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..615e394730f67d57c5c8ddad8fcbba782b8c0020
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0290.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 UIAttributesColorrampInterface0290 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[[$r("app.color.blue"),0.1],[Color.Pink,0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..70777d4df55e09a5ebe2884fca4341675eaaadf4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0300.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 UIAttributesColorrampInterface0300 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[["#0000ff",0.1],[Color.Pink,0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3fc868e33d09e84229d9dbaed432a3f797fe766e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0310.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 UIAttributesColorrampInterface0310 {
+ build() {
+
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors: [["rgb(0,0,225)", 0.1], [Color.Pink, 0.5]]
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..177cd20eeade89986fddfec96c88805dc834dca1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0320.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 UIAttributesColorrampInterface0320 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[["rgba(0,0,255,0.5)",0.1],[Color.Pink,0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0330.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b821019ae24e11c4ce44bc0b0f0868570b1966b2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0330.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 UIAttributesColorrampInterface0330 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[[Color.Blue,0.1],[Color .Pink,0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0340.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e92bed7d78abbf258df07d25624f4b7a55f5f314
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0340.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 UIAttributesColorrampInterface0340 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[["AAAEYU",0.1],[Color.Pink,0.5]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0350.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d99d0ff65e63b38c413c78c9562eecf709c175cd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0350.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 UIAttributesColorrampInterface0350 {
+ build() {
+ Column({ space: 4 }) {
+ Button('Botton')
+ .width(400)
+ .height(60)
+ .linearGradient({
+ colors:[]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..52b30ec19429455860d79d4a7622cbb21f6888f0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0360.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 UIAttributesColorrampInterface0360 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ // .radialGradient({
+ //
+ // })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0370.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f3d1f5a06a8b6a766a924764be8eaf8ac6ec930f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0370.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 UIAttributesColorrampInterface0370 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center:[-10,10],
+ colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ radius:60
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..686eafec3682f6cf036b0ad14ed308e6e4fc57df
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0380.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 UIAttributesColorrampInterface0380 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center: [0, 50],
+ colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]],
+ radius: 20
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..10651d079e391c2d1c5605991075998b24e7a1e4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0390.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 UIAttributesColorrampInterface0390 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center:[0,50],
+ colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ radius:"20%",
+ repeating:false
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3dfc2cba09561734064606f41f8e257eccec0548
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0400.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 UIAttributesColorrampInterface0400 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center:[0,50],
+ colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ radius:"20%",
+ repeating:true
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0410.ets
new file mode 100644
index 0000000000000000000000000000000000000000..561610e8448d69b041e7dda2168bf06e06b5dbac
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0410.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 UIAttributesColorrampInterface0410 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button('Button')
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center: [0, 50],
+ colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]],
+ radius: 0,
+
+ })
+
+
+
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0420.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3323356881576fd1f8c6293f119d9e88836225cb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0420.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 UIAttributesColorrampInterface0420 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center: [0, 50],
+ colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]],
+ radius: "20px"
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0430.ets
new file mode 100644
index 0000000000000000000000000000000000000000..608ef8a512a004273b34be99c897ffaddebcc694
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0430.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 UIAttributesColorrampInterface0430{
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center:[0,50],
+ colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ radius:"20%"
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0440.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6d61381dbb8be5dbc31ba7fce5941d645196f92a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0440.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 UIAttributesColorrampInterface0440 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center:[0,50],
+ colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ radius:-20
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0450.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d56239ed18fd1fdb6200eae38888050d0a03b006
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0450.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 UIAttributesColorrampInterface0450 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .type(ButtonType.Normal)
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center: [0, 50],
+ colors:[[0x0000ff,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ radius:20
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0460.ets
new file mode 100644
index 0000000000000000000000000000000000000000..47aebc42cf642d058e9e514a817c5dcdb873c29d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0460.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 UIAttributesColorrampInterface0460 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center:[0,50],
+ colors:[['rgb(0,0,255)',0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ radius:20
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0470.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e8f16bfae9e24e8016ddbbea73b1e958f34567ca
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0470.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 UIAttributesColorrampInterface0470 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center:[0,50],
+ colors:[["rgba(0,0,255,0.5)",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ radius:20
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0480.ets
new file mode 100644
index 0000000000000000000000000000000000000000..62821d46798e5b620fd4fe661d17608562b97406
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0480.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 UIAttributesColorrampInterface0480 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center:[0,50],
+ colors:[["#0000ff",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ radius:20
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0490.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ad295dcfe9a63e54eb3b710e81e2cc8741efc7c4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0490.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 UIAttributesColorrampInterface0490 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .type(ButtonType.Normal)
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center:[0,50],
+ colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ radius:20
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0500.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4c6587f8faa381e0320d1d656068c522df1df0d9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0500.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 UIAttributesColorrampInterface0500 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center:[0,50],
+ colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ radius:20
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0510.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0adf68e2b4db10ae273101e42b05bf4607f51745
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0510.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 UIAttributesColorrampInterface0510{
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center:[50,50],
+ colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ radius:20
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0520.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bc1112f9993ae3015891e9ef82ac5780ea58280e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0520.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 UIAttributesColorrampInterface0520 {
+ @State centerX: number = 0;
+ @State btnShow: Visibility = Visibility.Visible;
+ flag: boolean = true;
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .type(ButtonType.Normal)
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center: [this.centerX, 50],
+ colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow,1]],
+ radius: '20%',
+ repeating: false
+ })
+ .visibility(this.btnShow)
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+
+
+ animateTo({
+ duration: 2000,
+ playMode: PlayMode.Normal,
+ }, () => {
+ if (this.flag) {
+ this.centerX = 50
+ this.btnShow = Visibility.None
+ } else {
+ this.centerX = 0
+ this.btnShow = Visibility.Visible
+ }
+ this.flag=!this.flag
+ })
+
+
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0530.ets
new file mode 100644
index 0000000000000000000000000000000000000000..69c707905ac0aa22ed76e1c647711c4c7c720b97
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0530.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 UIAttributesColorrampInterface0530 {
+ @State btnShow: Visibility = Visibility.Visible;
+ @State colors:Array<[ResourceColor, number]> = [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]];
+ flag: boolean = true;
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .type(ButtonType.Normal)
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center: [0, 50],
+ colors: this.colors,
+ radius: '20%',
+ repeating: false
+ })
+ .visibility(this.btnShow)
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+
+
+ animateTo({
+ duration: 2000,
+ playMode: PlayMode.Normal,
+ }, () => {
+ if (this.flag) {
+ this.btnShow = Visibility.None
+ this.colors= [["#aaa", 0.0], [Color.Yellow, 0.3], [Color.Green, 1]]
+ } else {
+ this.btnShow = Visibility.Visible
+ this.colors= [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]]
+ }
+ this.flag=!this.flag
+ })
+
+
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0540.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0dad1e90454cd9a5c01ed2b1d2adecf5ca7bbbec
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0540.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 UIAttributesColorrampInterface0540 {
+ @State centerX: number = 0;
+ @State radius:string='20%'
+ @State btnShow: Visibility = Visibility.Visible;
+ flag: boolean = true;
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .type(ButtonType.Normal)
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center: [this.centerX, 50],
+ colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]],
+ radius: this.radius,
+ repeating: false
+ })
+ .visibility(this.btnShow)
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+
+
+ animateTo({
+ duration: 2000,
+ playMode: PlayMode.Normal,
+ }, () => {
+ if (this.flag) {
+ this.centerX = 50
+ this.radius='50%'
+ this.btnShow = Visibility.None
+ } else {
+ this.radius='50%'
+ this.centerX = 0
+ this.btnShow = Visibility.Visible
+ }
+ this.flag=!this.flag
+ })
+
+
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0550.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b9cee36c76a4d40b479aa95469219f6b25e1caaa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0550.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 UIAttributesColorrampInterface0550 {
+ @State repeat: boolean = false;
+ @State btnShow: Visibility = Visibility.Visible;
+ flag: boolean = true;
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .type(ButtonType.Normal)
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center: [0, 50],
+ colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]],
+ radius: '20%',
+ repeating: this.repeat
+ })
+ .visibility(this.btnShow)
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd2')
+ .onClick(() => {
+
+
+ animateTo({
+ duration: 2000,
+ playMode: PlayMode.Normal,
+ }, () => {
+ if (this.flag) {
+ this.repeat = true
+ this.btnShow = Visibility.None
+ } else {
+ this.repeat= false
+ this.btnShow = Visibility.Visible
+ }
+ this.flag=!this.flag
+ })
+
+
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0560.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c6f140fa124d886091f9f553a483ccac243fbc20
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0560.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 UIAttributesColorrampInterface0560 {
+ @State centerX: number = 0;
+ @State btnShow: Visibility = Visibility.Visible;
+ flag: boolean = true;
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center: [this.centerX, 50],
+ colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]],
+ radius: '20%',
+ repeating: false
+ })
+ .visibility(this.btnShow)
+ .animation({
+ duration: 2000,
+ })
+
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ if (this.flag) {
+ this.centerX = 50
+ this.btnShow = Visibility.Hidden
+ } else {
+ this.centerX = 0
+ this.btnShow = Visibility.Visible
+ }
+ this.flag=!this.flag
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0570.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a15531899f120830bfb634002c443ec7e5ae4564
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0570.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 UIAttributesColorrampInterface0570 {
+ @State centerX: number = 0;
+ @State btnShow: Visibility = Visibility.Visible;
+ @State colors:Array<[ResourceColor, number]> = [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]];
+ flag: boolean = true;
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center: [this.centerX, 50],
+ colors: this.colors,
+ radius: '20%',
+ repeating: false
+ })
+ .visibility(this.btnShow)
+ .animation({
+ duration: 2000,
+ })
+
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ if (this.flag) {
+ this.centerX = 50
+ this.btnShow = Visibility.Hidden
+ this.colors =[["#aaa", 0.0], [Color.Yellow, 0.3], [Color.Gray, 1]]
+ } else {
+ this.centerX = 0
+ this.btnShow = Visibility.Visible
+ this.colors =[["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]]
+ }
+ this.flag=!this.flag
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0580.ets
new file mode 100644
index 0000000000000000000000000000000000000000..eea62f4f8f46292e34678779659c739584acad1d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0580.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.
+ */
+//本文件为模板文件不做任何提交------模板文案---button
+@Entry
+@Component
+@Preview
+struct UIAttributesColorrampInterface0580 {
+ @State btnShow: Visibility = Visibility.Visible;
+ @State radius:string ='20%'
+ flag: boolean = true;
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center: [0, 50],
+ colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]],
+ radius: this.radius,
+ repeating: false
+ })
+ .visibility(this.btnShow)
+ .animation({
+ duration: 2000,
+ })
+
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ if (this.flag) {
+ this.radius='60%'
+ this.btnShow = Visibility.Hidden
+ } else {
+ this.radius='20%'
+ this.btnShow = Visibility.Visible
+ }
+ this.flag = !this.flag
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0590.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0b77b0c4fc5d472059b2070033c8a89642d222be
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0590.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 UIAttributesColorrampInterface0590{
+ @State centerX: number = 0;
+ @State btnShow: Visibility = Visibility.Visible;
+ @State repeat:boolean=false;
+ flag: boolean = true;
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .radialGradient({
+ center: [this.centerX, 50],
+ colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]],
+ radius: '20%',
+ repeating: this.repeat
+ })
+ .visibility(this.btnShow)
+ .animation({
+ duration: 2000,
+ })
+
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ if (this.flag) {
+ this.repeat=true
+ this.centerX = 50
+ this.btnShow = Visibility.Hidden
+ } else {
+ this.repeat=false
+ this.centerX = 0
+ this.btnShow = Visibility.Visible
+ }
+ this.flag=!this.flag
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0610.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8228c69bcf409c2bb99a9c657ea5b3aa619efb55
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0610.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 UIAttributesColorrampInterface0610 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[50,50],
+ colors:[]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0620.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e2765fc321c2880ad00dffb8f3d08d626216ebea
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0620.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 UIAttributesColorrampInterface0620 {
+ @State centerX: number = 0;
+ @State btnShow: Visibility = Visibility.Visible;
+ flag: boolean = true;
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .type(ButtonType.Normal)
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[this.centerX,50],
+ colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ start:0,
+ end:90,
+ repeating:false
+ })
+ .visibility(this.btnShow)
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+
+
+ animateTo({
+ duration: 2000,
+ playMode: PlayMode.Normal,
+ }, () => {
+ if (this.flag) {
+ this.centerX = 0
+ this.btnShow = Visibility.None
+ } else {
+ this.centerX = 50
+ this.btnShow = Visibility.Visible
+ }
+ this.flag=!this.flag
+ })
+
+
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0630.ets
new file mode 100644
index 0000000000000000000000000000000000000000..66c2c07633d5860a6f7af6f87a6f364f6427a73d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0630.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 UIAttributesColorrampInterface0630 {
+ @State colors:Array<[ResourceColor, number]> = [[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]];
+ @State btnShow: Visibility = Visibility.Visible;
+ flag: boolean = true;
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .type(ButtonType.Normal)
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center: [0, 50],
+ colors: this.colors,
+ start:0,
+ end:90,
+ repeating:false
+ })
+ .visibility(this.btnShow)
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+
+
+ animateTo({
+ duration: 1000,
+ playMode: PlayMode.Normal,
+ }, () => {
+ if (this.flag) {
+ this.colors=[[Color.Blue,0.0],[Color.Brown,0.3],[Color.Red,1.0]]
+ this.btnShow = Visibility.None
+ } else {
+ this.colors=[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]]
+ this.btnShow = Visibility.Visible
+ }
+ this.flag=!this.flag
+ })
+
+
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0640.ets
new file mode 100644
index 0000000000000000000000000000000000000000..70ce08dd9dca89a550cdc50e8eedb23bf1a07d26
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0640.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 UIAttributesColorrampInterface0640 {
+ @State repeat:boolean=false
+ @State btnShow: Visibility = Visibility.Visible;
+ flag: boolean = true;
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .type(ButtonType.Normal)
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ start:0,end:90,
+ repeating:this.repeat
+ })
+ .visibility(this.btnShow)
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ this.repeat=!this.repeat
+ animateTo({
+ duration: 2000,
+ playMode: PlayMode.Normal,
+ }, () => {
+ if (this.flag) {
+ this.btnShow = Visibility.None
+ } else {
+ this.btnShow = Visibility.Visible
+ }
+ this.flag=!this.flag
+ })
+
+
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0650.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3cfb92de0cdc15cab95b52e6c366403eb646addb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0650.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 UIAttributesColorrampInterface0650 {
+ @State startX: number = 0;
+ @State endX: number = 90;
+ @State btnShow: Visibility = Visibility.Visible;
+ flag: boolean = true;
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .type(ButtonType.Normal)
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center: [0, 50],
+ colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]],
+ start: this.startX,
+ end: this.endX,
+ repeating: false
+ })
+ .visibility(this.btnShow)
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+
+
+ animateTo({
+ duration: 2000,
+ playMode: PlayMode.Normal,
+ }, () => {
+ if (this.flag) {
+ this.startX=20
+ this.endX=140
+ this.btnShow = Visibility.None
+ } else {
+ this.startX=0
+ this.endX=90
+ this.btnShow = Visibility.Visible
+ }
+ this.flag = !this.flag
+ })
+
+
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0660.ets
new file mode 100644
index 0000000000000000000000000000000000000000..527c5be1d8e986ca0cf16de0e32d23654ce74b38
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0660.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 UIAttributesColorrampInterface0660 {
+ @State centerX: number = 0;
+ @State btnShow: Visibility = Visibility.Visible;
+ flag: boolean = true;
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[this.centerX,50],
+ colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ start:0,
+ end:90,
+ repeating:false
+ })
+ .visibility(this.btnShow)
+ .animation({
+ duration: 2000,
+ })
+
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ if (this.flag) {
+ this.centerX = 50
+ this.btnShow = Visibility.Hidden
+ } else {
+ this.centerX = 0
+ this.btnShow = Visibility.Visible
+ }
+ this.flag=!this.flag
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0670.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c019cada6c9e40ad5308e9d863bbee8f528a65af
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0670.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 UIAttributesColorrampInterface0670 {
+ @State colors:Array<[ResourceColor, number]> = [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]];
+ @State btnShow: Visibility = Visibility.Visible;
+ flag: boolean = true;
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:this.colors,
+ start:0,
+ end:90,
+ repeating:false
+ })
+ .visibility(this.btnShow)
+ .animation({
+ duration: 2000,
+ })
+
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ if (this.flag) {
+ this.colors = [[Color.Blue, 0.0], [Color.Red, 0.3], [Color.Brown, 1]];
+ this.btnShow = Visibility.Hidden
+ } else {
+ this.colors = [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]];
+ this.btnShow = Visibility.Visible
+ }
+ this.flag=!this.flag
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0680.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4ba8c6bb7f7e50d5c9c9d87d59ebd69852925963
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0680.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 UIAttributesColorrampInterface0680 {
+ @State repaet:boolean=false;
+ @State btnShow: Visibility = Visibility.Visible;
+ flag: boolean = true;
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]],
+ start:0,
+ end:90,
+ repeating:this.repaet
+ })
+ .visibility(this.btnShow)
+ .animation({
+ duration: 2000,
+ })
+
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ if (this.flag) {
+ this.repaet=true
+ this.btnShow = Visibility.Hidden
+ } else {
+ this.repaet=false
+ this.btnShow = Visibility.Visible
+ }
+ this.flag=!this.flag
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0690.ets
new file mode 100644
index 0000000000000000000000000000000000000000..28ae0ed89d700a9d4bb434dcdcebc31bec229ad5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0690.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 UIAttributesColorrampInterface0690 {
+ @State startX: number = 0;
+ @State endX: number = 90;
+ @State btnShow: Visibility = Visibility.Visible;
+ flag: boolean = true;
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .type(ButtonType.Normal)
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center: [0, 50],
+ colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]],
+ start: this.startX,
+ end: this.endX,
+ repeating: false
+ })
+ .animation({
+ duration:1000
+ })
+ .visibility(this.btnShow)
+
+ Button('animation')
+ .width(300)
+ .height(50)
+ .id('changeRd1')
+ .onClick(() => {
+ if (this.flag) {
+ this.startX=20
+ this.endX=140
+ this.btnShow = Visibility.Hidden
+ } else {
+ this.startX=0
+ this.endX=90
+ this.btnShow = Visibility.Visible
+ }
+ this.flag = !this.flag
+ })
+
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0700.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bb0f52b711304ce35cf6f8ae7f7c51c6803750f1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0700.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 UIAttributesColorrampInterface0700 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[-10,-10],
+ colors:[[0x0000ff,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0710.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b2c039fdbfb4e7f9aace3dbbe8022a76841c5242
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0710.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 UIAttributesColorrampInterface0710 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[["#0000ff",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0720.ets
new file mode 100644
index 0000000000000000000000000000000000000000..95ffc7979aacc9fd9421575048026e74cfe384a1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0720.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
+@Preview
+struct UIAttributesColorrampInterface0720 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center: [0, 50],
+ colors: [["rgb(0,0,255)", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0730.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a659a1ff2e6641510ac0ea3ff8c7745b693d42fa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0730.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 UIAttributesColorrampInterface0730 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[["rgba(0,0,255,0.5)",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0740.ets
new file mode 100644
index 0000000000000000000000000000000000000000..273454fece58d1751cbdc7587624a3f1025904a0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0740.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 UIAttributesColorrampInterface0740 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0750.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7b26f5f62f51c89e361573ca3d92fad7411498f1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0750.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 UIAttributesColorrampInterface0750 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ end:90
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0760.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f2fa508041cc47b1f25b978206d4a3b0c4bd5227
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0760.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 UIAttributesColorrampInterface0760 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ start:0,
+ end:90
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0770.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d76fbe9736004b6d92b2ba199fcd3fe8f068afcd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0770.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 UIAttributesColorrampInterface0770 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[[Color.Blue,-0.2],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ start:0,
+ end:380
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0780.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5f775f9a232f1fbf2efe53d786753d396488c189
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0780.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 UIAttributesColorrampInterface0780 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ start:-90,
+ end:90
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0790.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5b5e4916ae75cbe619052ccfe447adfb16f4c704
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0790.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 UIAttributesColorrampInterface0790 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ start:0,
+ end:"90"
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0800.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4627d741a9d284678086e62dba7bba4af9d4ac90
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0800.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 UIAttributesColorrampInterface0800 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ start:0,
+ end:"90%"
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0810.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1c1fef62ecbbd71271e7be57b978faa3cd11f4ee
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0810.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 UIAttributesColorrampInterface0810 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ start:0,
+ end:'90deg'
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0820.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4644e44d2ac05940639a7d537c6327f00ea08c03
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0820.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 UIAttributesColorrampInterface0820 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ start:0,
+ end:90,
+ rotation:0
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0830.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9a32327b818f2ae7ccdfbaffcacfbd5346016261
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0830.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 UIAttributesColorrampInterface0830 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center: [0, 50],
+ colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]],
+ start: 0,
+ end: 90,
+ rotation: 380
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0840.ets
new file mode 100644
index 0000000000000000000000000000000000000000..37868b2fc145d67e68e8d8c5a95f3298e1d945be
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0840.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 UIAttributesColorrampInterface0840 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center: [0, 50],
+ colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]],
+ start: 0,
+ end: 90,
+ rotation: -10
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0850.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dc78addc7d1dfa3925880160dfc16f6ffff76f22
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0850.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 UIAttributesColorrampInterface0850 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[[Color.Blue,0.0], [Color.Pink,0.3],[Color.Yellow,1.0]],
+ start:0,
+ end:90,
+ repeating:false
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0860.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ce7b4f9e27046dab24738c6379d26d6d93b7fc44
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0860.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 UIAttributesColorrampInterface0860 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]],
+ start:0,
+ end:90,
+ repeating:true
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0870.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8bb3cc20482730cead8ea9a26abbd7bb6ef612ec
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0870.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 UIAttributesColorrampInterface0870 {
+ build() {
+ Column({ space: 4 }) {
+ Column() {
+ }
+ .backgroundColor(Color.Green)
+ .border({ width: 3 })
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center: [100, 50],
+ // colors: [[0Xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]],
+ colors: [["#FF0000", 0.0], ["#FFC0CB", 0.3], ["#FFFF00", 1.0]],
+ start: 180,
+ end: 90
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0880.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6edcf43bf60ac2ef7980997cac48bfdd050a2472
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0880.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 UIAttributesColorrampInterface0880 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center: [0, 50],
+ // colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]],
+ colors: [["#0000FF", 0.0], ["#FFC0CB", 0.3], ["#FFFF00", 1.0]],
+ start: 90
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0890.ets
new file mode 100644
index 0000000000000000000000000000000000000000..07c565e9bddc1dc7cf2f85cbb6c61b2f7edd047b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0890.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 UIAttributesColorrampInterface0890 {
+
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center:[0,50],
+ colors:[[Color.Blue,-0.2],[Color.Pink,0.3],[Color.Yellow,1.0]]
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0900.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ed49ea8e0afcfc04f94cbb990ee3909308e81889
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0900.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 UIAttributesColorrampInterface0900 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center: [0, 50],
+ colors: [[$r("app.color.blue"), 0.0], [Color.Pink, 0.5], [Color.Yellow, 1.0]],
+
+ })
+ }
+ .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/UIAttributesColorrampInterface/UIAttributesColorrampInterface0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0910.ets
new file mode 100644
index 0000000000000000000000000000000000000000..61629fc6203550721a203f22a157dfd6fdd615b8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0910.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 UIAttributesColorrampInterface0910 {
+ build() {
+ Column({ space: 4 }) {
+ Button()
+ .width(100)
+ .height(100)
+ .sweepGradient({
+ center: [50, 50],
+ colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]]
+ })
+ }
+ .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/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d5fbb52d0cfcdb41545683edb8775f57795d1bd8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0100.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 UIAttributesComponentContentFillingCapirenderfit0100 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.RESIZE_FILL)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ccdd4f2ca880641dd00cb6790d845e28cc032573
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0110.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 UIAttributesComponentContentFillingCapirenderfit0110 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.RESIZE_CONTAIN)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..410c2b808dbf69d1b77277819c6d3c3ba4e054d4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0120.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 UIAttributesComponentContentFillingCapirenderfit0120 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.RESIZE_CONTAIN_TOP_LEFT)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..538499ba48e461c49a922b7f305c81c573f93c4e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0130.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 UIAttributesComponentContentFillingCapirenderfit0130 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a1be8b25693cd6b7bed6edec596a288d278bf011
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0140.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 UIAttributesComponentContentFillingCapirenderfit0140 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.RESIZE_COVER)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0cf28e8c4586fec1765e919c7ab3ab898af8565e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0150.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 UIAttributesComponentContentFillingCapirenderfit0150 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.RESIZE_COVER_TOP_LEFT)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2db4d0b5cd7e0723c0041d712b66ba4b023ec338
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0160.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 UIAttributesComponentContentFillingCapirenderfit0160 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.RESIZE_COVER_BOTTOM_RIGHT)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cbc301600e0f070dbef786088d3b4ee9d84e7fdf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0010.ets
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { curves } from '@kit.ArkUI';
+
+class SetSlt {
+ isAnimation: boolean = true
+
+ set(): void {
+ this.isAnimation = !this.isAnimation;
+ }
+}
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0010 {
+ @State SetAnimation: SetSlt = new SetSlt();
+
+ build() {
+ Column() {
+ Text('ArkUI')
+ .fontWeight(FontWeight.Bold)
+ .fontSize(12)
+ .fontColor(Color.White)
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xf56c6c)
+ .width(100)
+ .height(100)
+ .renderFit(RenderFit.BOTTOM_LEFT)
+ .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 })
+ .animation({ curve: curves.springMotion(0.8, 0.4) })
+ .margin({ top: 120 })
+ Button("animate")
+ .margin({ top: 200 })
+ .onClick(() => {
+ this.SetAnimation.set();
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4848dfb3d227a0482cdb866ccc53042762c34566
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0020.ets
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { curves } from '@kit.ArkUI';
+
+class SetSlt {
+ isAnimation: boolean = true
+
+ set(): void {
+ this.isAnimation = !this.isAnimation;
+ }
+}
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0020 {
+ @State SetAnimation: SetSlt = new SetSlt();
+
+ build() {
+ Column() {
+ Text('ArkUI')
+ .fontWeight(FontWeight.Bold)
+ .fontSize(12)
+ .fontColor(Color.White)
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xf56c6c)
+ .width(100)
+ .height(100)
+ .renderFit(RenderFit.BOTTOM_LEFT)
+ .scale({ x: this.SetAnimation.isAnimation ? 1 : 0.5, y: this.SetAnimation.isAnimation ? 1 : 0.5 })
+ .animation({ curve: curves.springMotion(0.8, 0.4) })
+ .margin({ top: 120 })
+ Button("animate")
+ .margin({ top: 200 })
+ .onClick(() => {
+ this.SetAnimation.set();
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9f7b498b7e389654e116a9bc2526f238e9d7ab70
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0030.ets
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { curves } from '@kit.ArkUI';
+
+class SetSlt {
+ isAnimation: boolean = true
+
+ set(): void {
+ this.isAnimation = !this.isAnimation;
+ }
+}
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0030 {
+ @State SetAnimation: SetSlt = new SetSlt();
+
+ build() {
+ Column() {
+ Text('ArkUI')
+ .fontWeight(FontWeight.Bold)
+ .fontSize(12)
+ .fontColor(Color.White)
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xf56c6c)
+ .width(100)
+ .height(100)
+ .renderFit(RenderFit.BOTTOM_RIGHT)
+ .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 })
+ .animation({ curve: curves.springMotion(0.8, 0.4) })
+ .margin({ top: 120 })
+ Button("animate")
+ .margin({ top: 200 })
+ .onClick(() => {
+ this.SetAnimation.set();
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5bc93f9f7bfccb22db2648e07a780deda1397e48
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0040.ets
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { curves } from '@kit.ArkUI';
+
+class SetSlt {
+ isAnimation: boolean = true
+
+ set(): void {
+ this.isAnimation = !this.isAnimation;
+ }
+}
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0040 {
+ @State SetAnimation: SetSlt = new SetSlt();
+
+ build() {
+ Column() {
+ Text('ArkUI')
+ .fontWeight(FontWeight.Bold)
+ .fontSize(12)
+ .fontColor(Color.White)
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xf56c6c)
+ .width(100)
+ .height(100)
+ .renderFit(RenderFit.BOTTOM_RIGHT)
+ .scale({ x: this.SetAnimation.isAnimation ? 3 : 1, y: this.SetAnimation.isAnimation ? 3 : 1 })
+ .animation({ curve: curves.springMotion(0.4, 0.8) })
+ .margin({ top: 120 })
+ Button("animate")
+ .margin({ top: 200 })
+ .onClick(() => {
+ this.SetAnimation.set();
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e83b52a050a7b928c55730e565137b9bdbace2fb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0060.ets
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { curves } from '@kit.ArkUI';
+
+class SetSlt {
+ isAnimation: boolean = true
+
+ set(): void {
+ this.isAnimation = !this.isAnimation;
+ }
+}
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0060 {
+ @State SetAnimation: SetSlt = new SetSlt();
+
+ build() {
+ Column() {
+ Text('ArkUI')
+ .fontWeight(FontWeight.Bold)
+ .fontSize(12)
+ .fontColor(Color.White)
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xf56c6c)
+ .width(100)
+ .height(100)
+ .renderFit(RenderFit.BOTTOM)
+ .scale({ x: this.SetAnimation.isAnimation ? 1 : 0.5, y: this.SetAnimation.isAnimation ? 1 : 0.5 })
+ .animation({ curve: curves.springMotion(0.8, 0.4) })
+ .margin({ top: 120 })
+ Button("animate")
+ .margin({ top: 200 })
+ .onClick(() => {
+ this.SetAnimation.set();
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..13f0edfce38e50baae69f5cd3e462a33c228e2ed
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0110.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 UIAttributesComponentContentFillingModeInterface0110 {
+ @State rectWidth: number = 200;
+ @State rectHeight: number = 200;
+ @State circleWidth: number = 100;
+ @State circleHeight: number = 100;
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.circleWidth, height: this.circleWidth })
+ }
+ .width(this.rectWidth)
+ .height(this.rectHeight)
+ .borderWidth(1)
+ .renderFit(undefined)
+ .alignItems(HorizontalAlign.Start)
+ .margin(20)
+ Button("animate")
+ .id('buttonId')
+ .onClick(() => {
+ this.circleWidth = 50
+ this.circleHeight = 50
+ animateTo({
+ duration: 1000,
+ curve: Curve.EaseOut,
+ iterations: 1,
+ playMode: PlayMode.Normal,
+ onFinish: () => {
+ console.info('play end')
+ }
+ }, () => {
+ this.rectWidth = 150
+ this.rectHeight = 150
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..615515722682a9d80067d5c24ab3982dbafdf287
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0130.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 UIAttributesComponentContentFillingModeInterface0130 {
+ @State rectWidth: number = 150;
+ @State rectHeight: number = 200;
+ @State circleWidth: number = 170;
+ @State circleHeight: number = 170;
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.circleWidth, height: this.circleWidth })
+ }
+ .width(this.rectWidth)
+ .height(this.rectHeight)
+ .borderWidth(1)
+ .renderFit(RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT)
+ .justifyContent(FlexAlign.End)
+ .alignItems(HorizontalAlign.End)
+ .margin(20)
+ Button("animate")
+ .id('buttonId')
+ .onClick(() => {
+ animateTo({
+ duration: 1000,
+ curve: Curve.EaseOut,
+ iterations: 1,
+ playMode: PlayMode.Normal,
+ onFinish: () => {
+ console.info('play end')
+ }
+ }, () => {
+ this.circleWidth = 150
+ this.circleHeight = 150
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f5e4d268d32bfad4c858e2f4bfd5f6e781a748a9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0140.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 UIAttributesComponentContentFillingModeInterface0140 {
+ @State rectWidth: number = 400;
+ @State rectHeight: number = 150;
+ @State circleWidth: number = 180;
+ @State circleHeight: number = 180;
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.circleWidth, height: this.circleWidth })
+ }
+ .width(this.rectWidth)
+ .height(this.rectHeight)
+ .borderWidth(1)
+ .renderFit(RenderFit.RESIZE_CONTAIN_TOP_LEFT)
+ .alignItems(HorizontalAlign.Start)
+ .justifyContent(FlexAlign.Start)
+ .margin(20)
+ Button("animate")
+ .id('buttonId')
+ .onClick(() => {
+ animateTo({
+ duration: 1000,
+ curve: Curve.EaseOut,
+ iterations: 1,
+ playMode: PlayMode.Normal,
+ onFinish: () => {
+ console.info('play end')
+ }
+ }, () => {
+ this.circleWidth = 150
+ this.circleHeight = 50
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..26ee4b9b2892ba4d05d885a713fa689555ca8b7f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0170.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 UIAttributesComponentContentFillingModeInterface0170 {
+ @State rectWidth: number = 400;
+ @State rectHeight: number = 100;
+ @State circleWidth: number = 180;
+ @State circleHeight: number = 180;
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.circleWidth, height: this.circleWidth })
+ }
+ .width(this.rectWidth)
+ .height(this.rectHeight)
+ .borderWidth(1)
+ .renderFit(RenderFit.RESIZE_CONTAIN)
+ .alignItems(HorizontalAlign.Center)
+ .justifyContent(FlexAlign.Center)
+ .margin(20)
+ Button("animate")
+ .margin({top:150})
+ .id('buttonId')
+ .onClick(() => {
+ animateTo({
+ duration: 1000,
+ curve: Curve.EaseOut,
+ iterations: 1,
+ playMode: PlayMode.Normal,
+ onFinish: () => {
+ console.info('play end')
+ }
+ }, () => {
+ this.circleHeight = 100
+ this.circleWidth = 100
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..79185b18ecb4e93e9aab02da7c7724038cfbba15
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0180.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 UIAttributesComponentContentFillingModeInterface0180 {
+ @State rectWidth: number = 150;
+ @State rectHeight: number = 200;
+ @State circleWidth: number = 170;
+ @State circleHeight: number = 170;
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.circleWidth, height: this.circleWidth })
+ }
+ .width(this.rectWidth)
+ .height(this.rectHeight)
+ .borderWidth(1)
+ .renderFit(RenderFit.RESIZE_CONTAIN)
+ .justifyContent(FlexAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('buttonId')
+ .onClick(() => {
+ animateTo({
+ duration: 1000,
+ curve: Curve.EaseOut,
+ iterations: 1,
+ playMode: PlayMode.Normal,
+ onFinish: () => {
+ console.info('play end')
+ }
+ }, () => {
+ this.circleWidth = 150
+ this.circleHeight = 150
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d9c90ad2324774adcd1552e2999f37b7e8a905cc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0200.ets
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { curves } from '@kit.ArkUI';
+
+class SetSlt {
+ isAnimation: boolean = true
+
+ set(): void {
+ this.isAnimation = !this.isAnimation;
+ }
+}
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0200 {
+ @State SetAnimation: SetSlt = new SetSlt();
+
+ build() {
+ Column() {
+ Text('ArkUI')
+ .fontWeight(FontWeight.Bold)
+ .fontSize(12)
+ .fontColor(Color.White)
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xf56c6c)
+ .width(100)
+ .height(100)
+ .renderFit(RenderFit.RESIZE_COVER_BOTTOM_RIGHT)
+ .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 0.5 })
+ .animation({ curve: curves.springMotion(0.8, 0.4) })
+ .margin({ top: 120 })
+ Button("animate")
+ .margin({ top: 200 })
+ .onClick(() => {
+ this.SetAnimation.set();
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bf617798034cad6d97f09dfa7fb34d6fd0a8fb74
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0220.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 UIAttributesComponentContentFillingModeInterface0220 {
+ @State rectWidth: number = 400;
+ @State rectHeight: number = 100;
+ @State circleWidth: number = 180;
+ @State circleHeight: number = 180;
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.circleWidth, height: this.circleWidth })
+ }
+ .width(this.rectWidth)
+ .height(this.rectHeight)
+ .borderWidth(1)
+ .renderFit(RenderFit.RESIZE_COVER_TOP_LEFT)
+ .alignItems(HorizontalAlign.Start)
+ .justifyContent(FlexAlign.Start)
+ .margin(20)
+ Button("animate")
+ .margin({top:150})
+ .id('buttonId')
+ .onClick(() => {
+ animateTo({
+ duration: 1000,
+ curve: Curve.EaseOut,
+ iterations: 1,
+ playMode: PlayMode.Normal,
+ onFinish: () => {
+ console.info('play end')
+ }
+ }, () => {
+ this.rectWidth = 180
+ this.rectHeight = 50
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..64300b2433c586cf2ce77d9e7148f8a96cdbdbc8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0230.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 UIAttributesComponentContentFillingModeInterface0230 {
+ @State rectWidth: number = 200;
+ @State rectHeight: number = 200;
+ @State circleWidth: number = 50;
+ @State circleHeight: number = 50;
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.circleWidth, height: this.circleWidth })
+ }
+ .width(this.rectWidth)
+ .height(this.rectHeight)
+ .borderWidth(1)
+ .renderFit(RenderFit.RESIZE_COVER)
+ .justifyContent(FlexAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('buttonId')
+ .onClick(() => {
+ animateTo({
+ curve: Curve.EaseOut,
+ iterations: 1,
+ playMode: PlayMode.Normal,
+ onFinish: () => {
+ console.info('play end')
+ }
+ }, () => {
+ this.circleWidth = 300
+ this.circleHeight = 300
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7a1655d15e89960b36837ef209e596f688213267
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0260.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 UIAttributesComponentContentFillingModeInterface0260 {
+ @State rectWidth: number = 200;
+ @State rectHeight: number = 200;
+ @State circleWidth: number = 200;
+ @State circleHeight: number = 200;
+ @State isClick:boolean = false
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ if (this.isClick == false){
+ Circle({ width: this.circleWidth, height: this.circleWidth })
+ } else{
+ Rect({ width: this.circleWidth, height: this.circleWidth })
+ }
+ }
+ .width(this.rectWidth)
+ .height(this.rectHeight)
+ .borderWidth(1)
+ .renderFit(RenderFit.RESIZE_FILL)
+ .alignItems(HorizontalAlign.Center)
+ .justifyContent(FlexAlign.Center)
+ .margin(20)
+ Button("animate")
+ .margin({top:150})
+ .id('buttonId')
+ .onClick(() => {
+ animateTo({
+ duration: 1000,
+ curve: Curve.EaseOut,
+ iterations: 1,
+ playMode: PlayMode.Normal,
+ onFinish: () => {
+ console.info('play end')
+ }
+ }, () => {
+ this.isClick = true
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fdcf01b9466b6ec1c5f1191a78d0366adc7f495b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0310.ets
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { curves } from '@kit.ArkUI';
+
+class SetSlt {
+ isAnimation: boolean = true
+
+ set(): void {
+ this.isAnimation = !this.isAnimation;
+ }
+}
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0310 {
+ @State SetAnimation: SetSlt = new SetSlt();
+
+ build() {
+ Column() {
+ Text('ArkUI')
+ .fontWeight(FontWeight.Bold)
+ .fontSize(12)
+ .fontColor(Color.White)
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xf56c6c)
+ .width(100)
+ .height(100)
+ .renderFit(RenderFit.TOP_LEFT)
+ .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 })
+ .animation({ curve: curves.springMotion(0.8, 0.4) })
+ .margin({ top: 120 })
+ Button("animate")
+ .margin({ top: 200 })
+ .onClick(() => {
+ this.SetAnimation.set();
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0330.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5f0040f2292bcef9d50c9e7c25d3acac34506902
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0330.ets
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { curves } from '@kit.ArkUI';
+
+class SetSlt {
+ isAnimation: boolean = true
+
+ set(): void {
+ this.isAnimation = !this.isAnimation;
+ }
+}
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0330 {
+ @State SetAnimation: SetSlt = new SetSlt();
+
+ build() {
+ Column() {
+ Text('ArkUI')
+ .fontWeight(FontWeight.Bold)
+ .fontSize(12)
+ .fontColor(Color.White)
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xf56c6c)
+ .width(100)
+ .height(100)
+ .renderFit(RenderFit.TOP_RIGHT)
+ .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 })
+ .animation({ curve: curves.springMotion(0.8, 0.4) })
+ .margin({ top: 120 })
+ Button("animate")
+ .margin({ top: 200 })
+ .onClick(() => {
+ this.SetAnimation.set();
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0340.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cab1afc406d0a511761e5802d6c0b9dde8e0d4d2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0340.ets
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { curves } from '@kit.ArkUI';
+
+class SetSlt {
+ isAnimation: boolean = true
+
+ set(): void {
+ this.isAnimation = !this.isAnimation;
+ }
+}
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0340 {
+ @State SetAnimation: SetSlt = new SetSlt();
+
+ build() {
+ Column() {
+ Text('ArkUI')
+ .fontWeight(FontWeight.Bold)
+ .fontSize(12)
+ .fontColor(Color.White)
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xf56c6c)
+ .width(100)
+ .height(100)
+ .renderFit(RenderFit.TOP_RIGHT)
+ .scale({ x: this.SetAnimation.isAnimation ? 3 : 1, y: this.SetAnimation.isAnimation ? 3 : 1 })
+ .animation({ curve: curves.springMotion(0.4, 0.8) })
+ .margin({ top: 120 })
+ Button("animate")
+ .margin({ top: 200 })
+ .onClick(() => {
+ this.SetAnimation.set();
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4712b3dbbc671c9bdce1af06444890acd5fb5f57
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0380.ets
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { curves } from '@kit.ArkUI';
+
+class SetSlt {
+ isAnimation: boolean = true
+
+ set(): void {
+ this.isAnimation = !this.isAnimation;
+ }
+}
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0380 {
+ @State SetAnimation: SetSlt = new SetSlt();
+
+ build() {
+ Column() {
+ Text('ArkUI')
+ .fontWeight(FontWeight.Bold)
+ .fontSize(12)
+ .fontColor(Color.White)
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xf56c6c)
+ .width(100)
+ .height(100)
+ .renderFit(RenderFit.RIGHT)
+ .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 })
+ .animation({ curve: curves.springMotion(0.8, 0.4) })
+ .margin({ top: 120 })
+ Button("animate")
+ .margin({ top: 200 })
+ .onClick(() => {
+ this.SetAnimation.set();
+ }).id('buttonId')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..08fad697955bea4bfa3cdb9d0609ff52624ac7c9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0390.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 { curves } from '@kit.ArkUI';
+
+class SetSlt {
+ isAnimation: boolean = true
+
+ set(): void {
+ this.isAnimation = !this.isAnimation;
+ }
+}
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0390 {
+ @State toggle: boolean = true
+
+ build() {
+ Column() {
+ Button('click me').margin(50)
+ .renderFit(RenderFit.TOP_RIGHT)
+ .id('buttonId')
+ .motionPath({ path: 'Mstart.x start.y L300 200 L300 500 Lend.x end.y', from: 0.0, to: 1.0, rotatable: true })
+ .onClick(() => {
+ animateTo({ duration: 4000, curve: Curve.Linear }, () => {
+ this.toggle = !this.toggle
+ })
+ })
+ }.width('100%').height('100%').alignItems(this.toggle ? HorizontalAlign.Start : HorizontalAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e26667042bb4f256506089c4dd91899f52c32495
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0400.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 { curves } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0400 {
+ @State isShow: boolean = false
+
+ build() {
+ Stack({ alignContent: Alignment.Center }) {
+ if (this.isShow) {
+ Image('icon.png')
+ .autoResize(false)
+ .clip(true)
+ .width(300)
+ .height(400)
+ .offset({ y: 100 })
+ .geometryTransition("picture", { follow: false })
+ .transition(TransitionEffect.OPACITY)
+ } else {
+ Column() {
+ Column() {
+ Image('2.png')
+ .width('100%').height('100%')
+ }.width('100%').height('100%')
+ }
+ .width(80)
+ .height(80)
+ .borderRadius(20)
+ .clip(true)
+ .geometryTransition("picture")
+ .transition(TransitionEffect.OPACITY)
+ }
+ }
+ .renderFit(RenderFit.TOP_LEFT)
+ .id('stackId')
+ .onClick(() => {
+ animateTo({ duration: 1000 }, () => {
+ this.isShow = !this.isShow
+ })
+ })
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0410.ets
new file mode 100644
index 0000000000000000000000000000000000000000..027cea3aae1292a1b397fcace75e3fcb78a0acde
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0410.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 { curves } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0410 {
+ @State flag: boolean = true;
+ @State show: string = 'show';
+ build() {
+ Column() {
+ Button(this.show).width(80).height(30).margin(30)
+ .id('buttonId')
+ .onClick(() => {
+ if (this.flag) {
+ this.show = 'hide';
+ } else {
+ this.show = 'show';
+ }
+ this.flag = !this.flag;
+ })
+ if (this.flag) {
+ Image('2.png').width(200).height(200)
+ .transition(TransitionEffect.OPACITY.animation({ duration: 2000, curve: Curve.Ease }).combine(
+ TransitionEffect.rotate({ z: 1, angle: 180 })
+ ))
+ }
+ }.width('100%').renderFit(RenderFit.TOP_RIGHT)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0420.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ffc173cca15c7768bb421e97d444211f7ec756e1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0420.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 { curves, router } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0420 {
+ @State scale1: number = 1
+ @State opacity1: number = 1
+ pageTransition() {
+ PageTransitionEnter({ duration: 1200, curve: Curve.Linear })
+ .onEnter((type: RouteType, progress: number) => {
+ if (type == RouteType.Push||type == RouteType.Pop) {
+ this.scale1 = progress
+ this.opacity1 = progress
+ }
+ })
+ PageTransitionExit({ duration: 1200, curve: Curve.Ease })
+ .onExit((type: RouteType, progress: number) => {
+ if (type == RouteType.Push) {
+ this.scale1 = 1 - progress
+ this.opacity1 = 1 - progress
+ }
+ })
+ }
+ build() {
+ Column() {
+ Image('icon.png').width(200)
+ .id('imageId')
+ .onClick(()=>{
+ router.pushUrl({url:'testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0410'})
+ })
+ }.width('100%').renderFit(RenderFit.BOTTOM)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0430.ets
new file mode 100644
index 0000000000000000000000000000000000000000..81f9ec79be05608aaf33a22de8c1d25ffd3c7e63
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0430.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 { curves } from '@kit.ArkUI';
+
+class SetSlt {
+ isAnimation: boolean = true
+
+ set(): void {
+ this.isAnimation = !this.isAnimation;
+ }
+}
+
+@Entry
+@Component
+struct UIAttributesComponentContentFillingModeInterface0430 {
+ @State SetAnimation: SetSlt = new SetSlt();
+
+ build() {
+ Column() {
+ Text('ArkUI')
+ .fontWeight(FontWeight.Bold)
+ .fontSize(12)
+ .fontColor(Color.White)
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xf56c6c)
+ .width(100)
+ .height(100)
+ .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 })
+ .animation({ curve: curves.springMotion(0.8, 0.4) })
+ .margin({ top: 120 })
+ Button("animate")
+ .margin({ top: 200 })
+ .onClick(() => {
+ this.SetAnimation.set();
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1ce5134f6d17cb9bee55399265f4e86cc3243770
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0050.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 UIAttributesComponentcontentfillingModeinterface0050 {
+ @State width1: number = 200;
+ @State height1: number = 200;
+ @State width2: number = 100;
+ @State height2: number = 100;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.BOTTOM)
+ .justifyContent(FlexAlign.End)
+ .alignItems(HorizontalAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0050_001')
+ .onClick(() => {
+ this.width2 = 150;
+ this.height2 = 150;
+ animateTo({ curve: Curve.Ease }, () => {
+ this.width1 = 250;
+ this.height1 = 250;
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5078bbce627fc1702a3c3ae2c3d9da64497afe70
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0070.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 UIAttributesComponentcontentfillingModeinterface0070 {
+ @State width1: number = 200;
+ @State height1: number = 200;
+ @State width2: number = 100;
+ @State height2: number = 100;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.CENTER)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0070_001')
+ .onClick(() => {
+ this.width2 = 150;
+ this.height2 = 150;
+ animateTo({ curve: Curve.Ease }, () => {
+ this.width1 = 250;
+ this.height1 = 250;
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..aeb73adcfdecd76bf5e89468bcde9db1c2ea7c0f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0080.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 UIAttributesComponentcontentfillingModeinterface0080 {
+ @State width1: number = 200;
+ @State height1: number = 200;
+ @State width2: number = 100;
+ @State height2: number = 100;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.CENTER)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0080_001')
+ .onClick(() => {
+ this.width2 = 50;
+ this.height2 = 50;
+ animateTo({ curve: Curve.Ease }, () => {
+ this.width1 = 150;
+ this.height1 = 150;
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c9b418c1042197d6637bde05a835f7e456fa5b90
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0090.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 UIAttributesComponentcontentfillingModeinterface0090 {
+ @State width1: number = 200;
+ @State height1: number = 200;
+ @State width2: number = 100;
+ @State height2: number = 100;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.LEFT)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Start)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0090_001')
+ .onClick(() => {
+ this.width2 = 150;
+ this.height2 = 150;
+ animateTo({ curve: Curve.Ease }, () => {
+ this.width1 = 250;
+ this.height1 = 250;
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dc1739c5b45d5596875176a6692f27b1ac38a30b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0100.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 UIAttributesComponentcontentfillingModeinterface0100 {
+ @State width1: number = 200;
+ @State height1: number = 200;
+ @State width2: number = 100;
+ @State height2: number = 100;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.LEFT)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Start)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0100_001')
+ .onClick(() => {
+ this.width2 = 50;
+ this.height2 = 50;
+ animateTo({ curve: Curve.Ease }, () => {
+ this.width1 = 150;
+ this.height1 = 150;
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a159ef4e1ca90514377c69b40523453d7dc5bb02
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0120.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 UIAttributesComponentcontentfillingModeinterface0120 {
+ @State width1: number = 250;
+ @State height1: number = 150;
+ @State width2: number = 200;
+ @State height2: number = 200;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT)
+ .justifyContent(FlexAlign.Start)
+ .alignItems(HorizontalAlign.End)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0120_001')
+ .onClick(() => {
+ this.width2 = 150;
+ this.height2 = 150;
+ animateTo({ curve: Curve.Ease }, () => {
+ this.width1 = 150;
+ this.height1 = 150;
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6b754ea9027f2f411f581e47ed669cea27a842bc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0150.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 UIAttributesComponentcontentfillingModeinterface0150 {
+ @State width1: number = 150;
+ @State height1: number = 170;
+ @State width2: number = 170;
+ @State height2: number = 150;
+ flag: boolean = true;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.RESIZE_CONTAIN_TOP_LEFT)
+ .justifyContent(FlexAlign.Start)
+ .alignItems(HorizontalAlign.Start)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0150_001')
+ .onClick(() => {
+ this.width2 = 150;
+ this.height2 = 130;
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f18cc3b52df77ab353be370329dbcb444a4f4f37
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0160.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 UIAttributesComponentcontentfillingModeinterface0160 {
+ @State width1: number = 200;
+ @State height1: number = 200;
+ @State width2: number = 80;
+ @State height2: number = 80;
+ flag: boolean = true;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.CENTER)
+ .justifyContent(FlexAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0160_001')
+ .onClick(() => {
+ this.width2 = 200;
+ this.height2 = 200;
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..55909fbcfc179d8af813073c09113c8279848edc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0190.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 UIAttributesComponentcontentfillingModeinterface0190 {
+ @State width1: number = 100;
+ @State height1: number = 200;
+ @State width2: number = 150;
+ @State height2: number = 150;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.RESIZE_COVER_BOTTOM_RIGHT)
+ .alignItems(HorizontalAlign.End)
+ .justifyContent(FlexAlign.End)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0190_001')
+ .onClick(() => {
+ this.width2 = 50;
+ this.height1 = 150;
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1a608a46aeb6979115ad3b5f359966cb9492d9c8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0210.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 UIAttributesComponentcontentfillingModeinterface0210 {
+ @State width1: number = 150;
+ @State height1: number = 200;
+ @State width2: number = 170;
+ @State height2: number = 170;
+ flag: boolean = true;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.CENTER)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0210_001')
+ .onClick(() => {
+ this.width1 = 120;
+ this.height1 = 170;
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8d2f8ddf42290a7381cec742701370abaaa1fd16
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0240.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 UIAttributesComponentcontentfillingModeinterface0240 {
+ @State width1: number = 150;
+ @State height1: number = 200;
+ @State width2: number = 170;
+ @State height2: number = 170;
+ flag: boolean = true;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.CENTER)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0240_001')
+ .onClick(() => {
+ this.width1 = 120;
+ this.height1 = 170;
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e8e53da60afdf9443c70b257fd7533f9975fee99
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0250.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 UIAttributesComponentcontentfillingModeinterface0250 {
+ @State width1: number = 200;
+ @State height1: number = 150;
+ @State width2: number = 170;
+ @State height2: number = 170;
+ flag: boolean = true;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.CENTER)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0250_001')
+ .onClick(() => {
+ this.width1 = 170;
+ this.height1 = 120;
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dbc957d922511b3c1dba2e1dd26cbb8ec5fb3850
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0270.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 UIAttributesComponentcontentfillingModeinterface0270 {
+ @State width1: number = 150;
+ @State height1: number = 150;
+ @State width2: number = 150;
+ @State height2: number = 150;
+ flag: boolean = true;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.RESIZE_FILL)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0270_001')
+ .onClick(() => {
+ this.width2 = 200;
+ this.height2 = 200;
+ animateTo({ curve: Curve.Ease }, () => {
+ this.width1 = 200;
+ this.height1 = 200;
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ff7f50ad8f7f6da88e85b64a71f7e3246adf21b1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0280.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 UIAttributesComponentcontentfillingModeinterface0280 {
+ @State width1: number = 200;
+ @State height1: number = 200;
+ @State width2: number = 200;
+ @State height2: number = 200;
+ flag: boolean = true;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.RESIZE_FILL)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0280_001')
+ .onClick(() => {
+ this.width2 = 150;
+ this.height2 = 150;
+ animateTo({ curve: Curve.Ease }, () => {
+ this.width1 = 150;
+ this.height1 = 150;
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b60959c10d1d684dc576af2236638e0d493807f0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0290.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 UIAttributesComponentcontentfillingModeinterface0290 {
+ @State width1: number = 200;
+ @State height1: number = 200;
+ @State width2: number = 100;
+ @State height2: number = 100;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.RIGHT)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0290_001')
+ .onClick(() => {
+ this.width2 = 150;
+ this.height2 = 150;
+ animateTo({ curve: Curve.Ease }, () => {
+ this.width1 = 250;
+ this.height1 = 250;
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3818601320ed70cc3dfbca67ed753b937cd26761
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0300.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 UIAttributesComponentcontentfillingModeinterface0300 {
+ @State width1: number = 200;
+ @State height1: number = 200;
+ @State width2: number = 100;
+ @State height2: number = 100;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.RIGHT)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.End)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0300_001')
+ .onClick(() => {
+ this.width2 = 150;
+ this.height2 = 150;
+ animateTo({ curve: Curve.Ease }, () => {
+ this.width1 = 250;
+ this.height1 = 250;
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ead9c88181eb0cd22dba628069bb3f7d7eb66fdb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0320.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 UIAttributesComponentcontentfillingModeinterface0320 {
+ @State width1: number = 200;
+ @State height1: number = 200;
+ @State width2: number = 100;
+ @State height2: number = 100;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.TOP_LEFT)
+ .alignItems(HorizontalAlign.Start)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0320_001')
+ .onClick(() => {
+ this.width2 = 50;
+ this.height2 = 50;
+ animateTo({ curve: Curve.Ease }, () => {
+ this.width1 = 150;
+ this.height1 = 150;
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0350.ets
new file mode 100644
index 0000000000000000000000000000000000000000..58c9f39655df957f77c0a9a33677136097ed586e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0350.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 UIAttributesComponentcontentfillingModeinterface0350 {
+ @State width1: number = 200;
+ @State height1: number = 200;
+ @State width2: number = 100;
+ @State height2: number = 100;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.TOP)
+ .alignItems(HorizontalAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0350_001')
+ .onClick(() => {
+ this.width2 = 150;
+ this.height2 = 150;
+ animateTo({ curve: Curve.Ease }, () => {
+ this.width1 = 250;
+ this.height1 = 250;
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..91bf9be15d0b72372f3d3b9410a822fb201de1be
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0360.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 UIAttributesComponentcontentfillingModeinterface0360 {
+ @State width1: number = 200;
+ @State height1: number = 200;
+ @State width2: number = 100;
+ @State height2: number = 100;
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.TOP)
+ .alignItems(HorizontalAlign.Center)
+ .margin(20)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0360_001')
+ .onClick(() => {
+ this.width2 = 50;
+ this.height2 = 50;
+ animateTo({ curve: Curve.Ease }, () => {
+ this.width1 = 150;
+ this.height1 = 150;
+ })
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0370.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ceace5ebb4de4b19766119904bf98da67a1aecd3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0370.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 matrix4 from '@ohos.matrix4';
+
+
+@Entry
+@Component
+struct UIAttributesComponentcontentfillingModeinterface0370 {
+ @State width1: number = 200;
+ @State height1: number = 200;
+ @State width2: number = 100;
+ @State height2: number = 100;
+
+ matrix = matrix4.init([1.0, 0.0, 0.0, 0.0,
+ 0.0, 1.0, 0.0, 0.0,
+ 0.0, 0.0, 1.0, 0.0,
+ 0.0, 0.0, 0.0, 1.0])
+
+ build() {
+ Row() {
+ Column() {
+ Column() {
+ Circle({ width: this.width2, height: this.height2 })
+ }
+ .width(this.width1)
+ .height(this.height1)
+ .borderWidth(1)
+ .renderFit(RenderFit.LEFT)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Start)
+ .margin(20)
+ .transform(this.matrix)
+ Button("animate")
+ .id('UIAttributesComponentcontentfillingModeinterface0370_001')
+ .onClick(() => {
+
+ })
+ }.width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2b05fc076e554a0eb2de52d22bf2a38e4f27e8d3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0010.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 { matrix4 } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIAttributesGraphicTransformationSkew0010 {
+ @State matrix: matrix4.Matrix4Transit = matrix4.identity().scale({ x: 1, y: 1, z: 1 });
+
+ build() {
+ Column() {
+ Column() {
+ }
+ .transform(this.matrix)
+ .height(50)
+ .width(50)
+ .backgroundColor('red')
+ Button('x*0.5')
+ .id('UIAttributesGraphicTransformationSkew0010_001')
+ .margin({ top: 100 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().scale({ x: 0.5, y: 1, z: 1 });
+ })
+ Button('y*0.5')
+ .id('UIAttributesGraphicTransformationSkew0010_002')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().scale({ x: 1, y: 0.5, z: 1 });
+ })
+ Button('z*0.5')
+ .id('UIAttributesGraphicTransformationSkew0010_003')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().scale({ x: 1, y: 1, z: 0.5 });
+ })
+ Button('x*2')
+ .id('UIAttributesGraphicTransformationSkew0010_004')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().scale({ x: 2, y: 1, z: 1 });
+ })
+ Button('y*2')
+ .id('UIAttributesGraphicTransformationSkew0010_005')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().scale({ x: 1, y: 2, z: 1 });
+ })
+ Button('z*2')
+ .id('UIAttributesGraphicTransformationSkew0010_006')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().scale({ x: 1, y: 1, z: 2 });
+ })
+ }
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.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/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e83aa6d3e23d39a85f07f792b1c526c3360a412f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0020.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 { matrix4 } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIAttributesGraphicTransformationSkew0020 {
+ @State matrix: matrix4.Matrix4Transit = matrix4.identity().translate({ x: 0, y: 0, z: 0 });
+
+ build() {
+ Column() {
+ Column() {
+ Column() {
+ }
+ .transform(this.matrix)
+ .height(50)
+ .width(50)
+ .backgroundColor('red')
+ }
+ .height(60)
+ .width(60)
+ .backgroundColor(Color.Gray)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ Button('x+10')
+ .id('UIAttributesGraphicTransformationSkew0020_001')
+ .margin({ top: 100 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().translate({ x: 10, y: 0, z: 0 });
+ })
+ Button('y+10')
+ .id('UIAttributesGraphicTransformationSkew0020_002')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().translate({ x: 0, y: 10, z: 0 });
+ })
+ Button('z+10')
+ .id('UIAttributesGraphicTransformationSkew0020_003')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().translate({ x: 0, y: 0, z: 10 });
+ })
+ Button('x-10')
+ .id('UIAttributesGraphicTransformationSkew0020_004')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().translate({ x: -10, y: 0, z: 0 });
+ })
+ Button('y-10')
+ .id('UIAttributesGraphicTransformationSkew0020_005')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().translate({ x: 0, y: -10, z: 0 });
+ })
+ Button('z-10')
+ .id('UIAttributesGraphicTransformationSkew0020_006')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().translate({ x: 0, y: 0, z: -10 });
+ })
+
+ }
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.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/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ce009662736b82292c170552f9f5387c377e1967
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0030.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 { matrix4 } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIAttributesGraphicTransformationSkew0030 {
+ @State matrix: matrix4.Matrix4Transit = matrix4.identity().rotate({ x: 0, y: 0, z: 0, angle: 0 });
+
+ build() {
+ Column() {
+ Column() {
+ }
+ .transform(this.matrix)
+ .height(50)
+ .width(50)
+ .backgroundColor('red')
+ Button('x+∠+45')
+ .id('UIAttributesGraphicTransformationSkew0030_001')
+ .margin({ top: 100 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().rotate({ x: 1, y: 0, z: 0, angle: 45 });
+ })
+ Button('y+∠+45')
+ .id('UIAttributesGraphicTransformationSkew0030_002')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().rotate({ x: 0, y: 1, z: 0, angle: 45 });
+ })
+ Button('z+∠+45')
+ .id('UIAttributesGraphicTransformationSkew0030_003')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().rotate({ x: 0, y: 0, z: 1, angle: 45 });
+ })
+ Button('x+∠-45')
+ .id('UIAttributesGraphicTransformationSkew0030_004')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().rotate({ x: 1, y: 0, z: 0, angle: -45 });
+ })
+ Button('y+∠-45')
+ .id('UIAttributesGraphicTransformationSkew0030_005')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().rotate({ x: 0, y: 1, z: 0, angle: -45 });
+ })
+ Button('z+∠45')
+ .id('UIAttributesGraphicTransformationSkew0030_006')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().rotate({ x: 0, y: 0, z: 1, angle: -45 });
+ })
+
+ }
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.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/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4429f6e9d4045f5bd8be41341483419e3246400b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0040.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 { matrix4 } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIAttributesGraphicTransformationSkew0040 {
+ @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0);
+ @State translateX: number = 0;
+ @State translateY: number = 0;
+ @State scaleX: number = 1;
+ @State scaleY: number = 1;
+ @State rotateAngle: number = 0;
+
+ build() {
+ Column() {
+ Column() {
+ }
+ .scale({ x: this.scaleX, y: this.scaleY})
+ .translate({ x: this.translateX, y: this.translateY})
+ .rotate({ angle: this.rotateAngle})
+ .height(50)
+ .width(50)
+ .backgroundColor('red')
+ Button('scale')
+ .id('UIAttributesGraphicTransformationSkew0040_001')
+ .margin({ top: 50 })
+ .onClick(() => {
+ this.scaleX = 2;
+ this.scaleY = 2;
+ })
+ Button('translate')
+ .id('UIAttributesGraphicTransformationSkew0040_002')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.translateX = -50;
+ this.translateY = -50;
+ })
+ Button('rotate')
+ .id('UIAttributesGraphicTransformationSkew0040_003')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.rotateAngle = 45;
+ })
+ }
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.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/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..715e777ffcf3e2d3edd5eb2146dd76559c002357
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0050.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 { matrix4 } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIAttributesGraphicTransformationSkew0050 {
+ @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0);
+
+ build() {
+ Column() {
+ Column() {
+ }
+ .transform(this.matrix)
+ .height(50)
+ .width(50)
+ .backgroundColor('red')
+
+ Button('x+1')
+ .id('UIAttributesGraphicTransformationSkew0050_001')
+ .margin({ top: 100 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(1, 0);
+ })
+ Button('y+1')
+ .id('UIAttributesGraphicTransformationSkew0050_002')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(0, 1);
+ })
+ Button('x-1')
+ .id('UIAttributesGraphicTransformationSkew0050_003')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(-1, 0);
+ })
+ Button('y-1')
+ .id('UIAttributesGraphicTransformationSkew0050_004')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(0, -1);
+ })
+ }
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.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/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2909c275f67871ccd053a92422b084092826a7c4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0060.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 { matrix4 } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIAttributesGraphicTransformationSkew0060 {
+ @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(2, 2);
+
+ build() {
+ Column() {
+ Column() {
+ }
+ .transform(this.matrix)
+ .height(50)
+ .width(50)
+ .backgroundColor('red')
+
+ Button('x=null')
+ .id('UIAttributesGraphicTransformationSkew0060_001')
+ .margin({ top: 100 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(null, 0);
+ })
+ Button('y=null')
+ .id('UIAttributesGraphicTransformationSkew0060_002')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(0, null);
+ })
+ }
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.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/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c977eaff80349d8e04adc23b09cc988655acf758
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0070.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 { matrix4 } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIAttributesGraphicTransformationSkew0070 {
+ @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(2, 2);
+
+ build() {
+ Column() {
+ Column() {
+ }
+ .transform(this.matrix)
+ .height(50)
+ .width(50)
+ .backgroundColor('red')
+
+ Button('x=undefined')
+ .id('UIAttributesGraphicTransformationSkew0070_001')
+ .margin({ top: 100 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(undefined, 0);
+ })
+ Button('y=undefined')
+ .id('UIAttributesGraphicTransformationSkew0070_002')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(0, undefined);
+ })
+ }
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.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/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1f96c4403f1ba842fa0290fd4dc3e8fa55671f79
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0080.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 { matrix4 } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIAttributesGraphicTransformationSkew0080 {
+ @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0);
+
+ build() {
+ Column() {
+ Column() {
+ }
+ .transform(this.matrix)
+ .height(50)
+ .width(50)
+ .backgroundColor('red')
+
+ Button('x=-inf')
+ .id('UIAttributesGraphicTransformationSkew0080_001')
+ .margin({ top: 100 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(Infinity, 0);
+ })
+ Button('y=-inf')
+ .id('UIAttributesGraphicTransformationSkew0080_002')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(0, Infinity);
+ })
+ }
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.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/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d28e419ff0b51da819197e0c25958300b538f289
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0090.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 { matrix4 } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIAttributesGraphicTransformationSkew0090 {
+ @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0);
+
+ build() {
+ Column() {
+ Column() {
+ }
+ .transform(this.matrix)
+ .height(50)
+ .width(50)
+ .backgroundColor('red')
+
+ Button('x=-inf')
+ .id('UIAttributesGraphicTransformationSkew0090_001')
+ .margin({ top: 100 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(-Infinity, 0);
+ })
+ Button('y=-inf')
+ .id('UIAttributesGraphicTransformationSkew0090_002')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(0, -Infinity);
+ })
+ }
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.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/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2c6581f5e417e06ac738b50da866293c99285261
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100.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 { matrix4 } from '@kit.ArkUI';
+
+@Entry
+@Component
+struct UIAttributesGraphicTransformationSkew0100 {
+ @State matrix: matrix4.Matrix4Transit = matrix4.identity().scale({ x: 1, y: 1, z: 1 });
+
+ build() {
+ Column() {
+ Column() {
+ }
+ .transform(this.matrix)
+ .height(50)
+ .width(50)
+ .backgroundColor('red')
+ Button('scale:x*0.5')
+ .id('UIAttributesGraphicTransformationSkew0100_001')
+ .margin({ top: 100 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().scale({ x: 0.5, y: 1, z: 1 });
+ })
+ Button('scale:y*0.5')
+ .id('UIAttributesGraphicTransformationSkew0100_002')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().scale({ x: 2, y: 1, z: 1 });
+ })
+ Button('translate:z*0.5')
+ .id('UIAttributesGraphicTransformationSkew0100_003')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().translate({ x: 10, y: 0, z: 0 });
+ })
+ Button('translate:x*2')
+ .id('UIAttributesGraphicTransformationSkew0100_004')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().translate({ x: -10, y: 0, z: 0 });
+ })
+
+ Button('rotate:x+∠+45')
+ .id('UIAttributesGraphicTransformationSkew0100_005')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().rotate({ x: 1, y: 0, z: 0, angle: 45 });
+ })
+ Button('rotate:y+∠+45')
+ .id('UIAttributesGraphicTransformationSkew0100_006')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().rotate({ x: 0, y: 1, z: 0, angle: 45 });
+ })
+ Button('skew:x+1')
+ .id('UIAttributesGraphicTransformationSkew0100_007')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(1, 0);
+ })
+ Button('skew:y+1')
+ .id('UIAttributesGraphicTransformationSkew0100_008')
+ .margin({ top: 10 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().skew(0, 1);
+ })
+ }
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.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/UIAttributesGraphictransformationBackwardanalysis/UIAttributesGraphictransformationBackwardanalysis0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationBackwardanalysis/UIAttributesGraphictransformationBackwardanalysis0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a9104910c95b820707db58fcab51801e04086bb3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationBackwardanalysis/UIAttributesGraphictransformationBackwardanalysis0010.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 { matrix4 } from '@kit.ArkUI'
+
+@Entry
+@Component
+struct UIAttributesGraphictransformationBackwardanalysis0010 {
+ @State matrix: matrix4.Matrix4Transit = matrix4.identity().scale({
+ x: 1,
+ y: 1,
+ z: 1,
+ centerX: 0,
+ centerY: 0
+ });
+
+ build() {
+ Column() {
+ Image('image2.png')
+ .width(60)
+ .transform(this.matrix)
+ .margin({ top: 50 })
+
+ Button('放大原来的2倍')
+ .id('button1')
+ .margin({ top: 50 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().scale({
+ x: 2,
+ y: 2,
+ z: 2,
+ centerX: 0,
+ centerY: 0
+ });
+ })
+
+ Button('恢复原始大小')
+ .id('button2')
+ .margin({ top: 20 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().scale({
+ x: 1,
+ y: 1,
+ z: 1,
+ centerX: 0,
+ centerY: 0
+ });
+ })
+
+ Button('缩小原来的0.5倍')
+ .id('button3')
+ .margin({ top: 20 })
+ .onClick(() => {
+ this.matrix = matrix4.identity().scale({
+ x: 0.5,
+ y: 0.5,
+ z: 0.5,
+ centerX: 0,
+ centerY: 0
+ });
+ })
+ }
+ .width('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c512d8ff4d60abe66e745e1085d43b7fb227bbd3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0020.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 UIAttributesGraphictransformationInterface0020 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('rotate({angle:-90})')
+ Image('cat.jpg')
+ .width(100)
+ .rotate({angle:-90})
+ .margin({top:8})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cb038c2eaa630864f8ece61fd8a18571e51594c2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0030.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 UIAttributesGraphictransformationInterface0030 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('rotate:{angle:90}')
+ Image('cat.jpg')
+ .width(100)
+ .rotate({angle:90})
+ .margin({top:8})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..328bd90e02b7a1866873bd459140064aa7a25f02
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0090.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 UIAttributesGraphictransformationInterface0090 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('scale:{y:1.5}')
+ Image('rotate,默认参数')
+ .width(100)
+ .rotate({x:0,y:0,z:0,angle:0,centerX:"50%",centerY:"50%"})
+ .margin({top:8})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6e271a5cfdb0076d67503e88b763954c021ccdd7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0160.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 UIAttributesGraphictransformationInterface0160 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('rotate({x:0,y:1,z:0,angle:45})')
+ Image('cat.jpg')
+ .width(100)
+ .rotate({x:0,y:1,z:0,angle:45})
+ .margin({top:8})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e2bfd759203cfb59d1a5287079aacc70c7177071
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0210.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 UIAttributesGraphictransformationInterface0210 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('不设置rotate')
+ Image('cat.jpg')
+ .width(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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9015285a8c64d95f0cb71659f9379eccfdda9a58
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0220.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 UIAttributesGraphictransformationInterface0220 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('不设置scale')
+ Image('cat.jpg')
+ .width(100)
+ .margin({top:8})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0804efb966d1cf4ab967bcfcec3fb89a26fb3514
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0230.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 UIAttributesGraphictransformationInterface0230 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(400)
+ Text('translate({x:0,y:0,z:0})')
+ Image('cat.jpg')
+ .width(400)
+ .translate({x:0,y:0,z:0})
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b43ea442594bf79fbc9a2079f5a46a5a4d702b5f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0240.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 UIAttributesGraphictransformationInterface0240 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(400)
+ Text('translate {x:"sd30",y:"sd30",z:"sd30"}')
+ Image('cat.jpg')
+ .width(400)
+ .translate({x:"sd30",y:"sd30",z:"sd30"})
+
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..efe0dc4e44600c83c393dcb32ef939d2caa5b9af
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0250.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 UIAttributesGraphictransformationInterface0250 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('translate{x:-100}')
+ Image('cat.jpg')
+ .width(100)
+ .translate({x:-100})
+ .margin({top:8})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..da6ba1b8299a1aed88e454e55dca51068cd27a13
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0260.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 UIAttributesGraphictransformationInterface0260 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('scale:{y:1.5}')
+ Image('cat.jpg')
+ .width(100)
+ .translate({x:"100px"})
+ .margin({top:8})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..83bcad3aac3ebaf6ca26f91d719e9314838f4451
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0270.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 UIAttributesGraphictransformationInterface0270 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('scale:{y:1.5}')
+ Image('translate,设置参数{x:40,y:30}')
+ .width(100)
+ .translate({x:40,y:30})
+ .margin({top:8})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a6b9967c4cb8ddb56338929ecea4c5c3b59bcaef
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0290.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 UIAttributesGraphictransformationInterface0290 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('scale:{x:1,y:1,z:1,centerX:"50%",centerY:"50%"}')
+ Image('cat.jpg')
+ .width(100)
+ .scale({x:1,y:1,z:1,centerX:"50%",centerY:"50%"})
+ .margin({top:8})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..03dc612551417fd3328069cef11b996294c6dfaa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0310.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 UIAttributesGraphictransformationInterface0310 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(400)
+ Text('centerY:"50%"')
+ Image('cat.jpg')
+ .width(400)
+ .scale({centerY:"50%"})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6dd2896bb49c1e7c6008ec93be4a2557d4981bd8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0360.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 UIAttributesGraphictransformationInterface0360 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('scale:{x:1.2,centerY:"20px"}')
+ Image('cat.jpg')
+ .width(100)
+ .scale({x:1.2,centerY:"20px"})
+ .margin({top:8})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0370.ets
new file mode 100644
index 0000000000000000000000000000000000000000..47885aa701f2e6a1f4b1ef57310a929bbc8c79e1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0370.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 UIAttributesGraphictransformationInterface0370 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('scale:{x:1.5,centerX:"dfd",centerY:"gj"}')
+ Image('cat.jpg')
+ .width(100)
+ .scale({x:1.5,centerX:"dfd",centerY:"gj"})
+ .margin({top:8})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..36e46e00a05fbe408190c3a5173fb0ef1b35a620
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0380.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 UIAttributesGraphictransformationInterface0380 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('scale,设置参数{y:0}')
+ Image('cat.jpg')
+ .width(100)
+ .scale({y:0})
+ .margin({top:8})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..aea8cb0c08d1de075bce3a752815bb4181c6579e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0390.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 UIAttributesGraphictransformationInterface0390 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('scale:{y:1.5}')
+ Image('cat.jpg')
+ .width(100)
+ .scale({y:1.5})
+ .margin({top:8})
+ }
+ .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/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2cd872a2f02e4287edd5bc905a07c98a9bc3104e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0400.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 UIAttributesGraphictransformationInterface0400 {
+ build() {
+ Column({space:3}){
+ Image('cat.jpg')
+ .width(100)
+ Text('scale:{z:1}')
+ Image('cat.jpg')
+ .width(100)
+ .scale({z:1})
+ .margin({top:8})
+ }
+ .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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1b75ef8868d3e1b5de4b9009362385ace04fdf7f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0010.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesHovereffectDoubleStrokeInterface0010 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b271c831ff2bcb191882d476f9bbefd79acc2079
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0020.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesHovereffectDoubleStrokeInterface0020 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..36b3bc58f6c8e432f0a712171cdfed99ff75e69a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0030.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 UIAttributesHovereffectDoubleStrokeInterface0030 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..df1fa9cf49c9875fc5495281e83b1c47d5a76cb9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0040.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 UIAttributesHovereffectDoubleStrokeInterface0040 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..16c1652ac1665937eaf14237261e1362009ff0a6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0050.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 UIAttributesHovereffectDoubleStrokeInterface0050 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..980ff7e7e8f9f6253941ff9b5dc4948f61eafadf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0060.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 UIAttributesHovereffectDoubleStrokeInterface0060 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3e01b2825826a86162248761bb99d806ecd3525e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0070.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesHovereffectDoubleStrokeInterface0070 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth({left: 1, right: 0, top: 4, bottom: -1})
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5abb56d5216a8641c13c87d9d9bdd0ea08de9de2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0080.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesHovereffectDoubleStrokeInterface0080 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineColor(Color.Red)
+ .outlineWidth(5)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d60e8db501303165ef37eb05b149338a3bd2a1a1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0090.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesHovereffectDoubleStrokeInterface0090 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth({left: 1, right: 0, top: 4, bottom: 1})
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c1b71060b84dfd44fb1217c73c0fbbd132a3f75e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0100.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesHovereffectDoubleStrokeInterface0100 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a7bc46154dbfa6adbdccbd32783ba100d2448977
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0110.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 UIAttributesHovereffectDoubleStrokeInterface0110 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineRadius({topLeft: 16, topRight: 0, bottomLeft: -1, bottomRight: 1})
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e47eaeadba63b0a5e5c0a14d5be1b280170c2370
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0120.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 UIAttributesHovereffectDoubleStrokeInterface0120 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineRadius({topLeft: 16, topRight: 0, bottomLeft: -1, bottomRight: 1})
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0645d5dc5d240fa2609671e413368fe6aa6a2049
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0130.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 UIAttributesHovereffectDoubleStrokeInterface0130 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineStyle({top: OutlineStyle.DASHED, right: OutlineStyle.DOTTED, bottom: OutlineStyle.SOLID, left: OutlineStyle.DASHED})
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4c2c16307b1b3693b74068bfb09a92c426002dc9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0140.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesHovereffectDoubleStrokeInterface0140 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7b9faef1ccb5bbf2e9b76fb61ab95a4d1b1557d3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0150.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesHovereffectDoubleStrokeInterface0150 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d65718d465459b9644b2d4390c0d62bfbcf06c66
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0160.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesHovereffectDoubleStrokeInterface0160 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor($r('app.color.colorRed'))
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..70a6e5708a74fc8e824f782e7da03d2c402f0adc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0170.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesHovereffectDoubleStrokeInterface0170 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor($r('app.color.colorRed'))
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..44527cf1c19ae1739ab23c76a1c27a481c8ad779
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0180.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 UIAttributesHovereffectDoubleStrokeInterface0180 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ .borderWidth(5)
+ .borderColor(Color.Yellow)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..170960fbc6ba8ef8f70ae1417c56a06c46893041
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0190.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 UIAttributesHovereffectDoubleStrokeInterface0190 {
+ @State showOutlineWidth: boolean = true;
+
+ build() {
+ Column() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(this.showOutlineWidth ? 5 : 0)
+ .outlineColor(Color.Red)
+ .borderWidth(this.showOutlineWidth ? 0 : 5)
+ .borderColor(Color.Yellow)
+ Button('Switch')
+ .onClick(() => {
+ this.showOutlineWidth = !this.showOutlineWidth;
+ })
+ .width(200)
+ .height(40)
+ .fontSize(16)
+ .backgroundColor('#007DFF')
+ .margin(20)
+ .id('buttonId')
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..82f2c280aed6b905a3c38d645808ae25e9dda39c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0200.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesHovereffectDoubleStrokeInterface0200 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..61698420b36fef9c0a85f3786dc9acef937e75f3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0210.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 UIAttributesHovereffectDoubleStrokeInterface0210 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ .outlineRadius(5)
+ .borderWidth(5)
+ .borderColor(Color.Yellow)
+ .borderRadius(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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..286ee4e240ab8e7dd5c4013ed391a4ff99cadb72
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0220.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 UIAttributesHovereffectDoubleStrokeInterface0220 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ .outlineRadius(15)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ddbac1c7e0db4c2e048320df30e6c05fbef1a17b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0230.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 UIAttributesHovereffectDoubleStrokeInterface0230 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ .outlineRadius(15)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b4697ad2bae38aa321a7346225dac741629301a6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0240.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 UIAttributesHovereffectDoubleStrokeInterface0240 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineStyle(OutlineStyle.DASHED)
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d7886f8b8a60bb706d698ffbc71d84e2de5a2b3e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0250.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 UIAttributesHovereffectDoubleStrokeInterface0250 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineStyle(OutlineStyle.DOTTED)
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d72c82f3bf9664429e12936b5077849c846a8e83
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0260.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 UIAttributesHovereffectDoubleStrokeInterface0260 {
+ build() {
+ Row() {
+ Text('Hello World')
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineStyle(OutlineStyle.SOLID)
+ .outlineWidth(5)
+ .outlineColor(Color.Red)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a8fe4b57cdda48764d2d38ec80c57f51977b2d4f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0010.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0010 {
+ filter : uiEffect.Filter = uiEffect.createFilter().pixelStretch([2,0.1,2,0.1],uiEffect.TileMode.CLAMP)
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .foregroundFilter(this.filter)
+ .foregroundFilter(uiEffect.createFilter().pixelStretch([4,2,4,2],uiEffect.TileMode.REPEAT))
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..44f1c46247e84ca073289980bc58fde12eea39e1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0020.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0020 {
+ filter : uiEffect.Filter = uiEffect.createFilter().pixelStretch([-1,-1,-1,-1],uiEffect.TileMode.CLAMP)
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .foregroundFilter(this.filter)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..60574bd45993df4ec16ad39f62bce53a674a99e1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0030.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0030 {
+ filter : uiEffect.Filter = uiEffect.createFilter().pixelStretch([0.1,0.1,0.1,0.1],uiEffect.TileMode.CLAMP)
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .foregroundFilter(this.filter)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9a4fad3d51efa9354065f00260a909586f9bab1d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0040.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0040 {
+ filter : uiEffect.Filter = uiEffect.createFilter().pixelStretch([0,0,0,0],uiEffect.TileMode.CLAMP)
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .foregroundFilter(this.filter)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3ef954e20364e8d96190e9f59b8c85cf48adcfd0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0050.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0050 {
+ filter : uiEffect.Filter = uiEffect.createFilter().pixelStretch(undefined,uiEffect.TileMode.CLAMP)
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .foregroundFilter(this.filter)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fd8a573c5a5d555aebf7f2d71b666e8401870c58
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0060.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0060 {
+ filter : uiEffect.Filter = uiEffect.createFilter().pixelStretch([2,0.1,2,0.1],uiEffect.TileMode.CLAMP)
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .foregroundFilter(this.filter)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..43b32938129dba190acdf7edf3d7e3f9b28273f5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0070.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0070 {
+ filter : uiEffect.Filter = uiEffect.createFilter().pixelStretch([2,0.1,2,0.1],uiEffect.TileMode.DECAL)
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .foregroundFilter(this.filter)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a4038bdb81f59024cb9ee0a9e1fca9a3933b8bdc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0080.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0080 {
+ filter : uiEffect.Filter = uiEffect.createFilter().pixelStretch([2,0.1,2,0.1],uiEffect.TileMode.MIRROR)
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .foregroundFilter(this.filter)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b73276296686d4ad5c0d4ace7e46fa87b78508c9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0090.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0090 {
+ filter : uiEffect.Filter = uiEffect.createFilter().pixelStretch([2,0.1,2,0.1],uiEffect.TileMode.REPEAT)
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .foregroundFilter(this.filter)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..61546134212b066a7a0b2f5f748490d99cf5a333
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0100.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 UIAttributesImageEffectFilter0100 {
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .scale({x:0.5,y:2})
+ .width(400)
+ .translate({x:100,y:50})
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..608301e32e9af7d2671d75a189bc32d47f1eda5a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0110.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 UIAttributesImageEffectFilter0110 {
+ build() {
+ Row(){
+ Stack(){
+ Image('cat.jpg').width(400)
+ Image('cat.jpg').width(200)
+ }
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5f75190d21ad28d1b58a4221efed90bccc94cad9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0120.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0120 {
+ effect : uiEffect.VisualEffect =
+ uiEffect.createEffect()
+ .backgroundColorBlender({
+ cubicRate:0,
+ quadraticRate:0,
+ linearRate:0,
+ degree:0,
+ saturation:0,
+ positiveCoefficient:[0,0,0],
+ negativeCoefficient:[0,0,0],
+ fraction:0
+ })
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .visualEffect(this.effect)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cf341ed575eb47be4996450aee2c809f8a30661f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0130.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0130 {
+ effect : uiEffect.VisualEffect =
+ uiEffect.createEffect()
+ .backgroundColorBlender({
+ cubicRate:20,
+ quadraticRate:20,
+ linearRate:20,
+ degree:20,
+ saturation:20,
+ positiveCoefficient:[20,20,20],
+ negativeCoefficient:[20,20,20],
+ fraction:1
+ })
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .visualEffect(this.effect)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6f47a797b4107e39caf0555adab3ca8b50b8ec74
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0140.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0140 {
+ effect : uiEffect.VisualEffect =
+ uiEffect.createEffect()
+ .backgroundColorBlender({
+ cubicRate:-10,
+ quadraticRate:-10,
+ linearRate:-10,
+ degree:-10,
+ saturation:-10,
+ positiveCoefficient:[-10,-10,-10],
+ negativeCoefficient:[-10,-10,-10],
+ fraction:1
+ })
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .visualEffect(this.effect)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8ea98887129fa12b5e7c8cfd791988a517f99fa4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0150.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0150 {
+ effect : uiEffect.VisualEffect =
+ uiEffect.createEffect()
+ .backgroundColorBlender({
+ cubicRate:-100,
+ quadraticRate:-100,
+ linearRate:-100,
+ degree:-100,
+ saturation:-100,
+ positiveCoefficient:[-100,-100,-100],
+ negativeCoefficient:[-100,-100,-100],
+ fraction:-100
+ })
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .visualEffect(this.effect)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..34ceb31b45ceed357d77d92230e67faf3e64606f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0160.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0160 {
+ effect : uiEffect.VisualEffect =
+ uiEffect.createEffect()
+ .backgroundColorBlender({
+ cubicRate:-20,
+ quadraticRate:-20,
+ linearRate:-20,
+ degree:-20,
+ saturation:1,
+ positiveCoefficient:[-20,-20,-20],
+ negativeCoefficient:[-20,-20,-20],
+ fraction:1
+ })
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .visualEffect(this.effect)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a52232dc3a8056da5b820879f89a5c550d7cac85
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0170.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0170 {
+
+ effect : uiEffect.VisualEffect =
+ uiEffect.createEffect()
+ .backgroundColorBlender({
+ cubicRate:0,
+ quadraticRate:0,
+ linearRate:0,
+ degree:0,
+ saturation:1,
+ positiveCoefficient:[0,0,0],
+ negativeCoefficient:[0,0,0],
+ fraction:0
+ })
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .visualEffect(this.effect)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b0cd43d1fee0112136925b99e842535da426dbf8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0180.ets
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0180 {
+ filter : uiEffect.Filter = uiEffect.createFilter().blur(-10)
+ build() {
+ Row({space:20}){
+ Image('cat.jpg')
+ .width(200)
+ .backgroundFilter(this.filter)
+ Image('cat.jpg')
+ .width(200)
+ .compositingFilter(this.filter)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e0d525abb1f3054cdeb69fd5ae7d13e72cde8e64
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0190.ets
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0190 {
+ filter : uiEffect.Filter = uiEffect.createFilter().blur(0)
+ build() {
+ Row({space:20}){
+ Image('cat.jpg')
+ .width(200)
+ .backgroundFilter(this.filter)
+ Image('cat.jpg')
+ .width(200)
+ .compositingFilter(this.filter)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4df6ff58c6c9cb54c282cf50e1a013f71ffb704c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0200.ets
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0200 {
+ filter : uiEffect.Filter = uiEffect.createFilter().blur(10)
+ build() {
+ Row({space:20}){
+ Image('cat.jpg')
+ .width(200)
+ .backgroundFilter(this.filter)
+ Image('cat.jpg')
+ .width(200)
+ .compositingFilter(this.filter)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b62329a58472adc16af9093ab45f4795a8f19a1b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0210.ets
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { effectKit, uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0210 {
+ filter : uiEffect.Filter = uiEffect.createFilter().blur(20)
+ build() {
+ Row({space:20}){
+ Image('cat.jpg')
+ .width(200)
+ .backgroundFilter(this.filter)
+ Image('cat.jpg')
+ .width(200)
+ .compositingFilter(this.filter)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ca86f8b65135ca7968de8ca098536afe9a52fdce
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0220.ets
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0220 {
+ filter : uiEffect.Filter = uiEffect.createFilter().blur(undefined)
+ build() {
+ Row({space:20}){
+ Image('cat.jpg')
+ .width(200)
+ .backgroundFilter(this.filter)
+ Image('cat.jpg')
+ .width(200)
+ .compositingFilter(this.filter)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6a7f01e3ffda59dd6f672e9c80e40f90c7c9f573
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0230.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0230 {
+ effect : uiEffect.VisualEffect =
+ uiEffect.createEffect()
+ .backgroundColorBlender({
+ cubicRate:0,
+ quadraticRate:0,
+ linearRate:0.5534,
+ degree:-0.0083,
+ saturation:3,
+ positiveCoefficient:[2.3,4.5,2],
+ negativeCoefficient:[0.5,2,0.5],
+ fraction:0
+ })
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .visualEffect(this.effect)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..367ebf4119bf9c084f972ba54df5b93f9255a7ec
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0240.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0240 {
+ effect : uiEffect.VisualEffect =
+ uiEffect.createEffect()
+ .backgroundColorBlender({
+ cubicRate:10,
+ quadraticRate:10,
+ linearRate:10,
+ degree:10,
+ saturation:10,
+ positiveCoefficient:[10,10,10],
+ negativeCoefficient:[10,10,10],
+ fraction:1
+ })
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .visualEffect(this.effect)
+ }.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/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e27c482a039548cae2c5339788ccd5f8041dd2c2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0250.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 { drawing } from '@kit.ArkGraphics2D';
+// let imgFilter = drawing.ImageFilter.createBlurImageFilter(5, 10, drawing.TileMode.CLAMP);
+// let colorFilter = drawing.ColorFilter.createSRGBGammaToLinear();
+// let imgFilter1 = drawing.ImageFilter.createFromColorFilter(colorFilter, imgFilter);
+import { uiEffect } from "@kit.ArkGraphics2D";
+@Entry
+@Component
+struct UIAttributesImageEffectFilter0250 {
+ effect : uiEffect.VisualEffect =
+ uiEffect.createEffect()
+ .backgroundColorBlender({
+ cubicRate:100,
+ quadraticRate:100,
+ linearRate:100,
+ degree:100,
+ saturation:100,
+ positiveCoefficient:[100,100,100],
+ negativeCoefficient:[100,100,100],
+ fraction:100
+ })
+ build() {
+ Row(){
+ Image('cat.jpg')
+ .width(400)
+ .visualEffect(this.effect)
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f11ad218aeb16b15577eefc56b5c4a19a058c528
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0020.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 UIAttributesImageEffectProjection0020 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2aff141b96dd0d6de54f7b3b8a755459e6692846
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0030.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 UIAttributesImageEffectProjection0030 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, 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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1b5659ae4e2b6613d884979713b365b4a27339d6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0040.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0040 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: false})
+ .colorBlend(Color.Green)
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3bef49365d62e39a79d32fecf533ba0dfe7b1497
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0050.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0050 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .backgroundColor(Color.Green)
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a3c570ad42472d41d47448d67a7bcebb8c701b65
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0060.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0060 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .colorBlend(Color.Green)
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8c1996974a8195b0324e8cf9beba5d0fc449dbb4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0070.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0070 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .linearGradient({colors: [[Color.Red, 0], [Color.Yellow, 0.5], [Color.Blue, 1]]})
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..787ea9be62007b86d2fc09daedb767bfa5d5a2fb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0080.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0080 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .sweepGradient({center: [100, 100], start: 0, end: 300, colors: [[Color.Red, 0], [Color.Yellow, 0.5], [Color.Blue, 1]]})
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a553522361d7920121727409bdf099d12efa8b57
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0090.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0090 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .radialGradient({center: [100, 100], radius: 100, colors: [[Color.Red, 0], [Color.Yellow, 0.5], [Color.Blue, 1]]})
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d9e5e5df3021d4ba120ef01f1b0e018b55e43056
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0100.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0100 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .foregroundColor(Color.Green)
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9f68b8e8a7b3c9a4b60014fc8bbb4873565e8d91
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0110.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0110 {
+
+ build() {
+ Column() {
+ Text('Hello World')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .fontColor(Color.Green)
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..452a094273eba9c9d564b92a21ba969d8787b301
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0120.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0120 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .opacity(0.5)
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b3564f216c4d654d13b644fc04c61e7843f97981
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0130.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0130 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .opacity(0)
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..afdce299162f792e86af22819670f69b629245fb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0140.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0140 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .opacity(1)
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9011a072619d961e23326af6f927e41720f3519e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0150.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0150 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .visibility(Visibility.None)
+ .shadow({color: Color.Orange, radius: 10, 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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f2fb2e45faf6fa1e3cb6956abd8bd6fc93906ffe
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0160.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0160 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .visibility(Visibility.Hidden)
+ .shadow({color: Color.Orange, radius: 10, 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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ab319ca2696faade12b145f2575c7d2f6607c342
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0170.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0170 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .visibility(Visibility.Visible)
+ .shadow({color: Color.Orange, radius: 10, 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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d02f52ba60e5450e463395707e9543ac6925626c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0180.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0180 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .offset({x:0, y:0})
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d7196e26cc4fab5ba4854ef91f405d9848bcf11b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0190.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0190 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .offset({x:50, y:50})
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0af47d1f2a6a2df3ffca660aeafd22d6c1996cc5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0200.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0200 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .offset({x:-50, y:-50})
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9a44ce318d27fb6d29ee1fb0f8e4c2da3567d857
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0210.ets
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+@Entry
+@Component
+struct UIAttributesImageEffectProjection0210 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, fill: true})
+ .offset({x:$r('app.integer.integer60'), y:$r('app.integer.integer60')})
+ }.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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a96cc225fe5a05065fb812e7d9a0d6c433074806
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0220.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 UIAttributesImageEffectProjection0220 {
+
+ build() {
+ Column() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Orange, radius: 10, 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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9ee465dbe702628d56a98fa31eafde59239dfbe7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0230.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 UIAttributesImageEffectProjection0230 {
+
+ build() {
+ Column() {
+ Row() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Green, radius: 10, fill: true})
+ }
+ .shadow({color: Color.Orange, radius: 10, 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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b3d2250b8dc4be89e2cbb8ce74d99e9aec47144d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0240.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 UIAttributesImageEffectProjection0240 {
+
+ build() {
+ Column() {
+ Row() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Green, radius: 10, fill: true})
+ }
+ .shadow({color: Color.Orange, radius: 10, 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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e3363ff16a9313e2c6dd9c21dc2acb7b40e960ce
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0250.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 UIAttributesImageEffectProjection0250 {
+
+ build() {
+ Column() {
+ Row() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Green, radius: 10, fill: false})
+ }
+ .shadow({color: Color.Orange, radius: 10, 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/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d7b469f0b2a9587b8de125acf4cc45f4985001b1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0260.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 UIAttributesImageEffectProjection0260 {
+
+ build() {
+ Column() {
+ Row() {
+ Image('')
+ .width(200)
+ .height(200)
+ .shadow({color: Color.Green, radius: 10, fill: false})
+ }
+ .shadow({color: Color.Orange, radius: 10, 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/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..eac8fdaddb8352a1fd5c82155ce047bd72042b53
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0010.ets
@@ -0,0 +1,134 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+class BasicDataSource implements IDataSource {
+ private listenerList: DataChangeListener[] = []
+ private originDataArray: string[] = [];
+
+ public totalCount(): number {
+ return 0;
+ }
+
+ public getData(index: number): string {
+ return this.originDataArray[index];
+ }
+
+ registerDataChangeListener(listener: DataChangeListener): void {
+ if (this.listenerList.indexOf(listener) < 0) {
+ console.info('add listener');
+ this.listenerList.push(listener);
+ }
+ }
+
+ unregisterDataChangeListener(listener: DataChangeListener): void {
+ const pos = this.listenerList.indexOf(listener);
+ if (pos >= 0) {
+ console.info('remove listener');
+ this.listenerList.splice(pos, 1);
+ }
+ }
+
+ notifyDataReload(): void {
+ this.listenerList.forEach(listener => {
+ listener.onDataReloaded();
+ })
+ }
+
+ notifyDataAdd(index: number): void {
+ this.listenerList.forEach(listener => {
+ listener.onDataAdd(index);
+ })
+ }
+
+ notifyDataChange(index: number): void {
+ this.listenerList.forEach(listener => {
+ listener.onDataChange(index);
+ })
+ }
+
+ notifyDataDelete(index: number): void {
+ this.listenerList.forEach(listener => {
+ listener.onDataDelete(index);
+ })
+ }
+
+ notifyDataMove(from: number, to: number): void {
+ this.listenerList.forEach(listener => {
+ listener.onDataMove(from, to);
+ })
+ }
+}
+
+export class DataSource extends BasicDataSource {
+ private dataArray: string[] = [];
+
+ public totalCount(): number {
+ return this.dataArray.length;
+ }
+
+ public getData(index: number): string {
+ return this.dataArray[index];
+ }
+
+ public addData(index: number, data: string): void {
+ this.dataArray.splice(index, 0, data);
+ this.notifyDataAdd(index);
+ }
+
+ public pushData(data: string): void {
+ this.dataArray.push(data);
+ this.notifyDataAdd(this.dataArray.length - 1);
+ }
+
+ public reloadData(list: string[]) {
+ this.dataArray = list
+ this.notifyDataReload() //重新加载
+ }
+}
+
+@Entry
+@Component
+struct UIAttributesImageEffectUseShadowBatching0010 {
+ @State dataList: DataSource = new DataSource()
+ colors: Color[] = [Color.Blue, Color.Green, Color.Red, Color.Yellow]
+
+ aboutToAppear(): void {
+ for (let index = 0; index < 20; index++) {
+ this.dataList.pushData(index.toString());
+ }
+ }
+
+ build() {
+ Column() {
+ List({ space: 20 }) {
+ LazyForEach(this.dataList, (index: number) => {
+ ListItem() {
+ Text(index.toString())
+ .width("100%")
+ .textAlign(TextAlign.Center)
+ }
+ .shadow({ radius: 200, color: this.colors[index%4] })
+ .height(120)
+ .borderRadius(8)
+ .margin({ right: 10, left: 10 })
+ })
+ }.useShadowBatching(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/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..37dfb8f4afa49f7c7e537ce928a44fdfcf07ed54
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0020.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.
+ */
+//list,100组件设置阴影,父组件true
+@Entry
+@Component
+struct UIAttributesImageEffectUseShadowBatching0020 {
+ @State dataList: number[] = []
+ colors: Color[] = [Color.Blue, Color.Green, Color.Red, Color.Yellow]
+ aboutToAppear(): void {
+ for (let index = 0; index < 100; index++) {
+ this.dataList.push(index);
+ }
+ }
+ build() {
+ Column() {
+ List({ space: 10 }) {
+ ForEach(this.dataList, (index: number) => {
+ ListItem() {
+ Text(index.toString())
+ .width("100%")
+ .textAlign(TextAlign.Center)
+ }.shadow({ radius: 50, color: this.colors[index%4] })
+ .height(40)
+ .borderRadius(8)
+ .margin({ right: 10, left: 10 })
+ })
+ }.useShadowBatching(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/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6558741d573e40c08207c241fc699c1ae96bc682
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0030.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 UIAttributesImageEffectUseShadowBatching0030 {
+ build() {
+ Column({space:20}) {
+ Column() {
+ Column({space:10}) {
+ Text("Text1")
+ .shadow({
+ radius: 50,
+ color: Color.Blue,
+ offsetX: 0,
+ offsetY: 0
+ })
+ Text("Text2")
+ .shadow({
+ radius: 50,
+ color: Color.Green,
+ offsetX: 0,
+ offsetY: 0
+ })
+ }
+ }
+ .width("70%")
+ .height(70)
+ .justifyContent(FlexAlign.Center)
+ .borderRadius(10)
+ .shadow({
+ radius: 220,
+ color: Color.Yellow,
+ offsetX: 0,
+ offsetY: 0
+ })
+
+ Column()
+ .width("70%")
+ .height(70)
+ .borderRadius(10)
+ .shadow({
+ radius: 280,
+ color: Color.Red,
+ offsetX: 0,
+ offsetY: 0
+ })
+ }
+ .useShadowBatching(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/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..52c84ace21bbd90d226a97904305f470638ee44a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0040.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 UIAttributesImageEffectUseShadowBatching0040 {
+ build() {
+ Column({space:10}) {
+ Column({space:5}) {
+
+ Text("Text1")
+ .shadow({
+ radius: 50,
+ color: Color.Blue,
+ offsetX: 0,
+ offsetY: 0
+ })
+ Text("Text2")
+ .shadow({
+ radius: 50,
+ color: Color.Green,
+ offsetX: 0,
+ offsetY: 0
+ })
+
+ }
+ .useShadowBatching(true)
+ .width("70%")
+ .height(70)
+ .justifyContent(FlexAlign.Center)
+ .borderRadius(10)
+ .shadow({
+ radius: 220,
+ color: Color.Yellow,
+ offsetX: 0,
+ offsetY: 0
+ })
+
+ Column()
+ .width("70%")
+ .height(70)
+ .borderRadius(10)
+ .shadow({
+ radius: 280,
+ color: Color.Red,
+ offsetX: 0,
+ offsetY: 0
+ })
+ }
+ .useShadowBatching(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/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..92bcece8a95e75473e154af81cbb4e84a664b70b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0050.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 UIAttributesImageEffectUseShadowBatching0050 {
+ @State status: boolean = true
+
+ build() {
+ Column({space:10}) {
+ Column()
+ .width("70%")
+ .height(70)
+ .borderRadius(10)
+ .shadow({
+ radius: 220,
+ color: Color.Green,
+ offsetX: 0,
+ offsetY: 0
+ })
+ Column()
+ .width("70%")
+ .height(70)
+ .borderRadius(10)
+ .shadow({
+ radius: 280,
+ color: Color.Red,
+ offsetX: 0,
+ offsetY: 0
+ })
+ Button(this.status ? "usingShadowBatching" : "closedShadowBatching", { type: ButtonType.Normal })
+ .width("70%")
+ .borderRadius(8)
+ .margin({top:20})
+ .id("button")
+ .onClick(() => {
+ this.status = !this.status
+ })
+ }
+ .useShadowBatching(this.status)
+ .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/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..240a5c855b10f15b509957c0411c8f09dd9a2f87
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0060.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 UIAttributesImageEffectUseShadowBatching0060 {
+ build() {
+ Column() {
+ Column()
+ .width("70%")
+ .height(70)
+ .borderRadius(10)
+ .shadow({
+ radius: 220,
+ color: Color.Yellow,
+ offsetX: 0,
+ offsetY: 0
+ })
+ Column()
+ .width("70%")
+ .height(70)
+ .borderRadius(10)
+ .shadow({
+ radius: 280,
+ color: Color.Red,
+ offsetX: 0,
+ offsetY: 0
+ })
+ }
+ .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/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..59245cb4da9123a863efdf80ac901badc02f1fee
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0070.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 UIAttributesImageEffectUseShadowBatching0070 {
+ build() {
+ Column({space:10}) {
+ Column()
+ .width("70%")
+ .height(70)
+ .borderRadius(10)
+ .shadow({radius:220,color:Color.Blue,offsetX:0,offsetY:0})
+ Column()
+ .width("70%")
+ .height(70)
+ .borderRadius(10)
+ .shadow({radius:280,color:Color.Pink,offsetX:0,offsetY:0})
+ }
+ .useShadowBatching(false)
+ .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/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7525124f21b5fcf681217cace7aaaf0b00af1ad8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0010.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 UIAttributesImageeffectInterface0010 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6738f4ac7e4fc68c0f438084b21c742e25597a23
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0020.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 UIAttributesImageeffectInterface0020 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .invert(-5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..602efba4af130a7109a3fb3c120c4eb57dd3f23f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0030.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 UIAttributesImageeffectInterface0030 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .invert(0.5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b53061d46121ad97bcef7ec151bdb90894c534d4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0040.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 UIAttributesImageeffectInterface0040 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .invert(0)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..22d8368e249d4324c93b6722ad6e8e9d1b63b7e5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0050.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 UIAttributesImageeffectInterface0050 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .invert(1)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..618667e2194081513bc529bcb5e13cd848fe53e8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0060.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 UIAttributesImageeffectInterface0060 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .invert(5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..aabd4fa4d8897d9b4fe9ff747ecfa1781fa165ca
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0070.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 UIAttributesImageeffectInterface0070 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ec4169df1ff2fb4f2942d70f7856d0b55c951814
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0080.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 UIAttributesImageeffectInterface0080 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .contrast(-10)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e461989d9daa93a3b7403d5ed2cdcb3def0ccfad
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0090.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 UIAttributesImageeffectInterface0090 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .contrast(0.5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b1e04b3553f0c695abdf775a3b196f5d019cec5f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0100.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 UIAttributesImageeffectInterface0100 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .contrast(0)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0f986d280963755708e189b8518f40da4b120709
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0110.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 UIAttributesImageeffectInterface0110 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .contrast(1)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fee69a709b69ee4f42ae1a8fe7593640ea85f98e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0120.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 UIAttributesImageeffectInterface0120 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .contrast(5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..62ec3dacafaf224904a7e50e8cad2d76504e8246
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0130.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 UIAttributesImageeffectInterface0130 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c5ec7e3fabbc9bdf09d537ec107c528df309230b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0140.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 UIAttributesImageeffectInterface0140 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .grayscale(-0.5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3e95eb7ddb2f479a462940f87c44d6264d06b410
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0150.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 UIAttributesImageeffectInterface0150 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .grayscale(0.0)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a91911a54030537d223d30288b2f8450a4d216d6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0160.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 UIAttributesImageeffectInterface0160 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .grayscale(0.5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..823cc554e2ddb178da3b6390895442abde24aa79
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0170.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 UIAttributesImageeffectInterface0170 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .grayscale(1.0)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..aac72dfd96f7d7ed33309426246eccc5e18da37a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0180.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 UIAttributesImageeffectInterface0180 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .grayscale(2.5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..61dfe5ea13682bb2f047e3c2022cbaadeaeffb97
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0190.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 UIAttributesImageeffectInterface0190 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bb51647ac7bfdd7429c7342f6262af38bc5ebcbb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0200.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 UIAttributesImageeffectInterface0200 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .hueRotate(-45)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0fe9e208f1d634df50361133e3998bd67e03a867
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0210.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 UIAttributesImageeffectInterface0210 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .hueRotate(-45)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3084bf988c2375900d1c5e112d2076ea83c9f44d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0220.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 UIAttributesImageeffectInterface0220 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .hueRotate(0)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..04029ad9c990481e3f23233e5a3bb6789a1e9eb0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0230.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 UIAttributesImageeffectInterface0230 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .hueRotate(0)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..29f6561f05d163707c72beb4f7f727a19bf8875c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0240.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 UIAttributesImageeffectInterface0240 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .hueRotate(180)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c95e3b109557a31e60390ba6fa7fc12f70a3a6c1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0250.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 UIAttributesImageeffectInterface0250 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .hueRotate(180)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..02215c2d13831fb064eb11e394a74a9e7aabf854
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0260.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 UIAttributesImageeffectInterface0260 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .hueRotate(90)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..79f280f964291490225c5607570df384b8e8194d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0270.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 UIAttributesImageeffectInterface0270 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..76631c6f7f72b46f26d8d775b513636da2816402
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0280.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 UIAttributesImageeffectInterface0280 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .sepia(-5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d48d97efa67a92246d79764e4adba276f1257718
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0290.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 UIAttributesImageeffectInterface0290 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .sepia(0.5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7448b7fd42ed09023b730570bbeee7630c7d1066
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0300.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 UIAttributesImageeffectInterface0300 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .sepia(0)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8922ba4448439b3bca8fb9a40a66de03d83c2ebb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0310.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 UIAttributesImageeffectInterface0310 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .sepia(1)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..77eb99f913702cfb6c32b266670cba256c47e71a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0320.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 UIAttributesImageeffectInterface0320 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .sepia(5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0330.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b4b875657920f93f36810a2f3cbb6377ecbcc169
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0330.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 UIAttributesImageeffectInterface0330 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .shadow({radius:$r('app.integer.font_1')})
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0340.ets
new file mode 100644
index 0000000000000000000000000000000000000000..814152d1edd9e20b6bb94beb3baac5bd99020b6d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0340.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 UIAttributesImageeffectInterface0340 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .shadow({ radius: -10 })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0350.ets
new file mode 100644
index 0000000000000000000000000000000000000000..989af3104f81a8d1692055a92326c728f9b887eb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0350.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 UIAttributesImageeffectInterface0350 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .shadow({ radius: 0 })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..61285dfb7a4596bd83b79a004b97296537f36b6f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0360.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 UIAttributesImageeffectInterface0360 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .shadow({ radius: 10 })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0370.ets
new file mode 100644
index 0000000000000000000000000000000000000000..566ec99cf076f5bcbc0ddc0f9224e88ae0c76537
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0370.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 UIAttributesImageeffectInterface0370 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .shadow({ radius: 10, color: $r('app.color.Pink') })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e398e7b90c92fa1f699fe618d90db4b9da7eb432
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0380.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 UIAttributesImageeffectInterface0380 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .shadow({ radius: 10, color: 0x0000FF })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cc971f0f7b5af2020a84d0a82be3910910ec90e4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0390.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 UIAttributesImageeffectInterface0390 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .shadow({ radius: 10, color: Color.Black })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..460bb142d0aa4d9be6b36255a3bd6ae3e6201a99
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0400.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 UIAttributesImageeffectInterface0400 {
+ build() {
+ Column({ space: 5 }) {
+ Image('2.png')
+ .width(200)
+ .height(250)
+ .shadow({
+ radius: 10,
+ color: Color.Pink,
+ offsetX: -50,
+ offsetY: 50
+ })
+ .margin({ left: 10 })
+ Button('aaa')
+ .width(150)
+ .height(50)
+ .backgroundColor(Color.Red)
+ }
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0410.ets
new file mode 100644
index 0000000000000000000000000000000000000000..71471b7c0ada9ee5e692a94e859e08568c03c746
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0410.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 UIAttributesImageeffectInterface0410 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .shadow({
+ radius: 10,
+ color: Color.Pink,
+ offsetX: 50,
+ offsetY: -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/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0420.ets
new file mode 100644
index 0000000000000000000000000000000000000000..79b0c43c21f41414855c9fe6f4ff836d431f9114
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0420.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 UIAttributesImageeffectInterface0420 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .shadow({
+ radius: 10,
+ color: Color.Pink,
+ offsetX: 50,
+ offsetY: 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/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0430.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fb5d7a762e88a69955fd62bf8f3d891184e7e667
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0430.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 UIAttributesImageeffectInterface0430 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .shadow({
+ radius: 10,
+ color: Color.Pink,
+ offsetX: $r('app.float.float_1'),
+ offsetY: $r('app.float.float_1')
+ })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0440.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f61ab85c02e791ee8cbd675be017990b645d8974
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0440.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 UIAttributesImageeffectInterface0440 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .shadow({ radius: 10, color: 'rgb(0,255,0)' })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0450.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9ce1c8638fcebda5513ef45addf19b81747b694d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0450.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 UIAttributesImageeffectInterface0450 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .colorBlend($r('app.color.Pink'))
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0460.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e07f32afb17f55fd534fc59c37298b0a7b653476
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0460.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 UIAttributesImageeffectInterface0460 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .colorBlend(0xCCCCCC)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0470.ets
new file mode 100644
index 0000000000000000000000000000000000000000..51c662b96037ec53b73084a3060c4e9dd7b01cdf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0470.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 UIAttributesImageeffectInterface0470 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .colorBlend(Color.Blue)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0480.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6c6194de190699a0b62de74da7b458d071c0efd4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0480.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 UIAttributesImageeffectInterface0480 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .colorBlend('rgb(255,200,255)')
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0490.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e2fdd7fc5feb6ed2c853e4b5e877842e30f3ac24
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0490.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 UIAttributesImageeffectInterface0490 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0500.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7b6b1ea886dc4e1749b96722547a4a3ff998760a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0500.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 UIAttributesImageeffectInterface0500 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .saturate(-10)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0510.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1f4dbe8a6c4436e59df0dbd8a99d2175b3b6f341
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0510.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 UIAttributesImageeffectInterface0510 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .saturate(0.5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0520.ets
new file mode 100644
index 0000000000000000000000000000000000000000..35eb1b2544f620d4d95fcac2b2175c3c983cd5b6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0520.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 UIAttributesImageeffectInterface0520 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .saturate(0)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0530.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2fe8aace982ce10f96a828ebf20e57309f787ce8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0530.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 UIAttributesImageeffectInterface0530 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .saturate(1)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0540.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2c98a05e1d82ec202865cc334c6f57d30858db49
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0540.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 UIAttributesImageeffectInterface0540 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .saturate(5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0550.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1fab77d34c2318a6072871926140d07b08be4051
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0550.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 UIAttributesImageeffectInterface0550 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0560.ets
new file mode 100644
index 0000000000000000000000000000000000000000..de115e5416c0e4ae055a89a7d4e74c4f6370931e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0560.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 UIAttributesImageeffectInterface0560 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .brightness(-0.5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0570.ets
new file mode 100644
index 0000000000000000000000000000000000000000..eb78acc74e29e47ab3e4adb601405e9db516193c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0570.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 UIAttributesImageeffectInterface0570 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .brightness(0.5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0580.ets
new file mode 100644
index 0000000000000000000000000000000000000000..051770d4efac6c77e11f2ebbb09db7ceb75cf86a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0580.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 UIAttributesImageeffectInterface0580 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .brightness(0)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0590.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5801935903e1670fdc7f7db29eb533cd8049428d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0590.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 UIAttributesImageeffectInterface0590 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .brightness(1)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0600.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3ae4df78b6a4190b1936b74a8fe9510e0b8b3277
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0600.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 UIAttributesImageeffectInterface0600 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .brightness(2)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0610.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2c447957e53640dbb534f43f05887be24265d86e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0610.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 UIAttributesImageeffectInterface0610 {
+ build() {
+ Column() {
+ Row() {
+ Text('test')
+ .blur(-10)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0620.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3ac9b0a6a5b8308b84ea637be32a47098e3a127a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0620.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 UIAttributesImageeffectInterface0620 {
+ build() {
+ Column() {
+ Row() {
+ Text('test')
+ .blur(0)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0630.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1e2db13a14ad2b7cd58aafb6c562bbe035ea3c58
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0630.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 UIAttributesImageeffectInterface0630 {
+ build() {
+ Column() {
+ Row() {
+ Text('test')
+ .blur(3)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0640.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0e391fe88bf9a3b7a26cde82a4540697ef31cf63
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0640.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 UIAttributesImageeffectInterface0640 {
+ build() {
+ Column() {
+ Row() {
+ Text('test')
+ .blur(6.5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0650.ets
new file mode 100644
index 0000000000000000000000000000000000000000..136665683d95459617502acd01fec3ca11b0229d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0650.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 UIAttributesImageeffectInterface0650 {
+ build() {
+ Column() {
+ Row() {
+ Text()
+ .width(300)
+ .height(350)
+ .backgroundImage('2.png')
+ .backdropBlur(-10)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0660.ets
new file mode 100644
index 0000000000000000000000000000000000000000..65dfecf238179ceb0896c73f65990de6505ba094
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0660.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 UIAttributesImageeffectInterface0660 {
+ build() {
+ Column() {
+ Row() {
+ Text()
+ .width(300)
+ .height(350)
+ .backgroundImage('2.png')
+ .backdropBlur(0)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0670.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fafd05f5add3526059573f40dafe4e43cbf7c775
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0670.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 UIAttributesImageeffectInterface0670 {
+ build() {
+ Column() {
+ Row() {
+ Text()
+ .width(300)
+ .height(350)
+ .backgroundImage('2.png')
+ .backdropBlur(100.5)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0680.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e0804730fde6965ec22541730efe62d3da72bff0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0680.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 UIAttributesImageeffectInterface0680 {
+ build() {
+ Column() {
+ Row() {
+ Text()
+ .width(300)
+ .height(350)
+ .backgroundImage('2.png')
+ .backdropBlur(10)
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..aae6bdcdae46d3d6ac5232dbc4993dd152bde9b7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0010.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 UIAttributesImageeffectInvert0010 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .invert({
+ low: 0.3,
+ high: 0.8,
+ threshold: 0,
+ thresholdRange: 1
+ })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0443b6ca79a5b89c7b47f0429ba7a587c4378589
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0020.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 UIAttributesImageeffectInvert0020 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .invert({
+ low: 0.3,
+ high: 0.8,
+ threshold: 0.5,
+ thresholdRange: 1
+ })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..84137d853caacbe9f9e515e68a0b6a563ab9a439
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0030.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 UIAttributesImageeffectInvert0030 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .invert({
+ low: 0.8,
+ high: 0.3,
+ threshold: 0.5,
+ thresholdRange: 1
+ })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..09709a353b4e7c65bfaac8748c26f242bc8a8955
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0040.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 UIAttributesImageeffectInvert0040 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .invert({
+ low: 0.3,
+ high: 0.8,
+ threshold: 1,
+ thresholdRange: 1
+ })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..49821a3b1967f5591f3acf3a515c0725ec71ce15
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0050.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 UIAttributesImageeffectInvert0050 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .invert({
+ low: 0.3,
+ high: 0.8,
+ threshold: 0.5,
+ thresholdRange: 0.1
+ })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3ca006a34ec233e368a3d66017e64d0b5103ca3b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0060.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 UIAttributesImageeffectInvert0060 {
+ build() {
+ Column() {
+ Row() {
+ Image('2.png')
+ .width(300)
+ .height(350)
+ .invert({
+ low: 0.3,
+ high: 0.8,
+ threshold: 0.5,
+ thresholdRange: 0.1
+ })
+ }
+ .height('100%')
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0da4b624930d751d2e9a32cd58de2137f3fd64b2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0010.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 UIAttributesOutlineColor0010 {
+ build() {
+ Column() {
+ Row() {
+ }
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor(0xFFFF4777)
+ }.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/UIAttributesOutlineColor/UIAttributesOutlineColor0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ea10d8fd0b0fe496cbf23a0a29f2bb07aec18d2e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0020.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 UIAttributesOutlineColor0020 {
+ build() {
+ Column() {
+ Row() {
+ }
+ .width(200)
+ .height(100)
+ .backgroundColor(Color.Blue)
+ .outlineWidth(5)
+ .outlineColor({left: 0xFFFF4777, right: 0xFFFF4777, top: 0xFFFF4777, bottom: 0xFFFF4777})
+ }.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/UIAttributesOutlinewidth/UIAttributesOutlinewidth0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesOutlinewidth/UIAttributesOutlinewidth0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9844d6e0f65a3df662a575fef73b43a0f706d0b8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesOutlinewidth/UIAttributesOutlinewidth0010.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 UIAttributesOutlinewidth0010 {
+ build() {
+ Column() {
+ Text('outlineWidth测试')
+ .outlineWidth({
+ left: 20,
+ right: 20,
+ top: 20,
+ bottom: 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/UIAttributesOutlinewidth/UIAttributesOutlinewidth0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesOutlinewidth/UIAttributesOutlinewidth0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c4357749776814e5ece4e81a0cf66e3106210f02
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesOutlinewidth/UIAttributesOutlinewidth0020.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 UIAttributesOutlinewidth0020 {
+ build() {
+ Column() {
+ Text('outlineWidth测试')
+ .outlineWidth({
+ left: 20,
+ right: 30,
+ top: 35,
+ bottom: 25
+ })
+ }.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/UIAttributesRenderFit/UIAttributesRenderFit0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f27162bf9c6dd8c1cbc6473a98631bd097e6424e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0010.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 UIAttributesRenderFit0010 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.CENTER)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4326d526292207c2684d2fe810df5dde37268c32
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0020.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 UIAttributesRenderFit0020 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.TOP)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1825a93dba2c2d551b03373703593f7d60e9d047
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0030.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 UIAttributesRenderFit0030 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.BOTTOM)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cd7805475272fcd940a532a2483facb980d0fe0d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0040.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 UIAttributesRenderFit0040 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.LEFT)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..28efdebce1d68c0310e49effdb541be40d1c920d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0050.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 UIAttributesRenderFit0050 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.RIGHT)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..10c453965d45950142bf954f12252085073554f0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0060.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 UIAttributesRenderFit0060 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.TOP_LEFT)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b8e3523c8e3748ef0a616b0d4447110a60352bac
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0070.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 UIAttributesRenderFit0070 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.TOP_RIGHT)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..018a567a79d037e68437a213446dc7c436cb6a1b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0080.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 UIAttributesRenderFit0080 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.BOTTOM_LEFT)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5bff6a4f4a5a0e4f684f4e4faf343b59d3f7ff92
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0090.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 UIAttributesRenderFit0090 {
+ @State width1: number = 100;
+ @State height1: number = 30;
+ flag: boolean = true;
+
+ build() {
+ Column() {
+ Text("Hello")
+ .width(this.width1)
+ .height(this.height1)
+ .renderFit(RenderFit.BOTTOM_RIGHT)
+ .margin(20)
+ Button("animate")
+ .onClick(() => {
+ animateTo({ curve: Curve.Ease }, () => {
+ if (this.flag) {
+ this.width1 = 150;
+ this.height1 = 50;
+ } else {
+ this.width1 = 100;
+ this.height1 = 30;
+ }
+ this.flag = !this.flag;
+ })
+ }).id('animate_button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..783d3708c9f4ce9c4a46d9f84478ca1ec70cea57
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0020.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 UIAttributesShapecroppingInterface0020 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('不设置clip效果')
+ Image('cat.jpg')
+ .width("100%")
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5a7dade72822dac96857da7d3bac14c7dfb248a3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0030.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 UIAttributesShapecroppingInterface0030 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip:circle()')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(new Circle())
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f679fb5ff23c98d69cbb6cd41a1140c9a1dca956
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0040.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 UIAttributesShapecroppingInterface0040 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip:circle({width:"280px",height:"280px"})')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(new Circle({width:"280px",height:"280px"}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ba68e38a996265ab1db29dc5d1d87a7498ec1636
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0050.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 UIAttributesShapecroppingInterface0050 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('circle(width:"300px")')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(Circle({width:"300px"}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c0a4ccbfb217f514dcca2b3724659a0b42074ee6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0060.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 UIAttributesShapecroppingInterface0060 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip(Ellipse({width:"300px"}))')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(Ellipse({width:"300px"}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..435976249c0036237ea78a3a3c079f75ae4522b4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0070.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 UIAttributesShapecroppingInterface0070 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip:Ellipse(width:"400px",height:"280px")')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(new Ellipse({width:"400px",height:"280px"}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..de028b9edbae8aac65620fea791a544577be0205
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0080.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 UIAttributesShapecroppingInterface0080 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip(false)')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(false)
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e9385ec4578ff0aff2989f18326628d7b4bb8373
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0090.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 UIAttributesShapecroppingInterface0090 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip:Path()')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(new Path())
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9525aa373f61d7874f28d0c99e1e61791abc136d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0100.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 UIAttributesShapecroppingInterface0100 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip Path({commands:"M100 0 L200 240 L0 240"})')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(new Path({commands:"M100 0 L200 240 L0 240"}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..771971d4e39e6d32bf845df0aec16d739007ef11
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0110.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 UIAttributesShapecroppingInterface0110 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip:Path({commands:"M100 0 L200 240 L0 240 Z"})')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(new Path({commands:"M100 0 L200 240 L0 240 Z"}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4e66b6086bba0ec90e29ddccee59d8c71a46fe00
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0120.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 UIAttributesShapecroppingInterface0120 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip:Path({width:"400px",height"280px",commands:"M100 0 L200 240 L0 240 Z"})')
+ Image('cat.jpg')
+ .width('100%')
+ .clip(new Path({width:"400px",height:"280px",commands:"M100 0 L200 240 L0 240 Z"}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5263080baad512d572e0513fe005eae401d6cf38
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0130.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 UIAttributesShapecroppingInterface0130 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip:Path({width:"400px",height:"280px"})')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(new Path({width:"400px",height:"280px"}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..05de59af0bc659ffd0c46cbbf0fc6cd0b97f6edc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0140.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 UIAttributesShapecroppingInterface0140 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip(Path({width:"400px"})))')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(Path({width:"400px"}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bb926e725631eb9a761951901deed5efb51c3396
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0150.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 UIAttributesShapecroppingInterface0150 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('Rect()')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(new Rect())
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9cb7f50f374daf3ebbe0893407111d51049b4c08
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0160.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 UIAttributesShapecroppingInterface0160 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip:Rect({radius:20}).fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(new Rect({radius:20}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0cd362c994998f1836e6d5b46bcdcd9cc4948bd4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0170.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 UIAttributesShapecroppingInterface0170 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip:Path({width:"400px"})')
+ Image('cat.jpg')
+ .width('100%')
+ .clip(new Rect({width:"400px"}))
+ .margin({ top: 8 })
+ }.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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..55e4591e5f539ebcdfed3ab2f0d1f21ae57a0beb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0180.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 UIAttributesShapecroppingInterface0180 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip:Rect(width:"400px",height:"280px"})')
+ .textOverflow({overflow:TextOverflow.Ellipsis})
+ Image('cat.jpg')
+ .width("100%")
+ .clip(new Rect({width:"400px",height:"280px"}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ca3647b2532d9eff4752afd49bd2f91ef62d2670
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0190.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 UIAttributesShapecroppingInterface0190 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip:Rect(width:"400px",height:"280px",radius:20})')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(new Rect({width:"400px",height:"280px",radius:20}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..487daf8a5d8d33332d7ba2ca2d1fa756ab391554
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0200.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 UIAttributesShapecroppingInterface0200 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip:Rect(width:"400px",height:"280px",radiusWidth:"50px",radiusHeight:"100px"}')
+ Image('cat.jpg')
+ .width("100%")
+ .clip(new Rect({width:"400px",height:"280px",radiusWidth:"50px",radiusHeight:"100px"}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3424ca0587cbe87891cc0804526f0282d0ca4bbd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0210.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 UIAttributesShapecroppingInterface0210 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip:Path({width:"400px",height:"280px",radius[[40,40],[20,20],[40,40],[20,20]]})')
+ Image('cat.jpg')
+ .width('100%')
+ .clip(new Rect({width:"400px",height:"280px",radius:[[40,40],[20,20],[40,40],[20,20]]}))
+ .margin({ top: 8 })
+ }.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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c3a6832430527d70213e1a9f2323b8b052355d6e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0220.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 UIAttributesShapecroppingInterface0220 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('clip(true)查看效果')
+ Column() {
+ Image('cat.jpg')
+ .width(300)
+ .clip(true)
+ .margin({ top: 8 })
+ }.width(200)
+ .height(200)
+
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cf9336b546b76091256da46a51e39051b20be90c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0240.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 UIAttributesShapecroppingInterface0240 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask:Circle().fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Circle().fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..708a0b380f71fcfa1b2e3ec6ed8a0b2d9979b962
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0250.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 UIAttributesShapecroppingInterface0250 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask(:Circle({width:"280px",height:"280px"}).fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Circle({width:"280px",height:"280px"}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..74b8bac3b018ba3e6632d0c934662ce51251c020
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0260.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 UIAttributesShapecroppingInterface0260 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask({width:"400px",height:"280px"})')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(Circle({width:"400px",height:"280px"}))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e1bebdd5dd2f1ba4149969c04a4f07e63a46105d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0280.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 UIAttributesShapecroppingInterface0280 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask:Circle({width:"300px"}).fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Circle({width:"300px"}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..270d663f1f49b52842d58c41d663c62c4beb8ddf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0290.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 UIAttributesShapecroppingInterface0290 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask(Ellipse({width:"400px",height:"280px"}).fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Ellipse({width:"400px",height:"280px"}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..05b7de66a7a34e34c27273db8764a9f0fe7500e2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0300.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 UIAttributesShapecroppingInterface0300 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask:Ellipse({width:"300px"}).fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Ellipse({width:"300px"}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4b6ce6b8c4a9685ed6127628b667018ea73c673e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0310.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 UIAttributesShapecroppingInterface0310 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask:Path({commands:"M100 0 L200 240 L0 240"}).fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Path({commands:"M100 0 L200 240 L0 240"}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9fda281ea3b1a9210fbf8afb928626549c4fc68e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0320.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 UIAttributesShapecroppingInterface0320 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask:Path({commands:"M100 0 L200 240 L0 240 Z"}).fill(Color.Gray)')
+ .textOverflow({overflow:TextOverflow.Ellipsis})
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Path({commands:"M100 0 L200 240 L0 240 Z"}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0330.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9f81bc5a990f5d16af055635cba0696755e8e951
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0330.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 UIAttributesShapecroppingInterface0330 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask:Path({width:"400px",height:"280px",commands:"M100 0 L200 240 L0 240 Z"}).fill(Color.Gray)')
+ .textOverflow({overflow:TextOverflow.Ellipsis})
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Path({width:"400px",height:"280px",commands:"M100 0 L200 240 L0 240 Z"}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0340.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3ac1d38636fce3c6351d4fdd3ceff3c0833e38c5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0340.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 UIAttributesShapecroppingInterface0340 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask(:Path({width:"400px",height:"280px"}).fill(Color.Gray))')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Path({width:"400px",height:"280px"}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0350.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b2482a3e43ad29128aa50112dda35f2fa066a87b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0350.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 UIAttributesShapecroppingInterface0350 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask(Path({width:"400px"}).fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Path({width:"400px"}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8f873a360921e8ff10b258336545c7896982b1e5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0360.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 UIAttributesShapecroppingInterface0360 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask:Rect({radius:20}).fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Rect({radius:20}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0370.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f9b61dac7798951ea15a4dea970b114fd6e95322
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0370.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 UIAttributesShapecroppingInterface0370 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask:Rect({width:"400px",height:"280px",radiusWidth:"50px",radiusHeight"100px"}).fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Rect({width:"400px",height:"280px",radiusWidth:"50px",radiusHeight:"100px"}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..16c38597419893ff6a0592f058a73df4b98366fd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0380.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 UIAttributesShapecroppingInterface0380 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask:Rect({{width:"400px",height:"280px",radius:[[40,40],[20,20],[40,40],[20,20]]}).fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Rect({width:"400px",height:"280px",radius:[[40,40],[20,20],[40,40],[20,20]]}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4798ac910d47d984e1125d548a4ebd770b4e78c6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0390.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 UIAttributesShapecroppingInterface0390 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask:Rect({width:"400px",height:"280px",radius:20}).fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Rect({width:"400px",height:"280px",radius:20}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..260e770f57c750a995933bf3cb948c847e83e0b0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0400.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 UIAttributesShapecroppingInterface0400 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask:Rect({width:"400px",height:"280px\'}).fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Rect({ width: "400px", height: "280px" }).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0410.ets
new file mode 100644
index 0000000000000000000000000000000000000000..de927e4aedba10d391bc804894660e6f08dad631
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0410.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 UIAttributesShapecroppingInterface0410 {
+ build() {
+ Column({ space: 3 }) {
+ Image('cat.jpg')
+ .width("100%")
+ Text('mask:Rect({width:"400px\'"}).fill(Color.Gray)')
+ Image('cat.jpg')
+ .width("100%")
+ .mask(new Rect({width:"400px'"}).fill(Color.Gray))
+ .margin({ top: 8 })
+ }
+ .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/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..410ec0bb39a56a4e9259f439ebde38239cd63e50
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0020.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0020 {
+ @State hei:number = 150;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ RowSplit() {
+ Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center)
+ Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ Text('4').width('20%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center)
+ Text('5').width('20%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ }
+ .clip(true)
+ .height(100)
+ .resizeable(false) // 不可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c2143f7edd6eb82b29addee878b188ebdf3f52cf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0040.ets
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0040 {
+ @State hei:number = 100;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ ColumnSplit() {
+ Text('1').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ Text('2').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar)
+ Text('3').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ Text('4').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar)
+ Text('5').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ }
+ .borderWidth(1)
+ .resizeable(true) // 可拖动
+ .height('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..befa3b4df794082e69917f97e47144b969054e9a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0050.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0050 {
+ @State hei:number = 100;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ ColumnSplit() {
+ Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center)
+ Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center)
+ Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ }
+ .divider({startMargin:10,endMargin:10})
+ .borderWidth(50)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bbeda1df30ea64cacfccdc9b7304f43ce6b01fc4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0060.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0060 {
+ @State hei:number = 100;
+ @State pad:number = 20;
+ build() {
+ Column(){
+ Button('PaddingChange').onClick(()=>{
+ this.pad = 80;
+ }).id('padding')
+ ColumnSplit() {
+ Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ }
+ .padding(this.pad)
+ .height(500)
+ .borderWidth(1)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3ed4fe0206f1c7b6343abfe8dbd4e46297333fc5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0070.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0070 {
+ @State hei:number = 100;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ ColumnSplit() {
+ Text('1').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ Text('2').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar)
+ Text('3').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ Text('4').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar)
+ Text('5').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ }
+ .divider({startMargin:10,endMargin:10})
+ .width('80%')
+ .borderWidth(1)
+ .resizeable(true) // 可拖动
+ .height('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..53b7306241bf682f88fec12d5be1cfc08967df85
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0080.ets
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { componentUtils } from '@kit.ArkUI';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0080 {
+ build() {
+ Column() {
+ Grid(){
+ GridItem(){
+ ColumnSplit(){
+ Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10)
+ Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ }.borderWidth(1).resizeable(true)
+ }
+ }
+ .id('button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2c3f1d094584fa4573776f92e2a6d1e45b418e43
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0100.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 { CustomColors, CustomTheme, } from '@kit.ArkUI'
+import { Event } from '@ohos.worker';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0100 {
+ build() {
+ Column() {
+ List(){
+ ListItem(){
+ ColumnSplit(){
+ Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10)
+ Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ Text('4').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10)
+ Text('5').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ Text('6').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ Text('7').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10)
+ Text('8').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ Text('9').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ Text('10').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10)
+ }.borderWidth(1).resizeable(true)
+ }.width('100%')
+ }
+ .id('button')
+ .height('100%')
+ .width('100%')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e8b29f826a06abc198ea4280957429568528672e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0130.ets
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0130 {
+ @State hei:number = 100;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ RowSplit() {
+ Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar)
+ Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ }
+ .borderWidth(1)
+ .resizeable(false) // 不可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..20793b39671bd2f2466ab555e3140fe6e953c6d3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0150.ets
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0150 {
+ @State hei:number = 100;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ RowSplit() {
+ Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar)
+ Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ }
+ .borderWidth(1)
+ .resizeable(false) // 不可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..32ce423a36b2f78f1ae92d7bb8287b0a15dc0559
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0180.ets
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0180 {
+ @State hei:number = 100;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ RowSplit() {
+ Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar)
+ Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ }
+ .borderWidth(1)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..06fc412b19db32f39c3f74c69b14122aec24efe2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0190.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0190 {
+ @State hei:number = 100;
+ @State pad:number = 20;
+ build() {
+ Column(){
+ Button('PaddingChange').onClick(()=>{
+ this.pad = 80;
+ }).id('padding')
+ RowSplit() {
+ Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('4').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('5').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ }
+ .padding(this.pad)
+ .height(100)
+ .borderWidth(1)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ced60403e6735de1f26966ee75590a389499f9f2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0200.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0200 {
+ @State wid: number = 100;
+ @State hei: number = 100;
+ @State opity: number = 1;
+ @State portrait: boolean = true;
+ private changeOrientation() {
+ let windowClass: Window.Window;
+ //获取上下文
+ // 获取上下文,使用common模块
+ let context = getContext(this) as common.UIAbilityContext;
+ let promise = Window.getLastWindow(context);
+ promise.then((data) => {
+ 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.AUTO_ROTATION;
+ windowClass.setPreferredOrientation(orientation, (err) => {
+ });
+ this.portrait = !this.portrait;
+ console.info('Succeeded in obtaining the top window. Data: ' + JSON.stringify(data));
+ }
+ }).catch(() => {
+ console.error('Failed to obtain the top window. Cause: ');
+ });
+ }
+ build() {
+ Column() {
+ RowSplit() {
+ Text('1').width('20%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('2').width('20%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('3').width('20%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('4').width('20%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('5').width('20%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ }
+ .resizeable(true) // 可拖动
+ .width('100%').height(100)
+ Button('切换横竖屏')
+ .margin({top:30})
+ .id('button')
+ .onClick(()=>{
+ if (this.opity == 0) {
+ this.opity = 1;
+ } else {
+ this.opity = 0;
+ }
+ this.changeOrientation();
+ })
+ }.width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e397dca8e7fc42dda22250d1a293337f5e17bfb5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0210.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0210 {
+ @State hei:number = 100;
+ @State pad:number = 20;
+ build() {
+ Column(){
+ Button('PaddingChange').onClick(()=>{
+ this.pad = 60;
+ }).id('padding')
+ RowSplit() {
+ Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('4').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('5').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ }
+ .padding(this.pad)
+ .height(100)
+ .borderWidth(1)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ce0b07005df7efe97c17f99b7755e3ed755fc4a9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0230.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0230 {
+ @State hei:number = 100;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ ColumnSplit() {
+ Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ Text('2').width('90%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center)
+ Text('3').width('80%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ Text('4').width('70%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center)
+ Text('5').width('50%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ }.height('100%')
+ .resizeable(true) // 可拖动
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..24a30b5522bed06557a0af1163851e2cb03ac1c2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0250.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0250 {
+ @State hei:number = 10;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ ColumnSplit() {
+ Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center)
+ Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center)
+ Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ }.height(50)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8c559aa9b73d80b1e773cfd19eaf8c1634f176be
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0260.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0260 {
+ @State hei:number = 100;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ Button('MarginChange').onClick(()=>{
+ this.mar = 50
+ }).id('margin')
+ RowSplit() {
+ Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar)
+ Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ }
+ .borderWidth(1)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..087e9418b9993450825495b72db233b1c9b9e24a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0270.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0270 {
+ @State hei:number = 100;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ Button('MarginChange').onClick(()=>{
+ this.mar = 10;
+ }).id('margin')
+ ColumnSplit() {
+ Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar)
+ Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar)
+ Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ }
+ .divider({startMargin:10,endMargin:10})
+ .borderWidth(50)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..398aca39bd85d31e55dca3d09ecf0e92ed30fa1f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0280.ets
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0280 {
+ @State hei:number = 100;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ RowSplit() {
+ Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar)
+ Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar)
+ }
+ .borderWidth(1)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..af230c1690466f4867f00070c69eff3ac060e2ef
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0310.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0310 {
+ @State hei:number = 120;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ ColumnSplit() {
+ Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80})
+ Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80})
+ Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80})
+ Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80})
+ Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80})
+ }
+ .divider({startMargin:10,endMargin:10})
+ .borderWidth(50)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0330.ets
new file mode 100644
index 0000000000000000000000000000000000000000..48ba40bda5f42805c69b4b6f76fe5543f70514ca
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0330.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0330 {
+ @State hei:number = 100;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ ColumnSplit() {
+ Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100})
+ Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100})
+ Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100})
+ Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100})
+ Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100})
+ }
+ .divider({startMargin:10,endMargin:10})
+ .borderWidth(50)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0340.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b2b0b490763046968897e85600515f464145c7ae
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0340.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0340 {
+ @State hei:number = 100;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ RowSplit() {
+ Text('1').width(40).height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60})
+ Text('2').width(40).height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60})
+ Text('3').width(40).height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60})
+ Text('4').width(40).height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60})
+ Text('5').width(40).height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60})
+ }
+ .borderWidth(1)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0f5cef751aa08f939f210f79c62c9b5979844bd9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0390.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 UIAttributesShapecroppingRowsplit0390 {
+ listScroller: ListScroller = new ListScroller()
+ build() {
+ Column() {
+ List({scroller:this.listScroller }){
+ ListItem(){
+ RowSplit(){
+ Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10)
+ Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ Text('4').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10)
+ Text('5').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ Text('6').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ Text('7').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10)
+ }.borderWidth(1).resizeable(true)
+ }
+ }.listDirection(Axis.Horizontal)
+ .id('button')
+ .height('100%')
+ .width('100%')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0430.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d6717bb740af1e0e60f2cbb50d50642bfcaa1a24
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0430.ets
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { componentUtils } from '@kit.ArkUI';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0430 {
+ build() {
+ Column() {
+ Grid(){
+ GridItem(){
+ RowSplit(){
+ Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10)
+ Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10)
+ }.borderWidth(1).resizeable(true)
+ }
+ }
+ .id('button')
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0450.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1176cdb8aff9c8eb8886550edaa48aedc16a2dfd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0450.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0450 {
+ @State hei:number = 120;
+ @State mar:number = 20;
+ @State cl:boolean = true;
+ build() {
+ Column(){
+ ColumnSplit() {
+ Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center)
+ Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center)
+ Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center).id('text').clip(this.cl)
+ .onClick(()=>{
+ this.cl = false;
+ })
+ }
+ .height(500)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0470.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4e776709a296c032dbf18fdf2e79224d6da30502
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0470.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 Window from '@ohos.window'
+import common from '@ohos.app.ability.common';
+@Entry
+@Component
+struct UIAttributesShapecroppingRowsplit0470 {
+ @State hei:number = 100;
+ @State mar:number = 20;
+ build() {
+ Column(){
+ RowSplit() {
+ Text('1').width(40).height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ Text('2').width(40).height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center)
+ Text('3').width(40).height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ Text('4').width(40).height(this.hei).backgroundColor(0xD2B48C)
+ .textAlign(TextAlign.Center)
+ Text('5').width(40).height(this.hei).backgroundColor(0xF5DEB3)
+ .textAlign(TextAlign.Center)
+ }
+ .borderWidth(1)
+ .resizeable(true) // 可拖动
+ .width('100%')
+ }.width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2a4a9235924414c177c544be83bff60c9403d41d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0010.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 UIAttributesTransparencyInterface0010 {
+ @State opacityValue: Resource | number = 1;
+
+ build() {
+ Column() {
+ Text('Hello World')
+ .backgroundColor(0xAFEEEE)
+ .opacity(this.opacityValue)
+ Button('opacity:0.5')
+ .onClick(() => {
+ this.opacityValue = $r('app.float.opacity_0_5');
+ })
+ .width(200)
+ .height(40)
+ .fontSize(16)
+ .backgroundColor('#007DFF')
+ .margin(20)
+ .id('buttonId')
+ }.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/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a537f1b5769807eb7589b1491db7397bf4bc4457
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0020.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 UIAttributesTransparencyInterface0020 {
+ @State opacityValue: number = 1;
+
+ build() {
+ Column() {
+ Text('Hello World')
+ .backgroundColor(0xAFEEEE)
+ .opacity(this.opacityValue)
+ Button('opacity:0.5')
+ .onClick(() => {
+ this.opacityValue = 0.5;
+ })
+ .width(200)
+ .height(40)
+ .fontSize(16)
+ .backgroundColor('#007DFF')
+ .margin(20)
+ .id('buttonId')
+ }.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/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4ea4b76419cfc78155bc2e86b17004d6d3177135
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0030.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 UIAttributesTransparencyInterface0030 {
+ @State opacityValue: number = 1;
+
+ build() {
+ Column() {
+ Text('Hello World')
+ .backgroundColor(0xAFEEEE)
+ .opacity(this.opacityValue)
+ Button('opacity:0')
+ .onClick(() => {
+ this.opacityValue = 0;
+ })
+ .width(200)
+ .height(40)
+ .fontSize(16)
+ .backgroundColor('#007DFF')
+ .margin(20)
+ .id('buttonId')
+ }.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/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..163679368979d57064db8cf7d3755dabcdd78765
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0040.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 UIAttributesTransparencyInterface0040 {
+ @State opacityValue: number = 1;
+
+ build() {
+ Column() {
+ Text('Hello World')
+ .backgroundColor(0xAFEEEE)
+ .opacity(this.opacityValue)
+ Button('opacity:10')
+ .onClick(() => {
+ this.opacityValue = 10;
+ })
+ .width(200)
+ .height(40)
+ .fontSize(16)
+ .backgroundColor('#007DFF')
+ .margin(20)
+ .id('buttonId1')
+ Button('opacity:-10')
+ .onClick(() => {
+ this.opacityValue = -10;
+ })
+ .width(200)
+ .height(40)
+ .fontSize(16)
+ .backgroundColor('#007DFF')
+ .margin(20)
+ .id('buttonId2')
+ }.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/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..74db2654bea475ba7f382aace4ebe57b57b7e01f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0050.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 UIAttributesTransparencyInterface0050 {
+ @State opacityValue: number = 1;
+
+ build() {
+ Column() {
+ Text('Hello World')
+ .backgroundColor(0xAFEEEE)
+ .opacity(this.opacityValue)
+ Button('opacity:1')
+ .onClick(() => {
+ this.opacityValue = 1;
+ })
+ .width(200)
+ .height(40)
+ .fontSize(16)
+ .backgroundColor('#007DFF')
+ .margin(20)
+ .id('buttonId')
+ }.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/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1509141bc7a1874e291c536885be4a0e423305aa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0010.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 UIAttributesTransparencyRenderGroup0010 {
+ build() {
+ Column() {
+ Row() {
+ Row()
+ .backgroundColor(Color.Black)
+ .width(100)
+ .height(100)
+ .opacity(1)
+ }
+ .opacity(0.6)
+ .backgroundColor(Color.White)
+ .width(150)
+ .height(150)
+ .renderGroup(false)
+ .justifyContent(FlexAlign.Center)
+ }.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/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9d42efae6d85af82e3d01afbe079b32911fe50e1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0020.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 UIAttributesTransparencyRenderGroup0020 {
+ build() {
+ Column() {
+ Row() {
+ Row()
+ .backgroundColor(Color.Black)
+ .width(100)
+ .height(100)
+ .opacity(1)
+ }
+ .opacity(0.6)
+ .backgroundColor(Color.White)
+ .width(150)
+ .height(150)
+ .renderGroup(true)
+ .justifyContent(FlexAlign.Center)
+ }.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/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..488879385f93885a36d5583645212d9fb60fc5fa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0030.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 UIAttributesTransparencyRenderGroup0030 {
+ @State group: boolean | null = false;
+
+ build() {
+ Column() {
+ Row() {
+ Row()
+ .backgroundColor(Color.Black)
+ .width(100)
+ .height(100)
+ .opacity(1)
+ }
+ .opacity(0.6)
+ .backgroundColor(Color.White)
+ .width(150)
+ .height(150)
+ .renderGroup(this.group)
+ .justifyContent(FlexAlign.Center)
+ Button('Switch')
+ .onClick(() => {
+ this.group = null;
+ })
+ .width(200)
+ .height(40)
+ .fontSize(16)
+ .backgroundColor('#007DFF')
+ .margin(20)
+ .id('buttonId')
+ }.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/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..88d337e42b6d2f4235262caa5a14ae315080c824
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0040.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 UIAttributesTransparencyRenderGroup0040 {
+ build() {
+ Column() {
+ Row() {
+ Row() {
+ Row()
+ .backgroundColor(Color.Black)
+ .width(100)
+ .height(100)
+ .opacity(1)
+ }
+ .backgroundColor(Color.Black)
+ .width(100)
+ .height(100)
+ .opacity(0.8)
+ }
+ .opacity(0.6)
+ .backgroundColor(Color.White)
+ .width(150)
+ .height(150)
+ .renderGroup(false)
+ .justifyContent(FlexAlign.Center)
+ }.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/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e2fe84f38512635a32f99ea0c6eb5393fd84ae91
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0010.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 UIComponentCommonattrBackgroundColoring0010 {
+ build() {
+ Row() {
+ Column() {
+ Column()
+ .width(250)
+ .height(150)
+ .margin(20)
+ .shadow({
+ radius: 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/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..598fdd7ba1a96701d685c79c4bd74f4d6d64075b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0020.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 UIComponentCommonattrBackgroundColoring0020 {
+ build() {
+ Row() {
+ Column() {
+ Column()
+ .width(250)
+ .height(150)
+ .margin(20)
+ .shadow({
+ radius: 10,
+ color: ColoringStrategy.AVERAGE
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..33ff4733a3f07e317ab1de5e05b2b9f13b377503
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0030.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 UIComponentCommonattrBackgroundColoring0030 {
+ build() {
+ Row() {
+ Column() {
+ Column()
+ .width(250)
+ .height(150)
+ .margin(20)
+ .shadow({
+ radius: 10,
+ color: ColoringStrategy.INVERT
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5bc7e3eade693d40817e200f5fba9a4ec734f7b5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0040.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 UIComponentCommonattrBackgroundColoring0040 {
+ build() {
+ Row() {
+ Column() {
+ Column()
+ .width(250)
+ .height(150)
+ .margin(20)
+ .shadow({
+ radius: 10,
+ color: ColoringStrategy.AVERAGE
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..48b2c6300f17be3ebea0dd4048ccafe238681583
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0050.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 UIComponentCommonattrBackgroundColoring0050 {
+ build() {
+ Row() {
+ Column() {
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .margin(20)
+ .shadow({
+ radius: 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/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8e0b3614cbe60898ce1443248ba7007961cc83ca
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0060.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 UIComponentCommonattrBackgroundColoring0060 {
+ build() {
+ Row() {
+ Column() {
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .margin(20)
+ .shadow({
+ radius: 10,
+ color: ColoringStrategy.INVERT
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..df0616580c5dce1cde71ed99c425fb012f5e3e27
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0070.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 UIComponentCommonattrBackgroundColoring0070 {
+ build() {
+ Row() {
+ Column() {
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .margin(20)
+ .shadow({
+ radius: 10,
+ color: ColoringStrategy.INVERT
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..699b00b1af71de011eefd7362bbbc5753c44281f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0080.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 UIComponentCommonattrBackgroundColoring0080 {
+ build() {
+ Row() {
+ Column() {
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .margin(20)
+ .shadow({
+ radius: 10,
+ color: ColoringStrategy.AVERAGE
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..34b17e7254c07fa19a37493d58f3be653eb97dd2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0010.ets
@@ -0,0 +1,153 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0010 {
+ private arrayA: string[] = ['安'] // A
+ private arrayB: string[] = ['卜', '白', '包', '毕', '丙'] // B
+ private arrayC: string[] = ['曹', '成', '陈', '催'] // C
+ private arrayL: string[] = ['刘', '李', '楼', '梁', '雷', '吕', '柳', '卢'] // L
+ private value: string[] = ['#', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
+ 'H', 'I', 'J', 'K', 'L', 'M', 'N',
+ 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
+ 'V', 'W', 'X', 'Y', 'Z']
+ @State radius: number = 0
+
+ build() {
+ Column() {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0010_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0010_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0010_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Stack({ alignContent: Alignment.Start }) {
+ Row() {
+ List({ space: 20, initialIndex: 0 }) {
+ ForEach(this.arrayA, (item: string) => {
+ ListItem() {
+ Text(item)
+ .width('80%')
+ .height('5%')
+ .fontSize(30)
+ .textAlign(TextAlign.Center)
+ }
+ }, (item: string) => item)
+
+ ForEach(this.arrayB, (item: string) => {
+ ListItem() {
+ Text(item)
+ .width('80%')
+ .height('5%')
+ .fontSize(30)
+ .textAlign(TextAlign.Center)
+ }
+ }, (item: string) => item)
+
+ ForEach(this.arrayC, (item: string) => {
+ ListItem() {
+ Text(item)
+ .width('80%')
+ .height('5%')
+ .fontSize(30)
+ .textAlign(TextAlign.Center)
+ }
+ }, (item: string) => item)
+
+ ForEach(this.arrayL, (item: string) => {
+ ListItem() {
+ Text(item)
+ .width('80%')
+ .height('5%')
+ .fontSize(30)
+ .textAlign(TextAlign.Center)
+ }
+ }, (item: string) => item)
+ }
+ .width('50%')
+ .height('100%')
+
+ AlphabetIndexer({ arrayValue: this.value, selected: 0 })
+ .autoCollapse(false)
+ .selectedColor(0xFFFFFF)// 选中项文本颜色
+ .popupColor(0xFFFAF0)// 弹出框文本颜色
+ .selectedBackgroundColor(0xCCCCCC)// 选中项背景颜色
+ .popupBackground(0xD2B48C)// 弹出框背景颜色
+ .usingPopup(true)// 是否显示弹出框
+ .selectedFont({ size: 16, weight: FontWeight.Bolder })// 选中项字体样式
+ .popupFont({ size: 30, weight: FontWeight.Bolder })// 弹出框内容的字体样式
+ .itemSize(28)// 每一项的尺寸大小
+ .alignStyle(IndexerAlign.Left)// 弹出框在索引条右侧弹出
+ .popupItemBorderRadius(24)// 设置提示弹窗索引项背板圆角半径
+ .itemBorderRadius(14)// 设置索引项背板圆角半径
+ .popupBackgroundBlurStyle(BlurStyle.NONE)// 设置提示弹窗的背景模糊材质
+ .popupTitleBackground(0xCCCCCC)// 设置提示弹窗首个索引项背板颜色
+ .popupSelectedColor(0x00FF00)
+ .popupUnselectedColor(0x0000FF)
+ .popupItemFont({ size: 30, style: FontStyle.Normal })
+ .popupItemBackgroundColor(0xCCCCCC)
+ .onSelect((index: number) => {
+ console.info(this.value[index] + ' Selected!')
+ })
+ .onRequestPopupData((index: number) => {
+ if (this.value[index] == 'A') {
+ return this.arrayA // 当选中A时,弹出框里面的提示文本列表显示A对应的列表arrayA,选中B、C、L时也同样
+ } else if (this.value[index] == 'B') {
+ return this.arrayB
+ } else if (this.value[index] == 'C') {
+ return this.arrayC
+ } else if (this.value[index] == 'L') {
+ return this.arrayL
+ } else {
+ return [] // 选中其余子母项时,提示文本列表为空
+ }
+ })
+ .onPopupSelect((index: number) => {
+ console.info('onPopupSelected:' + index)
+ })
+ .backgroundColor(Color.Pink)
+ .foregroundEffect({ radius: this.radius })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ .layoutWeight(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/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6cf0fbbdb6fd146849c60e0e00bb0038cdfba041
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0020.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 UIComponentCommonattrForegroundEffect0020 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Blank()
+ .height(30)
+ .borderWidth(1)
+ Blank()
+ .borderWidth(1)
+ .height(30)
+ .foregroundEffect({ radius: this.radiusValue })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cfa3e4007826b199967630bddeb7499482c655b0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0030.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 UIComponentCommonattrForegroundEffect0030 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Button('我是Button')
+
+ Button('我是Button')
+ .foregroundEffect({ radius: this.radiusValue })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2c3c576e01367cf12c6b5e72f99eff36743bce16
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0040.ets
@@ -0,0 +1,97 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0040 {
+ @State selectedDate: Date = new Date('2024-03-05')
+ @State radius: number = 0
+
+ build() {
+ Column({ space: 10 }) {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0040_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0040_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0040_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ CalendarPicker({
+ hintRadius: 10,
+ selected: new Date('2024-03-05')
+ })
+ .edgeAlign(CalendarAlign.END)
+ .textStyle({
+ color: "#ff182431",
+ font: {
+ size: 20,
+ weight: FontWeight.Normal
+ }
+ })
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0040_004')
+ .layoutWeight(1)
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7d01a1a9a32c6e52d0a2ba51a473785cc68f6012
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0050.ets
@@ -0,0 +1,90 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0050 {
+ @State radius: number = 0
+
+ build() {
+ Column({ space: 10 }) {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0050_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0050_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0050_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .width(36)
+ .height(36)
+ .select(true)
+ .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0050_004')
+ .layoutWeight(1)
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c479dab8cbda5524d8e001e2770d755a51dc4081
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0060.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.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0060 {
+ @State radius: number = 0
+
+ build() {
+ Column({ space: 10 }) {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0060_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0060_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0060_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ // 全选按钮
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectedColor('#007DFF')
+ .foregroundEffect({ radius: this.radius })
+
+ Text('Select All')
+ .fontSize(24)
+ .lineHeight(20)
+ .fontColor('#182431')
+ .fontWeight(500)
+ }
+
+ // 选项1
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ .select(true)
+ .selectedColor('#007DFF')
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+
+ Text('Checkbox1')
+ .fontSize(18)
+ .lineHeight(20)
+ .fontColor('#182431')
+ .fontWeight(500)
+ }
+ .margin({ left: 36 })
+
+ // 选项2
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox2', group: 'checkboxGroup' })
+ .selectedColor('#007DFF')
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+
+ Text('Checkbox2')
+ .fontSize(18)
+ .lineHeight(20)
+ .fontColor('#182431')
+ .fontWeight(500)
+ }
+ .margin({ left: 36 })
+
+ // 选项3
+ Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
+ Checkbox({ name: 'checkbox3', group: 'checkboxGroup' })
+ .select(true)
+ .selectedColor('#007DFF')
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+
+ Text('Checkbox3')
+ .fontSize(18)
+ .lineHeight(20)
+ .fontColor('#182431')
+ .fontWeight(500)
+ }
+ .margin({ left: 36 })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0060_004')
+ .layoutWeight(1)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..16e43b9fbf263a615f3b271c8609f4d8bb23bd4d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0070.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 UIComponentCommonattrForegroundEffect0070 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Column()
+ .width(100)
+ .height(100)
+ .borderWidth(1)
+
+ Column()
+ .width(100)
+ .height(100)
+ .borderWidth(1)
+ .foregroundEffect({ radius: this.radiusValue })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4efa9f66e11c0206b4bf0db7e3c3d99016262265
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0080.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 UIComponentCommonattrForegroundEffect0080 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+
+ ColumnSplit() {
+ Text('1').width('100%').height(50).textAlign(TextAlign.Center)
+ Text('2').width('100%').height(50).textAlign(TextAlign.Center)
+ }
+ .borderWidth(1)
+
+ ColumnSplit() {
+ Text('1').width('100%').height(50).textAlign(TextAlign.Center)
+ Text('2').width('100%').height(50).textAlign(TextAlign.Center)
+ }
+ .borderWidth(1)
+ .foregroundEffect({ radius: this.radiusValue })
+
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..38ea8a5646fc8cab6f39f6e3f06bf7da3a4fc375
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0090.ets
@@ -0,0 +1,81 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0090 {
+ @State radiusValue: number = 0;
+ @State value1: number = 0;
+ @State value2: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Counter() {
+ Text(this.value1.toString())
+ }
+ .onInc(() => {
+ this.value1++
+ })
+ .onDec(() => {
+ this.value1--
+ })
+
+ Counter() {
+ Text(this.value2.toString())
+ }
+ .foregroundEffect(
+ { radius: this.radiusValue }
+ )
+ .onInc(() => {
+ this.value2++
+ })
+ .onDec(() => {
+ this.value2--
+ })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..88dbde08dd6a8b715980521ab3225470624d369a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0100.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 UIComponentCommonattrForegroundEffect0100 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Stack() {
+ DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168)
+ Column() {
+ Text('30').fontSize(35).fontColor(Color.Black)
+ Text('1.0.0').fontSize(9.33).lineHeight(12.83).fontWeight(500).opacity(0.6)
+ }
+
+ Text('%')
+ .fontSize(9.33)
+ .lineHeight(12.83)
+ .fontWeight(500)
+ .opacity(0.6)
+ .position({ x: 104.42, y: 78.17 })
+ }
+
+ Stack() {
+ DataPanel({ values: [30], max: 100, type: DataPanelType.Circle })
+ .width(168)
+ .height(168)
+ .foregroundEffect({ radius: this.radiusValue })
+ Column() {
+ Text('30').fontSize(35).fontColor(Color.Black)
+ Text('1.0.0').fontSize(9.33).lineHeight(12.83).fontWeight(500).opacity(0.6)
+ }
+
+ Text('%')
+ .fontSize(9.33)
+ .lineHeight(12.83)
+ .fontWeight(500)
+ .opacity(0.6)
+ .position({ x: 104.42, y: 78.17 })
+ }
+
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d1b2ac6747d0537f7e5550e4248809586534df22
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0110.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 UIComponentCommonattrForegroundEffect0110 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+
+ DatePicker({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date('2024-12-02')
+ })
+ DatePicker({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: new Date('2024-12-02')
+ })
+ .margin({ top: 60 })
+ .foregroundEffect({ radius: this.radiusValue })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a65f9f49c2e3e65cd00466c803a6cc98655b7b63
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0120.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 UIComponentCommonattrForegroundEffect0120 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Divider()
+ .strokeWidth(8)
+ Blank()
+ Divider()
+ .strokeWidth(8)
+ .foregroundEffect(
+ { radius: this.radiusValue }
+ )
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollBar(BarState.On)
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..32732d1193a870c916530872e5ae0f92c5522f46
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0130.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.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0130 {
+ @State radius: number = 0
+
+ @Builder
+ descriptionBuilder() {
+ Text('说明文本')
+ .maxFontSize('30sp')
+ .minFontSize("10.0vp")
+ .fontColor("#fffa2a2d")
+ .fontWeight(FontWeight.Medium)
+ .width('100%')
+ .height("100%")
+ .textAlign(TextAlign.Center)
+ }
+
+ build() {
+ Column({ space: 10 }) {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0130_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0130_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0130_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Gauge({ value: 50, min: 1, max: 100 }) {
+ Column() {
+ Text('50')
+ .fontWeight(FontWeight.Medium)
+ .width('62%')
+ .fontColor("#ff182431")
+ .maxFontSize("60.0vp")
+ .minFontSize("30.0vp")
+ .textAlign(TextAlign.Center)
+ .margin({ top: '35%' })
+ .textOverflow({ overflow: TextOverflow.Ellipsis })
+ .maxLines(1)
+
+ Text('辅助文本')
+ .maxFontSize("16.0fp")
+ .minFontSize("10.0vp")
+ .fontColor($r('sys.color.ohos_id_color_text_secondary'))
+ .fontColor($r('sys.color.ohos_id_color_text_secondary'))
+ .fontWeight(FontWeight.Regular)
+ .width('67.4%')
+ .height('9.5%')
+ .textAlign(TextAlign.Center)
+ }
+ .width('100%')
+ .height('100%')
+ }
+ .value(50)
+ .startAngle(210)
+ .endAngle(150)
+ .colors([
+ [new LinearGradient([{ color: "#deb6fb", offset: 0 }, { color: "#ac49f5", offset: 1 }]), 9],
+ [new LinearGradient([{ color: "#bbb7fc", offset: 0 }, { color: "#564af7", offset: 1 }]), 8],
+ [new LinearGradient([{ color: "#f5b5c2", offset: 0 }, { color: "#e64566", offset: 1 }]), 7],
+ [new LinearGradient([{ color: "#f8c5a6", offset: 0 }, { color: "#ed6f21", offset: 1 }]), 6],
+ [new LinearGradient([{ color: "#fceb99", offset: 0 }, { color: "#f7ce00", offset: 1 }]), 5],
+ [new LinearGradient([{ color: "#dbefa5", offset: 0 }, { color: "#a5d61d", offset: 1 }]), 4],
+ [new LinearGradient([{ color: "#c1e4be", offset: 0 }, { color: "#64bb5c", offset: 1 }]), 3],
+ [new LinearGradient([{ color: "#c0ece5", offset: 0 }, { color: "#61cfbe", offset: 1 }]), 2],
+ [new LinearGradient([{ color: "#b5e0f4", offset: 0 }, { color: "#46b1e3", offset: 1 }]), 1]
+ ])
+ .width('80%')
+ .height('80%')
+ .strokeWidth(18)
+ .trackShadow({ radius: 7, offsetX: 7, offsetY: 7 })
+ .description(this.descriptionBuilder)
+ .padding(18)
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0130_004')
+ .layoutWeight(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/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fd74c89ad3d09ecb01da412f90bdce5468311d29
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0140.ets
@@ -0,0 +1,86 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0140 {
+ @State radiusValue: number = 0;
+ private data: string[] = ["1", "2", "3", "4"]
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Grid() {
+ ForEach(this.data, (item: string) => {
+ GridItem() {
+ Text(item)
+ }
+ })
+ }
+ .columnsTemplate('1fr 1fr')
+ .rowsTemplate('1fr 1fr')
+ .height(50)
+ .width(100)
+ .borderWidth(1)
+
+ Grid() {
+ ForEach(this.data, (item: string) => {
+ GridItem() {
+ Text(item)
+ }
+ })
+ }
+ .columnsTemplate('1fr 1fr')
+ .rowsTemplate('1fr 1fr')
+ .height(50)
+ .width(100)
+ .borderWidth(1)
+ .foregroundEffect(
+ { radius: this.radiusValue }
+ )
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e7b6ecfbf017af48601b1ef7197e7bcbed0442a4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0150.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.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0150 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ GridRow({ columns: 1 }) {
+ GridCol() {
+ Text('我是GridCol')
+ }
+ .height(20)
+ .width(200)
+ .borderWidth(1)
+ }
+
+ GridRow({ columns: 1 }) {
+ GridCol() {
+ Text('我是GridCol')
+ }
+ .height(20)
+ .width(200)
+ .borderWidth(1)
+ .foregroundEffect(
+ { radius: this.radiusValue }
+ )
+ }
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..466417b94ba55d6697fde86ea9fa4a373c92b327
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0160.ets
@@ -0,0 +1,113 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0160 {
+ @State radius: number = 0
+ @State numbers: string[] = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"]
+
+ build() {
+ Column({ space: 10 }) {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0160_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0160_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0160_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Grid() {
+ GridItem() {
+ Text('4')
+ .fontSize(16)
+ .backgroundColor(0xFAEEE0)
+ .width('100%')
+ .height('100%')
+ .textAlign(TextAlign.Center)
+ }
+ .rowStart(1)
+ .rowEnd(2)
+ .columnStart(1)
+ .columnEnd(2) // 同时设置合理的行列号
+ .foregroundEffect({ radius: this.radius })
+
+ ForEach(this.numbers, (item: string) => {
+ GridItem() {
+ Text(item)
+ .fontSize(16)
+ .backgroundColor(0xF9CF93)
+ .width('100%')
+ .height('100%')
+ .textAlign(TextAlign.Center)
+ }
+ }, (item: string) => item)
+ }
+ .columnsTemplate('1fr 1fr 1fr 1fr 1fr')
+ .rowsTemplate('1fr 1fr 1fr 1fr 1fr')
+ .width('90%').height(300)
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0160_004')
+ .layoutWeight(1)
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b1237c1055657a6f52bfe9f0e6ba3bccf3f2a97f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0170.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 UIComponentCommonattrForegroundEffect0170 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ GridRow({ columns: 1 }) {
+ GridCol() {
+ Text('我是GridRow')
+ }
+ }
+ .height(20)
+ .width(200)
+ .borderWidth(1)
+
+ GridRow({ columns: 1 }) {
+ GridCol() {
+ Text('我是GridRow')
+ }
+ }
+ .height(20)
+ .width(200)
+ .borderWidth(1)
+ .foregroundEffect(
+ { radius: this.radiusValue }
+ )
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..75d6376de9776abfd75e5a6b8ef99f6d31849e53
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0180.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 UIComponentCommonattrForegroundEffect0180 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Column() {
+ Hyperlink('https://www.baidu.com/', 'Go to the baidu website') {
+ }
+ .color(Color.Blue)
+ }
+
+ Column() {
+ Hyperlink('https://www.baidu.com/', 'Go to the baidu website') {
+ }
+ .color(Color.Blue)
+ .foregroundEffect(
+ { radius: this.radiusValue }
+ )
+ }
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c3ec19f8db77cd518d0a31d2e4a66640b7444533
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0190.ets
@@ -0,0 +1,82 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect190 {
+ @State radius: number = 0
+
+ build() {
+ Column() {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0190_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0190_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0190_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column({ space: 20 }) {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Image('2.png')
+ .objectFit(ImageFit.Contain)
+ .margin({ top: 68 })
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0190_004')
+ .layoutWeight(1)
+ }
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..499dff192e51d493f82cb78354a3988d0827c8a7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0200.ets
@@ -0,0 +1,101 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0200 {
+ @State radius: number = 0
+
+ build() {
+ Column({ space: 10 }) {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0200_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0200_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0200_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text() {
+ ImageSpan('2.png')
+ .width('200px')
+ .height('200px')
+ .objectFit(ImageFit.Fill)
+ .verticalAlign(ImageSpanAlignment.CENTER)
+ .foregroundEffect({ radius: this.radius })
+
+ Span('I am LineThrough-span')
+ .decoration({
+ type: TextDecorationType.LineThrough,
+ color: Color.Red
+ })
+ .fontSize(20)
+ }
+ .width('100%')
+ .textIndent(50)
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0200_004')
+ .layoutWeight(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/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..76b163861784548d819d819c0f5d0a314fefdb85
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0210.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.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0210 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Line()
+ .width(200)
+ .height(150)
+ .startPoint([100, 0])
+ .endPoint([100, 100])
+ .stroke(Color.Black)
+ Blank()
+ Line()
+ .width(200)
+ .height(150)
+ .startPoint([100, 0])
+ .endPoint([100, 100])
+ .stroke(Color.Black)
+ .foregroundEffect(
+ { radius: this.radiusValue }
+ )
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..acc45446c1016bd9bc8c0ef702b1d8a590521bad
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0220.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 UIComponentCommonattrForegroundEffect0220 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ List() {
+ ListItem() {
+ Text('alist')
+ }
+ }
+ .borderWidth(1)
+
+ List() {
+ ListItem() {
+ Text('alist')
+ }
+ }
+ .borderWidth(1)
+ .foregroundEffect(
+ { radius: this.radiusValue }
+ )
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollBar(BarState.On)
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a3c7604b8c6bd3181658f0a46f1d23cd1c44df9f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0230.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 UIComponentCommonattrForegroundEffect0230 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ List() {
+ ListItem() {
+ Text('alist')
+ }
+ .width('100%')
+ .borderWidth(1)
+ }
+
+ List() {
+ ListItem() {
+ Text('alist')
+ }
+ .width('100%')
+ .borderWidth(1)
+ .foregroundEffect(
+ { radius: this.radiusValue }
+ )
+ }
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..321bf97348ed2e75e01a2d9ba205b548a8b740f7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0240.ets
@@ -0,0 +1,92 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0240 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ List({ space: 10 }) {
+ ListItemGroup() {
+ ListItem() {
+ Text('a')
+ }
+
+ ListItem() {
+ Text('b')
+ }
+
+ ListItem() {
+ Text('c')
+ }
+ }
+ .borderWidth(1)
+
+ ListItemGroup() {
+ ListItem() {
+ Text('a')
+ }
+
+ ListItem() {
+ Text('b')
+ }
+
+ ListItem() {
+ Text('c')
+ }
+ }
+ .borderWidth(1)
+ .foregroundEffect(
+ { radius: this.radiusValue }
+ )
+ }
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .borderWidth(1)
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ }
+ .id('scroll')
+ .scrollBar(BarState.On)
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .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/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f75917d9a9b431c085da657310b09472535162f0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0250.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 UIComponentCommonattrForegroundEffect0250 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Marquee({ src: "this is the running text", start: true })
+ .width(100)
+ .height(30)
+ .borderWidth(1)
+ Marquee({ src: "this is the running text", start: true })
+ .width(100)
+ .height(30)
+ .borderWidth(1)
+ .foregroundEffect({ radius: this.radiusValue })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e1dfe64677ba463fb679b0b7c7d95d094be3edff
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0260.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 UIComponentCommonattrForegroundEffect0260 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Menu() {
+ MenuItem({ content: "菜单选项a" })
+ MenuItem({ content: "菜单选项b" })
+ }
+
+ Menu() {
+ MenuItem({ content: "菜单选项a" })
+ MenuItem({ content: "菜单选项b" })
+ }
+ .foregroundEffect({ radius: this.radiusValue })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..71430acd2c58f43e3da15ebfadece3081d602d1e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0270.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 UIComponentCommonattrForegroundEffect0270 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Menu() {
+ MenuItem({ content: "菜单a" })
+ MenuItem({ content: "菜单a" })
+ .foregroundEffect({ radius: this.radiusValue })
+ }.width(90)
+
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..50ff9fd2e57355477b4170ee3a111119c809c55e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0280.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 UIComponentCommonattrForegroundEffect0280 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Menu() {
+ MenuItemGroup() {
+ MenuItem({ content: '菜单选项a' })
+ MenuItem({ content: '菜单选项b' })
+ MenuItem({ content: '菜单选项c' })
+ }
+ .borderWidth(1)
+ .margin(10)
+
+ MenuItemGroup() {
+ MenuItem({ content: '菜单选项a' })
+ MenuItem({ content: '菜单选项b' })
+ MenuItem({ content: '菜单选项c' })
+ }
+ .borderWidth(1)
+ .margin(10)
+ .foregroundEffect(
+ { radius: this.radiusValue }
+ )
+ }
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d4df6221c1ce603c584f00c0891b84b64add9f81
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0290.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 UIComponentCommonattrForegroundEffect0290 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ NavDestination() {
+ Text('NavDestination内容')
+ }
+ .height(150)
+ .width('100%')
+ .title('设置')
+ .borderWidth(1)
+
+ NavDestination() {
+ Text('NavDestination内容')
+ }
+ .height(150)
+ .width('100%')
+ .title('设置')
+ .borderWidth(1)
+ .foregroundEffect({
+ radius: this.radiusValue
+ })
+
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..47784c5efc6c6f873b1047f6dbaee396f9d4e8f5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0300.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 UIComponentCommonattrForegroundEffect0300 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Navigation() {
+ Text('Navigation内容')
+ }
+ .height(150)
+ .width('100%')
+ .title('设置')
+ .borderWidth(1)
+
+ Navigation() {
+ Text('Navigation内容')
+ }
+ .height(150)
+ .width('100%')
+ .title('设置')
+ .borderWidth(1)
+ .foregroundEffect({
+ radius: this.radiusValue
+ })
+
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0d22cb9ad3863070fc5d32f29f2dbca151e57f35
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0310.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 UIComponentCommonattrForegroundEffect0310 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Navigator() {
+ Text('我是Navigator').width('100%').textAlign(TextAlign.Center)
+ }
+
+ Navigator() {
+ Text('我是Navigator').width('100%').textAlign(TextAlign.Center)
+ }
+ .foregroundEffect({ radius: this.radiusValue })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ec6aa8f84bb26a3379af2f014dc4221ae10b4440
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0320.ets
@@ -0,0 +1,92 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0320 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Navigation() {
+ NavRouter() {
+ Row() {
+ Text(`WLAN`)
+ }
+
+ NavDestination() {
+ Flex({ direction: FlexDirection.Row }) {
+ Text('未找到可用WLAN').fontSize(30).padding({ left: 15 })
+ }
+ }.title("WLAN")
+ }
+ .borderWidth(1)
+
+ NavRouter() {
+ Row() {
+ Text(`WLAN`)
+ }
+
+ NavDestination() {
+ Flex({ direction: FlexDirection.Row }) {
+ Text('未找到可用WLAN').fontSize(30).padding({ left: 15 })
+ }
+ }.title("蓝牙")
+ }
+ .borderWidth(1)
+ .margin({ top: 10 })
+ .foregroundEffect({
+ radius: this.radiusValue
+ })
+
+ }
+ .height(200)
+ .width('100%')
+ .title('设置')
+
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0330.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dc4832f717c76a620bc489ee17e1016224579779
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0330.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 UIComponentCommonattrForegroundEffect0330 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+
+ Panel(true) {
+ Column() {
+ Text('This Panel Component')
+ }
+ }
+ .height(100)
+
+ Panel(true) {
+ Column() {
+ Text('This Panel Component')
+ }
+ }
+ .height(100)
+ .margin({ bottom: 50 })
+ .foregroundEffect({ radius: this.radiusValue })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0340.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5b2d8b23c6f353092d9c6fc20dca0863b9a2c9a4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0340.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 UIComponentCommonattrForegroundEffect0340 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Path()
+ .width('600px')
+ .height('10px')
+ .commands('M0 0 L600 0')
+ .stroke(Color.Black)
+ .strokeWidth(3)
+
+ Path()
+ .width('600px')
+ .height('10px')
+ .commands('M0 0 L600 0')
+ .stroke(Color.Black)
+ .strokeWidth(3)
+ .foregroundEffect({ radius: this.radiusValue })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0350.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7b3d1a2917a7c14ab8251c30913947e7c8f902d7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0350.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 UIComponentCommonattrForegroundEffect0350 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+
+ PatternLock()
+ .sideLength(200)
+ .autoReset(true)
+ Divider().strokeWidth(1)
+ PatternLock()
+ .sideLength(200)
+ .autoReset(true)
+ .foregroundEffect({ radius: this.radiusValue })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ed389b85648088b001235271aa237cedd6ad0e3e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0360.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 UIComponentCommonattrForegroundEffect0360 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Polygon({ width: 100, height: 100 })
+ .points([[0, 0], [50, 100], [100, 0]])
+ .fill(Color.Green)
+
+ Polygon({ width: 100, height: 100 })
+ .points([[0, 0], [50, 100], [100, 0]])
+ .fill(Color.Green)
+ .foregroundEffect({ radius: this.radiusValue })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0370.ets
new file mode 100644
index 0000000000000000000000000000000000000000..52f1e6dc31eb739a44ee9b2239992b5912cb419f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0370.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 UIComponentCommonattrForegroundEffect0370 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Polyline({ width: 100, height: 100 })
+ .points([[0, 0], [20, 60], [100, 100]])
+ .fillOpacity(0)
+ .stroke(Color.Red)
+ .strokeWidth(5)
+
+ Polyline({ width: 100, height: 100 })
+ .points([[0, 0], [20, 60], [100, 100]])
+ .fillOpacity(0)
+ .stroke(Color.Red)
+ .strokeWidth(5)
+ .foregroundEffect({ radius: this.radiusValue })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6571c45be05b08d4fafd0584219a44b9c70e57cc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0380.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 UIComponentCommonattrForegroundEffect0380 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Progress({ value: 10, type: ProgressType.Linear }).width(200)
+
+ Progress({ value: 10, type: ProgressType.Linear }).width(200)
+ .foregroundEffect({ radius: this.radiusValue })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cac7a8c28fb7598096a9efc6f27388430ced17f2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0390.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 UIComponentCommonattrForegroundEffect0390 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ QRCode('我是二维码').width(140).height(140)
+
+ QRCode('我是二维码').width(140).height(140)
+ .margin({ top: 30 })
+ .foregroundEffect({ radius: this.radiusValue })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c2b042cf387d0e63a1f5cf03bcc84c9fa918daf1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0400.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.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0400 {
+ @State radius: number = 0
+
+ build() {
+ Column() {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0400_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0400_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0400_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Radio({ value: 'Radio', group: 'radioGroup' })
+ .checked(true)
+ .height(50)
+ .width(50)
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0400_004')
+ .layoutWeight(1)
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0410.ets
new file mode 100644
index 0000000000000000000000000000000000000000..23586e0d7c0623e1837d83279eed00c792f1ae0f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0410.ets
@@ -0,0 +1,98 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0410 {
+ @State rating: number = 3.5
+ @State radius: number = 0
+
+ build() {
+ Column() {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0410_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0410_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0410_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column({ space: 20 }) {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Column() {
+ Rating({ rating: this.rating, indicator: false })
+ .stars(5)
+ .stepSize(0.5)
+ .margin({ top: 24 })
+ .onChange((value: number) => {
+ this.rating = value
+ })
+ .foregroundEffect({ radius: this.radius })
+
+ Text('current score is ' + this.rating)
+ .fontSize(20)
+ .fontColor('rgba(24,36,49,0.60)')
+ .margin({ top: 16 })
+ }
+ .width(360)
+ .height(113)
+ .backgroundColor(Color.Pink)
+ .margin({ top: 68 })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0410_004')
+ .layoutWeight(1)
+ }
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0420.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c856d723e404eec3c1a853379fbf2b1acb5cb2cd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0420.ets
@@ -0,0 +1,95 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0420 {
+ @State radius: number = 0
+
+ build() {
+ Column({ space: 10 }) {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0420_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0420_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0420_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ // 绘制 90% * 50 矩形
+ // 左上圆角宽高 40
+ // 右上圆角宽高 20
+ // 右下圆角宽高 40
+ // 左下圆角宽高 20
+ Rect({
+ width: '90%',
+ height: 80
+ })
+ .radius([[40, 40], [20, 20], [40, 40], [20, 20]])
+ .fill(Color.Pink)
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0420_004')
+ .layoutWeight(1)
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0430.ets
new file mode 100644
index 0000000000000000000000000000000000000000..92337672757e5a5de8d6f41c162a757cd3c0ee6b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0430.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.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0430 {
+ controller: RichEditorController = new RichEditorController()
+ options: RichEditorOptions = { controller: this.controller }
+ @State radius: number = 0
+
+ build() {
+ Column({ space: 20 }) {
+ Text('SUB_ACE_UI_COMPONENT_COMMONATTR_FOREGROUNDEFFECT_0430')
+ .fontSize(16)
+
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0430_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0430_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0430_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .height('20%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column({ space: 20 }) {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ RichEditor(this.options)
+ .width('100%')
+ .height('20%')
+ .backgroundColor(Color.Pink)
+ .onReady(() => {
+ this.controller.addTextSpan('RichEditor', {
+ style: {
+ fontColor: Color.Black,
+ fontSize: 26
+ }
+ })
+ })
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0430_004')
+ .width('100%')
+ .layoutWeight(1)
+ .scrollable(ScrollDirection.Vertical)
+ .scrollBar(BarState.Auto)
+ }
+ }
+}
+
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0440.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5af46a789604be90eb91ac1e05f4f19d67fc9573
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0440.ets
@@ -0,0 +1,90 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect440 {
+ @State radius: number = 0
+
+ build() {
+ Column() {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0440_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0440_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0440_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column({ space: 20 }) {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Row() {
+ Text('我是 Row')
+ .fontSize(20)
+ .fontColor('rgba(24,36,49,0.60)')
+ .margin({ top: 16 })
+ }
+ .width('100%')
+ .height(120)
+ .justifyContent(FlexAlign.Center)
+ .backgroundColor(Color.Pink)
+ .margin({ top: 68 })
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0440_004')
+ .layoutWeight(1)
+ }
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0450.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b35532760c5cdf194e73cd7022a5360ad30c2ada
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0450.ets
@@ -0,0 +1,95 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect450 {
+ @State radius: number = 0
+
+ build() {
+ Column() {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0450_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0450_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0450_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ RowSplit() {
+ Text('1').width('15%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('2').width('20%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('3').width('25%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ Text('4').width('20%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
+ Text('5').width('15%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
+ }
+ .resizeable(true) // 可拖动
+ .width('100%')
+ .height(100)
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0450_004')
+ .layoutWeight(1)
+ }
+ .width('100%')
+ .margin({ top: 5 })
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0460.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7acbaefdccfb28df083c3a5d5761b00186c98a51
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0460.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 UIComponentCommonattrForegroundEffect0460 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+
+ Scroll() {
+ Column() {
+ Text('aaaaaaaaaa')
+ Text('aaaaaaaaaa')
+ Text('aaaaaaaaaa')
+ Text('aaaaaaaaaa')
+ Text('aaaaaaaaaa')
+ Text('aaaaaaaaaa')
+ }
+ .width(150)
+ }
+ .height('80')
+ .scrollBar(BarState.On)
+
+ Scroll() {
+ Column() {
+ Text('aaaaaaaaaa')
+ Text('aaaaaaaaaa')
+ Text('aaaaaaaaaa')
+ Text('aaaaaaaaaa')
+ Text('aaaaaaaaaa')
+ Text('aaaaaaaaaa')
+ }
+ .width(150)
+ }
+ .height('80')
+ .margin({ top: 30 })
+ .scrollBar(BarState.On)
+ .foregroundEffect({ radius: this.radiusValue })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0470.ets
new file mode 100644
index 0000000000000000000000000000000000000000..56cd934a7f9065e960cd1b56996bd58ab4e6ba17
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0470.ets
@@ -0,0 +1,92 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0470 {
+ @State radius: number = 0
+
+ build() {
+ Column() {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0470_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0470_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0470_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Search({ placeholder: 'Type to search...' })
+ .searchButton('Search')
+ .width('95%')
+ .height(40)
+ .backgroundColor('#F5F5F5')
+ .placeholderColor(Color.Grey)
+ .placeholderFont({ size: 18, weight: 400 })
+ .textFont({ size: 18, weight: 400 })
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0470_004')
+ .layoutWeight(1)
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0480.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9c73a913c9fae31cba6605ea21c8e089c42e1fa8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0480.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 UIComponentCommonattrForegroundEffect0480 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Select([{ value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .width(100)
+
+ Select([{ value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .foregroundEffect({ radius: this.radiusValue })
+ .width(100)
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
+
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0490.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7c6b1a4de3ab13e5ab30bb5fee5f81300a4ec5a6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0490.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 UIComponentCommonattrForegroundEffect0490 {
+ @State radius: number = 0
+
+ build() {
+ Column() {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0490_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0490_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0490_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column({ space: 20 }) {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Column({ space: 10 }) {
+ Shape() {
+ Path().width(200).height(60).commands('M0 0 L400 0 L400 150 Z')
+ }
+ .viewPort({
+ x: -80,
+ y: -5,
+ width: 500,
+ height: 300
+ })
+ .fill(0x317AF7)
+ .stroke(Color.Red)
+ .strokeWidth(3)
+ .strokeLineJoin(LineJoinStyle.Miter)
+ .strokeMiterLimit(5)
+ .foregroundEffect({ radius: this.radius })
+ }
+ .width('100%')
+ .margin({ top: 15 })
+ .backgroundColor(Color.Pink)
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0490_004')
+ .layoutWeight(1)
+ }
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0500.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f6eae809b44dd3d5c8cd8cb77f2dce6439489dce
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0500.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 UIComponentCommonattrForegroundEffect0500 {
+ @State radiusValue: number = 0;
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ SideBarContainer(SideBarContainerType.Embed) {
+ Column() {
+ Column() {
+ Image('icon.png').width(64).height(64)
+ Text("Index")
+ .fontSize(25)
+ }
+ }.width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+
+ Column() {
+ Text('content').fontSize(25)
+ }
+ .margin({ top: 50, left: 20, right: 30 })
+ }
+ .sideBarWidth(150)
+ .minSideBarWidth(50)
+ .maxSideBarWidth(300)
+ .minContentWidth(0)
+ .height(200)
+
+ SideBarContainer(SideBarContainerType.Embed) {
+ Column() {
+ Column() {
+ Image('icon.png').width(64).height(64)
+ Text("Index")
+ .fontSize(25)
+ }
+ }.width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+
+ Column() {
+ Text('content').fontSize(25)
+ }
+ .margin({ top: 50, left: 20, right: 30 })
+ }
+ .sideBarWidth(150)
+ .minSideBarWidth(50)
+ .maxSideBarWidth(300)
+ .minContentWidth(0)
+ .height(200)
+ .foregroundEffect({ radius: this.radiusValue })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0510.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0f2a915eebaf3853b501053de1a3d5be809ce7cb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0510.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.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0510 {
+ @State radius: number = 0
+ @State inSetValueOne: number = 30
+
+ build() {
+ Column({ space: 10 }) {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0510_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0510_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0510_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Row() {
+ Slider({
+ value: this.inSetValueOne,
+ min: 0,
+ max: 100,
+ style: SliderStyle.InSet
+ })
+ .blockColor('#191970')
+ .trackColor('#ADD8E6')
+ .selectedColor('#4169E1')
+ .showTips(true)
+ .onChange((value: number, mode: SliderChangeMode) => {
+ this.inSetValueOne = value
+ console.info('value:' + value + 'mode:' + mode.toString())
+ })
+ .foregroundEffect({ radius: this.radius })
+
+ Text(this.inSetValueOne
+ .toFixed(0))
+ .fontSize(20)
+ }
+ .width('80%')
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0510_004')
+ .layoutWeight(1)
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0520.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b0534c7e3808e020b4bbe60812950bf3f143db4a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0520.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.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect520 {
+ @State radius: number = 0
+
+ build() {
+ Column() {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0520_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0520_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0520_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text() {
+ Span('I am Underline-WAVY-span')
+ .decoration({
+ type: TextDecorationType.Underline,
+ color: Color.Red,
+ style: TextDecorationStyle.WAVY
+ })
+ .fontSize(28)
+ .foregroundEffect({ radius: this.radius })
+ }
+ .backgroundColor(Color.Pink)
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0520_004')
+ .layoutWeight(1)
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0530.ets
new file mode 100644
index 0000000000000000000000000000000000000000..588d106f4b933980f72bdbc064fcdc0cd0869026
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0530.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 UIComponentCommonattrForegroundEffect0530 {
+ @State radius: number = 0
+
+ build() {
+ Column({ space: 10 }) {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0530_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0530_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0530_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Stack({ alignContent: Alignment.Bottom }) {
+ Text('First child, show in bottom')
+ .width('90%')
+ .height('100%')
+ .backgroundColor(0xd2cab3)
+ .align(Alignment.Top)
+
+ Text('Second child, show in top')
+ .width('70%')
+ .height('60%')
+ .backgroundColor(0xc1cbac)
+ .align(Alignment.Top)
+ }
+ .width('100%')
+ .height(150)
+ .backgroundColor(Color.Pink)
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0530_004')
+ .layoutWeight(1)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0540.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e8f1735bf9e38bcc89c893ae1646649f718822ee
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0540.ets
@@ -0,0 +1,93 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0540 {
+ @State radius: number = 0
+
+ build() {
+ Column({ space: 10 }) {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0540_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0540_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0540_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ TextInput({ placeholder: 'I am TextInput' })
+ .placeholderColor(Color.Grey)
+ .placeholderFont({ size: 20, weight: 400 })
+ .caretColor(Color.Blue)
+ .width('95%')
+ .height(40)
+ .margin(20)
+ .fontSize(14)
+ .fontColor(Color.Black)
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0540_004')
+ .layoutWeight(1)
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0550.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0a6748acf57f819ca31350e0bbbde4fecb65c16c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0550.ets
@@ -0,0 +1,115 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0550 {
+ private select: number = 1
+ private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4']
+ @State radius: number = 0
+
+ build() {
+ Column({ space: 10 }) {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0550_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0550_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0550_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ TextPicker({
+ range: this.fruits,
+ selected: this.select
+ })
+ .onChange((value: string | string[], index: number | number[]) => {
+ console.info('Picker item changed, value: ' + value + ', index: ' + index)
+ })
+ .disappearTextStyle({
+ color: Color.Red,
+ font: {
+ size: 15,
+ weight: FontWeight.Lighter
+ }
+ })
+ .textStyle({
+ color: Color.Black,
+ font: {
+ size: 20,
+ weight: FontWeight.Normal
+ }
+ })
+ .selectedTextStyle({
+ color: Color.Blue,
+ font: {
+ size: 30,
+ weight: FontWeight.Bolder
+ }
+ })
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0550_004')
+ .layoutWeight(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/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0560.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ef958c37c143a28a60c370c25b2bc3a2f9abc74d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0560.ets
@@ -0,0 +1,90 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0560 {
+ @State radius: number = 0
+
+ build() {
+ Column() {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0560_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0560_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0560_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column({ space: 20 }) {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ TextTimer({ isCountDown: true, count: 30000 })
+ .width('100%')
+ .format('mm:ss.SS')
+ .fontColor(Color.Black)
+ .fontSize(50)
+ .backgroundColor(Color.Pink)
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0560_004')
+ .layoutWeight(1)
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0570.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2ce2355e6df7a8cc49f5d81f599a5b8fd20e3383
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0570.ets
@@ -0,0 +1,115 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0570 {
+ private selectedTime: Date = new Date('2022-07-22T08:00:00')
+ @State radius: number = 0
+
+ build() {
+ Column({ space: 10 }) {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0570_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0570_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0570_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ TimePicker({
+ selected: this.selectedTime,
+ })
+ .onChange((value: TimePickerResult) => {
+ if (value.hour >= 0) {
+ this.selectedTime.setHours(value.hour, value.minute)
+ console.info('select current date is: ' + JSON.stringify(value))
+ }
+ })
+ .disappearTextStyle({
+ color: Color.Red,
+ font: {
+ size: 15,
+ weight: FontWeight.Lighter
+ }
+ })
+ .textStyle({
+ color: Color.Black,
+ font: {
+ size: 20,
+ weight: FontWeight.Normal
+ }
+ })
+ .selectedTextStyle({
+ color: Color.Blue,
+ font: {
+ size: 30,
+ weight: FontWeight.Bolder
+ }
+ })
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0570_004')
+ .layoutWeight(1)
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0580.ets
new file mode 100644
index 0000000000000000000000000000000000000000..980aba6934408b9bb89f6acdf93ce0e4cfad9295
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0580.ets
@@ -0,0 +1,98 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@Entry
+@Component
+struct UIComponentCommonattrForegroundEffect0580 {
+ @State radius: number = 0
+
+ build() {
+ Column({ space: 10 }) {
+ Row() {
+ Button('radius:10')
+ .key('UIComponentCommonattrForegroundEffect0580_001')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius += 10
+ })
+
+ Button('radius0')
+ .key('UIComponentCommonattrForegroundEffect0580_002')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius = 0
+ })
+
+ Button('radius:-10')
+ .key('UIComponentCommonattrForegroundEffect0580_003')
+ .fontSize(20)
+ .onClick(() => {
+ this.radius -= 10
+ })
+ }
+ .width('100%')
+ .justifyContent(FlexAlign.SpaceEvenly)
+ .margin({ bottom: 20 })
+
+ Scroll() {
+ Column() {
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Text('我是占位 Text')
+ .width('100%')
+ .height('20%')
+ .fontSize(28)
+
+ Column({ space: 10 }) {
+ Text('type: Toggle Switch')
+ .fontSize(20)
+ .textAlign(TextAlign.Center)
+ .fontColor(Color.Grey)
+ .width('100%')
+
+ Toggle({
+ type: ToggleType.Switch,
+ isOn: true
+ })
+ .selectedColor('#007DFF')
+ .switchPointColor('#FFFFFF')
+ .foregroundEffect({ radius: this.radius })
+ }
+ }
+ }
+ .id('UIComponentCommonattrForegroundEffect0580_004')
+ .layoutWeight(1)
+ }
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0590.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e219244e51d00100c11402fcfb8a941accd1da17
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0590.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 UIComponentCommonattrForegroundEffect0590 {
+ @State radiusValue: number = 0;
+ controller: VideoController = new VideoController();
+
+ build() {
+ Column({ space: 10 }) {
+ Scroll() {
+ Column({ space: 10 }) {
+ Row() {
+ }.height(600)
+
+ Video({
+ src: '',
+ controller: this.controller
+ })
+ .width('100%')
+ .height(200)
+ .autoPlay(false)
+ .controls(true)
+ Video({
+ src: '',
+ controller: this.controller
+ })
+ .width('100%')
+ .height(200)
+ .autoPlay(false)
+ .controls(true)
+ .foregroundEffect({ radius: this.radiusValue })
+
+ Button('radius: 10')
+ .id('button1')
+ .onClick(() => {
+ this.radiusValue = 10;
+ })
+ Button('radius: 0')
+ .id('button2')
+ .onClick(() => {
+ this.radiusValue = 0;
+ })
+ Button('radius: -10')
+ .id('button3')
+ .onClick(() => {
+ this.radiusValue = -10;
+ })
+ }
+ .width('100%')
+ .padding(50)
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+ .id('scroll')
+ .scrollable(ScrollDirection.Vertical)
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f8d2d05a1c58f8a9169e931d23356baa76a64896
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0010.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 UIComponentCommonattrGrayscale0010 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .foregroundBlurStyle(
+ BlurStyle.Thin, {
+ blurOptions: { grayscale: [48, 58] }
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9be1dd64456a15065841f9b361dd4bd264463e3b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0020.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 UIComponentCommonattrGrayscale0020 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .foregroundBlurStyle(
+ BlurStyle.Thin, {
+ blurOptions: { grayscale: [-10, -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/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d397e81e50fcb7b73a3cd95b6708ff592d91084e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0030.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 UIComponentCommonattrGrayscale0030 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .foregroundBlurStyle(
+ BlurStyle.Thin, {
+ blurOptions: { grayscale: [128, 128] }
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..00df5221ee92fda3ebbff769ab329d60a858e66f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0040.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 UIComponentCommonattrGrayscale0040 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .backgroundBlurStyle(
+ BlurStyle.Thin, {
+ blurOptions: { grayscale: [48, 58] }
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bd654bb905bc15a21e22b5ae6103ff6b23da1f97
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0050.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 UIComponentCommonattrGrayscale0050 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .backgroundBlurStyle(
+ BlurStyle.Thin, {
+ blurOptions: { grayscale: [-10, -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/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4bc6a534aa89af1c3f88c3ba4fabc1b8e7715a55
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0060.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 UIComponentCommonattrGrayscale0060 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .backgroundBlurStyle(
+ BlurStyle.Thin, {
+ blurOptions: { grayscale: [128, 128] }
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6777ead1fcce5b56ce59350c0f7fb0306e9743a3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0070.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentCommonattrGrayscale0070 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Column()
+ .width(250)
+ .height(150)
+ .backgroundImage('cat.jpg')
+ .backgroundImageSize(ImageSize.Cover)
+ .backgroundEffect({
+ radius: 10,
+ blurOptions: {
+ grayscale: [45, 85]
+ }
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1ee42815575f7ca4977dc241b66165f08ef5c864
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0080.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentCommonattrGrayscale0080 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Column()
+ .width(250)
+ .height(150)
+ .backgroundImage('cat.jpg')
+ .backgroundImageSize(ImageSize.Cover)
+ .backgroundEffect({
+ radius: 10,
+ blurOptions: {
+ grayscale: [-10, -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/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c1a9a446ec89946774ba490956883ce96a56eed7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0090.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentCommonattrGrayscale0090 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Column()
+ .width(250)
+ .height(150)
+ .backgroundImage('cat.jpg')
+ .backgroundImageSize(ImageSize.Cover)
+ .backgroundEffect({
+ radius: 10,
+ blurOptions: {
+ grayscale: [128, 128]
+ }
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..96a7970145c0fe9cf21fcfac75916e75b24fea4d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0100.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 UIComponentCommonattrGrayscale0100 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .blur(BlurStyle.Thin, {
+ grayscale: [48, 58]
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5bb8bb0e0b86b555640a14b522c07a76b9f989ff
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0110.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 UIComponentCommonattrGrayscale0110 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .blur(BlurStyle.Thin, {
+ grayscale: [-10, -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/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cba8afb2208aa9f6a88041efa53afdd83176e789
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0120.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 UIComponentCommonattrGrayscale0120 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .blur(BlurStyle.Thin, {
+ grayscale: [128, 128]
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dfa54b4ea3de9d90e17b73eaf7f3195b6fb175d5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0130.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 UIComponentCommonattrGrayscale0130 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .backdropBlur(20, { grayscale: [48, 58] })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e233e32d7eb89f46fbe9bff2462de1a7898818d4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0140.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 UIComponentCommonattrGrayscale0140 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .backdropBlur(20, { grayscale: [-10, -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/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..88d5cbd02996376375ba88427ef46c73283095bf
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0150.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 UIComponentCommonattrGrayscale0150 {
+ build() {
+ Row() {
+ Column() {
+ Text('原图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ Text('对比图:')
+ Image('cat.jpg')
+ .width(250)
+ .height(150)
+ .backdropBlur(20, { grayscale: [128, 128] })
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dfbb756714ba216247933ef9c91acde43f96ea55
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0010.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 { NodeController, FrameNode } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+
+ const renderNode = this.rootNode.getRenderNode();
+ if (renderNode !== null) {
+ renderNode.size = { width: 100, height: 100 };
+ renderNode.backgroundColor = 0XFFFF0000;
+ }
+ return this.rootNode;
+ }
+}
+
+@Entry
+@Component
+struct Index {
+ private myNodeController: MyNodeController = new MyNodeController();
+
+ build() {
+ Column({ space: 20 }) {
+ NodeContainer(this.myNodeController)
+ .id("frameNode")
+ Button("FrameNode")
+ .id("button")
+ .onClick(() => {
+ this.getUIContext().setDynamicDimming("frameNode",0)
+ animateTo({duration:2000},()=>{
+ this.getUIContext().setDynamicDimming("frameNode",1)
+ })
+ })
+ }
+ .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/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..564e4f250ebbda0849476ba29b8c7c4a3b2e05ac
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0020.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 { RenderNode, FrameNode, NodeController } from '@kit.ArkUI';
+
+const renderNode = new RenderNode();
+renderNode.frame = { x: 0, y: 0, width: 100, height: 100 };
+renderNode.backgroundColor = 0XFFCCC000;
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+
+ const rootRenderNode = this.rootNode.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.appendChild(renderNode);
+ }
+ return this.rootNode;
+ }
+
+ setDynamicDimming(uiContext:UIContext){
+ uiContext.setDynamicDimming("node",0)
+ animateTo({duration:2000},()=>{
+ uiContext.setDynamicDimming("node",1)
+ })
+ }
+
+}
+
+@Entry
+@Component
+struct UIComponentCommonattrSetDynamicDimming0020 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ build() {
+ Column({space:20}) {
+ NodeContainer(this.myNodeController)
+ .id("node")
+ Button("RenderNode")
+ .id("button")
+ .onClick(()=>{
+ this.myNodeController.setDynamicDimming(this.getUIContext())
+ })
+ }
+ .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/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a667f292a82990452435180805e5bc0a62039512
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0040.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 UIComponentCommonattrSetDynamicDimming0040 {
+
+ build() {
+ Column({ space: 20 }) {
+ Image('cat.jpg')
+ .id("image1")
+ .width("90%")
+ .onClick(() => {
+ this.getUIContext().setDynamicDimming("image1", 1)
+ animateTo({
+ duration: 2000
+ }, () => {
+ this.getUIContext().setDynamicDimming("image1", -10)
+ })
+
+ })
+ Image('cat.jpg')
+ .width("90%")
+ .id("image2")
+ .onClick(() => {
+ this.getUIContext().setDynamicDimming("image2", 1)
+ animateTo({
+ duration: 2000
+ }, () => {
+ this.getUIContext().setDynamicDimming("image2", 0)
+ })
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .id("container")
+ .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/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1a330fdde8f717b0eb76217e0131b803bd574529
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0050.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 UIComponentCommonattrSetDynamicDimming0050 {
+
+ build() {
+ Column({ space: 20 }) {
+ Image('cat.jpg')
+ .id("image1")
+ .width("90%")
+ .onClick(() => {
+ this.getUIContext().setDynamicDimming("image1", 0)
+ animateTo({
+ duration: 2000
+ }, () => {
+ this.getUIContext().setDynamicDimming("image1", 50)
+ })
+
+ })
+ Image('cat.jpg')
+ .width("90%")
+ .id("image2")
+ .onClick(() => {
+ this.getUIContext().setDynamicDimming("image2", 0)
+ animateTo({
+ duration: 2000
+ }, () => {
+ this.getUIContext().setDynamicDimming("image2", 1)
+ })
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .id("container")
+ .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/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ca0e7943e2982e47e71daf585cf86b997e513a9a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0060.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 { router } from '@kit.ArkUI'
+
+
+@Entry
+@Component
+struct UIComponentCommonattrSetDynamicDimming0060 {
+
+ @State status:boolean = true
+ @State uiContext:UIContext = this.getUIContext()
+
+ build() {
+ Column({space:20}) {
+ Row().width("80%")
+ .height(100)
+ .id("container")
+ .borderRadius(15)
+ .shadow({radius:50,color:Color.Gray})
+ Button(this.status?"亮":"暗",{type:ButtonType.Normal})
+ .width(120)
+ .borderRadius(10)
+ .id("button")
+ .onClick(()=>{
+ this.uiContext.setDynamicDimming("container",this.status?0:1)
+ this.status = !this.status
+ })
+ }
+ .useShadowBatching(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/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0070_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0070_1.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d42b13ddefee815b01753f6e3e672077084cfba3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0070_1.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 { router } from '@kit.ArkUI'
+
+class routerParams {
+ data1:number
+
+ constructor(num:number) {
+ this.data1 = num
+ }
+}
+
+@Entry
+@Component
+struct UIComponentCommonattrSetDynamicDimming0070_1 {
+
+ @State uiContext:UIContext = this.getUIContext()
+
+ build() {
+ Column({space:20}) {
+ Row().width("80%")
+ .height(100)
+ .id("container1")
+ .borderRadius(15)
+ .shadow({radius:50,color:Color.Gray})
+ Button('跳转到B页面')
+ .width(120)
+ .borderRadius(10)
+ .id("button1")
+ .onClick(()=>{
+ router.pushUrl({
+ url:"testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0070_2",
+ params: new routerParams(0)
+ })
+ })
+ }
+ .useShadowBatching(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/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0070_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0070_2.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8741f6129494aea99d2c513468e98dccf52a21f9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0070_2.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 { router } from '@kit.ArkUI'
+
+interface ParUIContext{
+ uiContext:UIContext
+}
+@Entry
+@Component
+struct UIComponentCommonattrSetDynamicDimming0070_2 {
+
+ @State parUiContext:ParUIContext = router.getParams() as ParUIContext;
+ @State UIContext:UIContext = this.getUIContext();
+
+ build() {
+ Column({space:20}) {
+ Row().width("80%")
+ .height(100)
+ .id("container2")
+ .borderRadius(15)
+ .shadow({radius:50,color:Color.Gray})
+ Text('B页面')
+ Button('返回A页面')
+ .width(120)
+ .borderRadius(10)
+ .id("button2")
+ .onClick(()=>{
+ this.UIContext.setDynamicDimming("container1",0);
+ router.back();
+ })
+ }
+ .useShadowBatching(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/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..47d508a44283368ee22e8d6f6157c3d5fcf7efb6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0080.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.
+ */
+
+class BasicDataSource implements IDataSource {
+ private listenerList: DataChangeListener[] = []
+ private originDataArray: string[] = [];
+
+ public totalCount(): number {
+ return 0;
+ }
+
+ public getData(index: number): string {
+ return this.originDataArray[index];
+ }
+
+ registerDataChangeListener(listener: DataChangeListener): void {
+ if (this.listenerList.indexOf(listener) < 0) {
+ console.info('add listener');
+ this.listenerList.push(listener);
+ }
+ }
+
+ unregisterDataChangeListener(listener: DataChangeListener): void {
+ const pos = this.listenerList.indexOf(listener);
+ if (pos >= 0) {
+ console.info('remove listener');
+ this.listenerList.splice(pos, 1);
+ }
+ }
+
+ notifyDataReload(): void {
+ this.listenerList.forEach(listener => {
+ listener.onDataReloaded();
+ })
+ }
+
+ notifyDataAdd(index: number): void {
+ this.listenerList.forEach(listener => {
+ listener.onDataAdd(index);
+ })
+ }
+
+ notifyDataChange(index: number): void {
+ this.listenerList.forEach(listener => {
+ listener.onDataChange(index);
+ })
+ }
+
+ notifyDataDelete(index: number): void {
+ this.listenerList.forEach(listener => {
+ listener.onDataDelete(index);
+ })
+ }
+
+ notifyDataMove(from: number, to: number): void {
+ this.listenerList.forEach(listener => {
+ listener.onDataMove(from, to);
+ })
+ }
+}
+
+export class DataSource extends BasicDataSource {
+ private dataArray: string[] = [];
+
+ public totalCount(): number {
+ return this.dataArray.length;
+ }
+
+ public getData(index: number): string {
+ return this.dataArray[index];
+ }
+
+ public addData(index: number, data: string): void {
+ this.dataArray.splice(index, 0, data);
+ this.notifyDataAdd(index);
+ }
+
+ public pushData(data: string): void {
+ this.dataArray.push(data);
+ this.notifyDataAdd(this.dataArray.length - 1);
+ }
+
+ public reloadData(list: string[]) {
+ this.dataArray = list
+ this.notifyDataReload() //重新加载
+ }
+}
+
+@Entry
+@Component
+struct UIComponentCommonattrSetDynamicDimming0080 {
+ @State dataList: DataSource = new DataSource()
+ @State switch:boolean = true
+
+ aboutToAppear(): void {
+ for (let index = 0; index < 500; index++) {
+ this.dataList.pushData(index.toString());
+ }
+ }
+
+ build() {
+ Stack({alignContent:Alignment.Bottom}) {
+ Column() {
+ List({ space: 20 }) {
+ LazyForEach(this.dataList, () => {
+ ListItem() {
+ Row()
+ .width("90%")
+ .shadow({ radius: 20, color: Color.Gray })
+ .height(40)
+ .borderRadius(8)
+ .margin({ right: 10, left: 10 }).id("item")
+ }
+ })
+ }.id("list")
+ }
+ .width("100%")
+ .height("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ Button(!this.switch?"变亮":"变暗")
+ .width(120)
+ .offset({y:-20})
+ .id("button")
+ .onClick(() => {
+ this.getUIContext().setDynamicDimming("item",this.switch?0:1)
+ this.switch=!this.switch
+ })
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a94276a5126a51a66d9aff81f328969eadcbfeb4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0100.ets
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { BuilderNode, NodeContent } from "@kit.ArkUI";
+
+interface ParamsInterface {
+ text: string;
+ func: Function;
+}
+
+@Builder
+function buildTextWithFunc(fun: Function) {
+ Text(fun())
+ .fontSize(50)
+ .fontWeight(FontWeight.Bold)
+ .margin({ bottom: 36 })
+}
+
+@Builder
+function buildText(params: ParamsInterface) {
+ Column() {
+ Text(params.text)
+ .fontSize(50)
+ .fontWeight(FontWeight.Bold)
+ .margin({ bottom: 36 })
+ buildTextWithFunc(params.func)
+ }
+ .width("90%")
+ .height(200)
+ .justifyContent(FlexAlign.Center)
+ .id("text")
+}
+
+
+
+@Entry
+@Component
+struct UIComponentCommonattrSetDynamicDimming0100 {
+ @State message: string = "HELLO"
+ private content: NodeContent = new NodeContent();
+
+ build() {
+ Row() {
+ Column({space:20}) {
+ Button('BuilderNode')
+ .id("button")
+ .onClick(() => {
+ let buildNode = new BuilderNode<[ParamsInterface]>(this.getUIContext());
+ buildNode.build(wrapBuilder<[ParamsInterface]>(buildText), {
+ text: this.message, func: () => {
+ return ""
+ }
+ }, { nestingBuilderSupported: true });
+ this.content.addFrameNode(buildNode.getFrameNode());
+ buildNode.dispose();
+ this.getUIContext().setDynamicDimming("text",0)
+ animateTo({duration:2000},()=>{
+ this.getUIContext().setDynamicDimming("text",1)
+ })
+ })
+ ContentSlot(this.content)
+ }
+ .id("column")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .width('100%')
+ .height('100%')
+ }
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7f0021076e046e334c6b245f6371e564c6365e49
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0130.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 brightness from '@ohos.brightness'
+
+@Entry
+@Component
+struct UIComponentCommonattrSetDynamicDimming0130 {
+
+ build() {
+ Column({ space: 20 }) {
+ Text("text")
+ .padding(15)
+ .width("100%")
+ .height(98)
+ .id("button")
+ .textAlign(TextAlign.Center)
+ .onClick(()=>{
+ this.getUIContext().setDynamicDimming("button",0)
+ brightness.setValue(2)
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .id("container")
+ .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/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4f8b9932741ad651e022ab5a93638d04c35948f2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0140.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 UIComponentCommonattrSetDynamicDimming0140 {
+
+ build() {
+ Row() {
+ Column({space:20}) {
+ Image("cat.jpg")
+ .width(300)
+ .height(300)
+ .id("child")
+ .onClick(()=>{
+ this.getUIContext().setDynamicDimming("parent",0)
+ animateTo({duration:2000},()=>{
+ this.getUIContext().setDynamicDimming("parent",1)
+ })
+ })
+ }
+ .id("parent")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .border({width:1})
+ .width('100%')
+ .height(200)
+ }
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..33561cdc2c8d14f815c873a0ca3278361cbb03b8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0150.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 UIComponentCommonattrSetDynamicDimming0150 {
+
+ build() {
+ Column({ space: 20 }) {
+ Button("哈哈哈哈哈哈")
+ .border({width:1,color:Color.Red})
+ .outline({width:1,color:Color.Red})
+ .shadow({radius:79})
+ .padding(15)
+ .width("100%")
+ .height(98)
+ .id("button")
+ .onClick(()=>{
+ this.getUIContext().setDynamicDimming("button",0)
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .id("container")
+ .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/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1158664f2db768535d249b8c870c38a6ff186755
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0160.ets
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+@Entry
+@Component
+struct UIComponentCommonattrSetDynamicDimming0160 {
+ build() {
+ Stack({}) {
+ Button("text1")
+ .id("button1")
+ .width("90%")
+ .height(80)
+ .offset({y:30})
+ .onClick(()=>{
+ this.getUIContext().setDynamicDimming("button1",1)
+ })
+ Button("text2")
+ .width("90%")
+ .offset({y:-30})
+ .height(80)
+ //.backgroundColor(Color.Green)
+ .id("button2")
+ .onClick(()=>{
+ this.getUIContext().setDynamicDimming("button2",0.8)
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .id("container")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2069cb3b1b79cf05d18fa7cadece848dea7ae385
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0170.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 { router } from '@kit.ArkUI'
+
+
+@Entry
+@Component
+struct UIComponentCommonattrSetDynamicDimming0170 {
+ build() {
+ Column({ space: 20 }) {
+ Text("中国")
+ .id("click")
+ .onClick(() => {
+ this.getUIContext().setDynamicDimming("container", 0)
+ animateTo({
+ duration: 2000
+ }, () => {
+ this.getUIContext().setDynamicDimming("container", 1)
+ })
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .id("container")
+ .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/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e68e0be279fe69cd98976005c65b80512fdf0ffe
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0180.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.
+ */
+
+@CustomDialog
+struct Dialog {
+ controller: CustomDialogController
+
+ aboutToAppear(): void {
+
+ }
+
+ build() {
+ Column() {
+ Column() {
+ Text("change text")
+ .id("change")
+ .onClick(() => {
+ this.getUIContext().setDynamicDimming("dialog", 0)
+ animateTo({
+ duration: 2000
+ }, () => {
+ this.getUIContext().setDynamicDimming("dialog", 1)
+ })
+ })
+ }.id("dialog")
+ .height(48)
+ .width(120)
+ }
+ .height("40%")
+ .backgroundColor("#fff")
+ .width("100%")
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+
+ }
+}
+
+@Entry
+@Component
+struct UIComponentCommonattrSetDynamicDimming0180 {
+ private dialogController: CustomDialogController = new CustomDialogController({
+ builder: Dialog(),
+ alignment: DialogAlignment.Bottom,
+ customStyle: true
+ })
+
+ build() {
+ Column({ space: 20 }) {
+ Button("010_CustomDialog")
+ .id("button")
+ .onClick(() => {
+ this.dialogController.open()
+ })
+ }
+ .width("100%")
+ .height("100%")
+ .id("container")
+ .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/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b413ae58db88668040736f6b88278af306a5b8f4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0170.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0170 {
+ @State handlePopup: boolean = false;
+ @State scaleX:number = 1;
+ @State scaleY:number = 1;
+ build() {
+ Column() {
+ Column(){
+ Button('不设置')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('缩放不设置').id('scale')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ .scale({x:this.scaleX,y:this.scaleY})
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ae91df8084b610d5711310d26b5057fb1382fd58
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0190.ets
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0190 {
+ @State handlePopup: boolean = false;
+ @State autoCancel:boolean = false;
+ @State tranX:number = 0;
+ @State tranY:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('不设置')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('平移不设置').id('translate')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.tranX = 50;
+ this.tranY = 100;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ .translate({x:this.tranX,y:this.tranY})
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1e3ee38467366452244acfcd893647a86418e9aa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0200.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0200 {
+ @State handlePopup: boolean = false;
+ @State angle:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('不设置')
+ .id('button')
+ .rotate({angle:this.angle})
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('旋转不设置').id('angle')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.angle = 90;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bb01a2d83156d6dbd3adfae879ba20cd415bf31a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0210.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0210 {
+ @State handlePopup: boolean = false;
+ @State angle:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('不设置')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('旋转不设置').id('angle')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.angle = 90;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ .rotate({angle:this.angle})
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..aa394d641f49659ede76d475d95d6d8f4a59e7c4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0220.ets
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0220 {
+ @State handlePopup: boolean = false;
+ @State autoCancel:boolean = false;
+ @State angle:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('不设置')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ this.autoCancel = true;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .rotate({angle:this.angle})
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('不设置旋转').id('angle')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.angle = 90;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5563315347e62d39b9b0238881e1a28f8c6b48f0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0240.ets
@@ -0,0 +1,93 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Popup } from '@ohos.arkui.advanced.Popup'
+import { matrix4 } from '@kit.ArkUI';
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0240 {
+ @State handlePopup: boolean = false;
+ @State tranX:number = 0;
+ @State tranY:number = 0;
+ @State scaleX:number = 1;
+ @State scaleY:number = 1;
+ @State ang:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('不设置')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .rotate({angle:this.ang})
+ .scale({x:this.scaleX,y:this.scaleY})
+ .translate({x:this.tranX,y:this.tranY})
+ .transform(matrix4.identity())
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('不设置动画').id('animation')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.ang = 90;
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ this.tranX = 50;
+ this.tranY = 100;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0617db93afb4a0f34163bf3db8d0d5388d4538b0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0250.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0250 {
+ @State customPopup: boolean = false;
+ @State angle:number = 0;
+ @Builder popupBuilder() {
+ Row({ space: 2 }) {
+ Text('This is Custom Popup').fontSize(15)
+ }.width(200).height(50).padding(5)
+ }
+ build() {
+ Column() {
+ Column(){
+ Button('rotate')
+ .id('button')
+ .rotate({angle:this.angle})
+ .onClick(()=>{
+ this.customPopup = !this.customPopup;
+ })
+ .bindPopup(this.customPopup, {
+ builder:this.popupBuilder(),
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:false,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.customPopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('旋转').id('angle')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.angle = 90;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e936976c876a6d070f947b46a29f2f1051ffd978
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0260.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0260 {
+ @State customPopup: boolean = false;
+ @State scaleX:number = 1;
+ @State scaleY:number = 1;
+ @Builder popupBuilder() {
+ Row({ space: 2 }) {
+ Text('This is Custom Popup').fontSize(15)
+ }.width(200).height(50).padding(5)
+ }
+ build() {
+ Column() {
+ Column(){
+ Button('scale')
+ .id('button')
+ .scale({x:this.scaleX,y:this.scaleY})
+ .onClick(()=>{
+ this.customPopup = !this.customPopup;
+ })
+ .bindPopup(this.customPopup, {
+ builder:this.popupBuilder(),
+ placementOnTop: true,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:false,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.customPopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('缩放').id('scale')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b09ed186b8d3274b1ee015dc281c717ff3033938
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0270.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 { Popup } from '@ohos.arkui.advanced.Popup'
+import { matrix4 } from '@kit.ArkUI';
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0270 {
+ @State customPopup: boolean = false;
+ @State tranX:number = 0;
+ @State tranY:number = 0;
+ @State scaleX:number = 1;
+ @State scaleY:number = 1;
+ @State ang:number = 0;
+ @Builder popupBuilder() {
+ Row({ space: 2 }) {
+ Text('This is Custom Popup').fontSize(15)
+ }.width(200).height(50).padding(5)
+ }
+ build() {
+ Column() {
+ Column(){
+ Button('popup')
+ .id('button')
+ .rotate({angle:this.ang})
+ .scale({x:this.scaleX,y:this.scaleY})
+ .transform(matrix4.identity())
+ .translate({x:this.tranX,y:this.tranY})
+ .onClick(()=>{
+ this.customPopup = !this.customPopup;
+ })
+ .bindPopup(this.customPopup, {
+ builder:this.popupBuilder(),
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:false,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.customPopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('动画').id('animation')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.ang = 90;
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ this.tranX = 50;
+ this.tranY = 100;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..364e0dc47e4e85386440246a0b33f092591e1aaa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0280.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0280 {
+ @State customPopup: boolean = false;
+ @State tranX:number = 0;
+ @State tranY:number = 0;
+ @Builder popupBuilder() {
+ Row({ space: 2 }) {
+ Text('This is Custom Popup').fontSize(15)
+ }.width(200).height(50).padding(5)
+ }
+ build() {
+ Column() {
+ Column(){
+ Button('translate')
+ .id('button')
+ .translate({x:this.tranX,y:this.tranY})
+ .onClick(()=>{
+ this.customPopup = !this.customPopup;
+ })
+ .bindPopup(this.customPopup, {
+ builder:this.popupBuilder(),
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:false,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.customPopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('平移').id('translate')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.tranX = 50;
+ this.tranY = 100;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8ac464b3c94ebbc81309f866bbb9d84e1d592113
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0290.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0290 {
+ @State customPopup: boolean = false;
+ @State ang:number = 0;
+ @Builder popupBuilder() {
+ Row({ space: 2 }) {
+ Text('This is Custom Popup').fontSize(15)
+ }.width(200).height(50).padding(5)
+ }
+ build() {
+ Column() {
+ Column(){
+ Button('rotate')
+ .id('button')
+ .onClick(()=>{
+ this.customPopup = !this.customPopup;
+ })
+ .bindPopup(this.customPopup, {
+ builder:this.popupBuilder(),
+ placement:Placement.Top,
+ mask:false,
+ autoCancel:false,
+ onWillDismiss:true,
+ followTransformOfTarget:false,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.customPopup = false;
+ }
+ }
+ })
+ }
+ .rotate({angle:this.ang})
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('旋转').id('angle')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.ang = 90;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8b4753ca4b82ed213599b683cbdc1c0bf81f2e53
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0300.ets
@@ -0,0 +1,128 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Popup, PopupButtonOptions, PopupIconOptions, PopupTextOptions } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0300 {
+ @State currentDirection: Direction = Direction.Rtl;
+ @State popShow: boolean = false;
+ @State scaleX: number = 1;
+ @State scaleY: number = 1;
+ @State autoCancel:boolean = false;
+ build() {
+ Column({ space: 3 }) {
+ Column()
+ .width('300')
+ .height('400')
+ .backgroundColor(Color.Blue)
+ .scale(
+ {
+ x: this.scaleX,
+ y: this.scaleY
+ })
+
+ Button('Scale')
+ .id('button')
+ .onClick(() => {
+ this.popShow = !this.popShow;
+ this.autoCancel=false;
+ })
+ .bindPopup(this.popShow,
+ {
+ message: 'This is a popup with transitionEffect',
+ followTransformOfTarget: false,
+ placementOnTop:true,
+ mask:false,
+ autoCancel: this.autoCancel,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible));
+ if (!e.isVisible) {
+ this.popShow = false;
+ }
+ },
+
+ })
+
+ Button('缩放')
+ .id('button1')
+ .onClick(() => {
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ })
+
+
+ }
+ .justifyContent(FlexAlign.Center)
+ .width('100%')
+ .height('100%')
+
+ }
+
+ @Builder
+ PopupToOne() {
+ // popup 自定义高级组件
+ Popup({
+ //PopupIconOptions 类型设置图标内容
+ direction: this.currentDirection,
+ icon: {
+ image: $r('app.media.icon'),
+ width: 32,
+ height: 32,
+ fillColor: Color.White,
+ borderRadius: 16,
+ } as PopupIconOptions,
+ // PopupTextOptions 类型设置文字内容
+ title: {
+ text: 'This is a popup with PopupOptions',
+ fontSize: 20,
+ fontColor: Color.Black,
+ fontWeight: FontWeight.Normal,
+
+ } as PopupTextOptions,
+ //PopupTextOptions 类型设置文字内容
+ message: {
+ text: 'This is the message',
+ fontSize: 15,
+ fontColor: Color.Black,
+ } as PopupTextOptions,
+ showClose: true,
+ onClose: () => {
+ this.popShow = !this.popShow;
+ console.info('close Button click')
+ },
+ // PopupButtonOptions 类型设置按钮内容
+ buttons: [{
+ text: 'confirm',
+ action: () => {
+ console.info('confirm button click')
+ },
+ fontSize: 15,
+ fontColor: Color.Black,
+
+ },
+ {
+ text: 'cancel',
+ action: () => {
+ console.info('cancel button click')
+ },
+ fontSize: 15,
+ fontColor: Color.Black,
+ },] as [PopupButtonOptions?, PopupButtonOptions?]
+ })
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2288923c11b80f07ea8704ee8a0c910a409bc2b1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0320.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0320 {
+ @State handlePopup: boolean = false;
+ @State x: number = 0;
+ @State y: number = 0;
+
+ build() {
+ Column() {
+ Button('column')
+ .id('column')
+ .onClick(() => {
+ this.x = 50;
+ this.y = 100;
+ })
+ Column() {
+ Button('PopupOptions')
+ .id('button')
+ .onClick(() => {
+ this.handlePopup = true;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ messageOptions: {
+ textColor: Color.Red,
+ font: {
+ size: '14vp',
+ style: FontStyle.Italic,
+ weight: FontWeight.Bolder
+ }
+ },
+ targetSpace: '15vp',
+ followTransformOfTarget: false,
+ autoCancel: false,
+ onStateChange: (e) => {
+ let timer = setTimeout(() => {
+ this.handlePopup = false
+ }, 3000);
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ clearTimeout(timer);
+ }
+ },
+ onWillDismiss: false
+ })
+ }
+ .backgroundColor(Color.Gray)
+ .height(100)
+ .width(100)
+ .alignItems(HorizontalAlign.Center)
+ .justifyContent(FlexAlign.Center)
+ }
+ .width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ .justifyContent(FlexAlign.Center)
+ .translate({ x: this.x, y: this.y })
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0670.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1da0322126e124100949bb0fdc5c8b23255a771f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0670.ets
@@ -0,0 +1,98 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Popup, PopupButtonOptions, PopupIconOptions, PopupTextOptions } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0670 {
+ @State currentDirection: Direction = Direction.Rtl;
+ @State follow: boolean | undefined = true;
+ @State popShow: boolean = false;
+ @State scaleX: number = 1;
+ @State scaleY: number = 1;
+ @State angle: number = 0;
+ @State transX: number = 0;
+ @State transY: number = 0;
+ @State autoCancel:boolean = false;
+ build() {
+ Column({ space: 3 }) {
+ Column()
+ .width('300')
+ .height('400')
+ .backgroundColor(Color.Blue)
+ .scale(
+ {
+ x: this.scaleX,
+ y: this.scaleY
+ })
+ .rotate({
+ angle: this.angle
+ })
+ .translate({
+ x: this.transX,
+ y: this.transY
+ })
+
+ Button('popup')
+ .id('button')
+ .onClick(() => {
+ this.popShow = !this.popShow;
+ this.autoCancel=false;
+ })
+ .bindPopup(this.popShow,
+ {
+ message: 'This is a popup with transitionEffect',
+ followTransformOfTarget:this.follow,
+ placementOnTop:true,
+ mask:false,
+ autoCancel: this.autoCancel,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible));
+ if (!e.isVisible) {
+ this.popShow = false;
+ }
+ },
+
+ })
+ Button('fTT-un')
+ .id("button2")
+ .onClick(() => {
+ this.follow = undefined;
+ })
+
+ Button('动画')
+ .id('button1')
+ .onClick(() => {
+ animateTo({
+ duration: 1000
+ }, () => {
+ this.angle = 90;
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ this.transX = 50;
+ this.transY = 100
+ })
+
+ })
+
+
+ }
+ .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/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0680.ets
new file mode 100644
index 0000000000000000000000000000000000000000..804bc34e841a4e2313b38fa9d358df777300be15
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0680.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 { Popup, PopupButtonOptions, PopupIconOptions, PopupTextOptions } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0680 {
+ @State currentDirection: Direction = Direction.Rtl;
+ @State follow: boolean | undefined = true;
+ @State popShow: boolean = false;
+ @State transX: number = 0;
+ @State transY: number = 0;
+ @State autoCancel:boolean = false;
+ build() {
+ Column({ space: 3 }) {
+ Column()
+ .width('300')
+ .height('400')
+ .backgroundColor(Color.Blue)
+ .translate({
+ x: this.transX,
+ y: this.transY
+ })
+
+ Button('popup')
+ .id('button')
+ .onClick(() => {
+ this.popShow = !this.popShow;
+ this.autoCancel=false;
+ })
+ .bindPopup(this.popShow,
+ {
+ message: 'This is a popup with transitionEffect',
+ followTransformOfTarget:this.follow,
+ placementOnTop:true,
+ mask:false,
+ autoCancel: this.autoCancel,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible));
+ if (!e.isVisible) {
+ this.popShow = false;
+ }
+ },
+
+ })
+ Button('fTT-un')
+ .id("button2")
+ .onClick(() => {
+ this.follow = undefined;
+ })
+
+ Button('动画')
+ .id('button1')
+ .onClick(() => {
+ animateTo({
+ duration: 1000
+ }, () => {
+ this.transX = 50;
+ this.transY = 100
+ })
+
+ })
+
+
+ }
+ .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/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0690.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d1afdc065fef1a27aca4e91384127d5f536bb630
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0690.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 { Popup, PopupButtonOptions, PopupIconOptions, PopupTextOptions } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0690 {
+ @State currentDirection: Direction = Direction.Rtl;
+ @State follow: boolean | undefined = true;
+ @State popShow: boolean = false;
+ @State angle: number = 0;
+ @State autoCancel:boolean = false;
+ build() {
+ Column({ space: 3 }) {
+ Column()
+ .width('300')
+ .height('400')
+ .backgroundColor(Color.Blue)
+ .rotate({
+ angle: this.angle
+ })
+
+ Button('rote')
+ .id('button')
+ .onClick(() => {
+ this.popShow = !this.popShow;
+ this.autoCancel=false;
+ })
+ .bindPopup(this.popShow,
+ {
+ message: 'This is a popup with transitionEffect',
+ followTransformOfTarget:this.follow,
+ placementOnTop:true,
+ mask:false,
+ autoCancel: this.autoCancel,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible));
+ if (!e.isVisible) {
+ this.popShow = false;
+ }
+ },
+
+ })
+ Button('fTT-un')
+ .id("button2")
+ .onClick(() => {
+ this.follow = undefined;
+ })
+
+ Button('旋转')
+ .id('button1')
+ .onClick(() => {
+ animateTo({
+ duration: 1000
+ }, () => {
+ this.angle = 90;
+
+ })
+
+ })
+
+
+ }
+ .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/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0700.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bc468c6cd01653ff5905843dc8e27b44a980097d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0700.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0700 {
+ @State handlePopup: boolean = false;
+ @State x: number = 1;
+ @State y: number = 1;
+
+ build() {
+ Column() {
+ Button('column')
+ .id('column')
+ .onClick(() => {
+ this.x = 0.5;
+ this.y = 2;
+ })
+ Column() {
+ Button('PopupOptions')
+ .id('button')
+ .onClick(() => {
+ this.handlePopup = true;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ messageOptions: {
+ textColor: Color.Red,
+ font: {
+ size: '14vp',
+ style: FontStyle.Italic,
+ weight: FontWeight.Bolder
+ }
+ },
+ targetSpace: '15vp',
+ followTransformOfTarget: undefined,
+ autoCancel: false,
+ onStateChange: (e) => {
+ let timer = setTimeout(() => {
+ this.handlePopup = false
+ }, 3000);
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ clearTimeout(timer);
+ }
+ },
+ onWillDismiss: false
+ })
+ }
+ .backgroundColor(Color.Gray)
+ .height(100)
+ .width(100)
+ .alignItems(HorizontalAlign.Center)
+ .justifyContent(FlexAlign.Center)
+ }
+ .width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ .justifyContent(FlexAlign.Center)
+ .scale({ x: this.x, y: this.y })
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0710.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7b0ff279034383f92a9606761960a8f0db8fe1cb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0710.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 { Popup, PopupButtonOptions, PopupIconOptions, PopupTextOptions } from '@ohos.arkui.advanced.Popup'
+import { matrix4 } from '@kit.ArkUI';
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0710 {
+ @State currentDirection: Direction = Direction.Rtl;
+ @State follow: boolean | undefined = true;
+ @State popShow: boolean = false;
+ @State scaleX: number = 1;
+ @State scaleY: number = 1;
+ @State angle: number = 0;
+ @State transX: number = 0;
+ @State transY: number = 0;
+ @State autoCancel:boolean = false;
+ build() {
+ Column({ space: 3 }) {
+ Column()
+ .width('300')
+ .height('400')
+ .backgroundColor(Color.Blue)
+
+ Button('popup')
+ .id('button')
+ .onClick(() => {
+ this.popShow = !this.popShow;
+ this.autoCancel=false;
+ })
+ .bindPopup(this.popShow,
+ {
+ message: 'This is a popup with transitionEffect',
+ followTransformOfTarget:this.follow,
+ placementOnTop:true,
+ mask:false,
+ autoCancel: this.autoCancel,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible));
+ if (!e.isVisible) {
+ this.popShow = false;
+ }
+ },
+
+ })
+ Button('fTT-un')
+ .id("button2")
+ .onClick(() => {
+ this.follow = undefined;
+ })
+
+ Button('动画')
+ .id('button1')
+ .onClick(() => {
+ animateTo({
+ duration: 1000
+ }, () => {
+ this.angle = 90;
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ this.transX = 50;
+ this.transY = 100
+ })
+
+ })
+
+
+ }
+ .transform(
+ matrix4.identity()
+ .scale(
+ {
+ x: this.scaleX,
+ y: this.scaleY
+ })
+ .rotate({
+ angle: this.angle
+ })
+ .translate({
+ x: this.transX,
+ y: this.transY
+ })
+ )
+ .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/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0730.ets
new file mode 100644
index 0000000000000000000000000000000000000000..113ece84e1386a50c24222d8fd109a97935ca6f0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0730.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 { Popup, PopupButtonOptions, PopupIconOptions, PopupTextOptions } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0730 {
+ @State currentDirection: Direction = Direction.Rtl;
+ @State popShow: boolean = false;
+ @State angle: number = 0;
+ @State autoCancel:boolean = false;
+
+ build() {
+ Column({ space: 3 }) {
+
+
+ Button('rate')
+ .id('button')
+ .onClick(() => {
+ this.popShow = !this.popShow;
+ this.autoCancel=false;
+ })
+ .rotate({
+ angle: this.angle
+ })
+ .bindPopup(this.popShow,
+ {
+ message: 'This is a popup with transitionEffect',
+ followTransformOfTarget:false,
+ placementOnTop:true,
+ mask:false,
+ autoCancel: this.autoCancel,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible));
+ if (!e.isVisible) {
+ this.popShow = false;
+ }
+ },
+
+ })
+
+
+ Button('旋转90度')
+ .id('button1')
+ .onClick(() => {
+ animateTo({
+ duration: 1000
+ }, () => {
+ this.angle = 90;
+
+ })
+
+ })
+
+
+ }
+ .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/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0740.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1d8a7eea893ae5a53d7e1a2051b8cf66af9a509d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0740.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 { Popup, PopupButtonOptions, PopupIconOptions, PopupTextOptions } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0740 {
+ @State currentDirection: Direction = Direction.Rtl;
+ @State popShow: boolean = false;
+ @State scaleX: number = 1;
+ @State scaleY: number = 1;
+ @State autoCancel:boolean = false;
+ build() {
+ Column({ space: 3 }) {
+
+ Button('缩放')
+ .id('button')
+ .onClick(() => {
+ this.popShow = !this.popShow;
+ this.autoCancel=false;
+ })
+ .scale({
+ x: this.scaleX,
+ y: this.scaleY
+ })
+ .bindPopup(this.popShow,
+ {
+ message: 'This is a popup with transitionEffect',
+ followTransformOfTarget:false,
+ placementOnTop:true,
+ mask:false,
+ autoCancel: this.autoCancel,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible));
+ if (!e.isVisible) {
+ this.popShow = false;
+ }
+ },
+
+ })
+
+
+ Button('scale')
+ .id('button1')
+ .onClick(() => {
+ animateTo({
+ duration: 1000
+ }, () => {
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+
+ })
+
+ })
+
+
+ }
+ .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/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0750.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e5d694f04e27dabd8dbab123ed1af00ddf0bde77
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0750.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 { Popup } from '@ohos.arkui.advanced.Popup'
+import { matrix4 } from '@kit.ArkUI';
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0750 {
+ @State handlePopup: boolean = false;
+ @State tranX:number = 0;
+ @State tranY:number = 0;
+ @State scaleX:number = 1;
+ @State scaleY:number = 1;
+ @State ang:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('popup')
+ .id('button')
+ .rotate({angle:this.ang})
+ .scale({x:this.scaleX,y:this.scaleY})
+ .translate({x:this.tranX,y:this.tranY})
+ .transform(matrix4.identity())
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:false,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('动画').id('animation')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.ang = 90;
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ this.tranX = 50;
+ this.tranY = 100;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0770.ets
new file mode 100644
index 0000000000000000000000000000000000000000..685dc97ed23f37ab6a7215d34b8f3e4d35f28154
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0770.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 { Popup, PopupButtonOptions, PopupIconOptions, PopupTextOptions } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0770 {
+ @State currentDirection: Direction = Direction.Rtl;
+ @State popShow: boolean = false;
+ @State angle: number = 0;
+ @State autoCancel:boolean = false;
+ build() {
+ Column({ space: 3 }) {
+ Column()
+ .width('300')
+ .height('400')
+ .backgroundColor(Color.Blue)
+ .rotate(
+ {
+ angle: this.angle
+ })
+
+ Button('rotate')
+ .id('button')
+ .onClick(() => {
+ this.popShow = !this.popShow;
+ this.autoCancel=false;
+ })
+ .bindPopup(this.popShow,
+ {
+ message: 'This is a popup with transitionEffect',
+ followTransformOfTarget:false,
+ placementOnTop:true,
+ mask:false,
+ autoCancel: this.autoCancel,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible));
+ if (!e.isVisible) {
+ this.popShow = false;
+ }
+ },
+
+ })
+
+ Button('旋转')
+ .id('button1')
+ .onClick(() => {
+ this.angle = 90;
+ })
+
+
+ }
+ .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/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0780.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7f5e2eeaab1e3de3af16d3e1e893c2220a7a68d5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0780.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0780 {
+ @State handlePopup: boolean = false;
+ @State x: number = 1;
+ @State y: number = 1;
+
+ @Builder popupBuilderFollowtransformoftarget0800() {
+ Row({ space: 2 }) {
+ Image($r("app.media.icon")).width(24).height(24).margin({ left: -5 })
+ Text('Custom Popup').fontSize(10)
+ }.width(100).height(50).padding(5)
+ }
+
+ build() {
+ Column() {
+ Button('column')
+ .id('column')
+ .onClick(() => {
+ this.x = 0.5;
+ this.y = 2;
+ })
+ Column() {
+ Button('PopupOptions')
+ .id('button')
+ .onClick(() => {
+ this.handlePopup = true;
+ })
+ .bindPopup(this.handlePopup, {
+ builder: this.popupBuilderFollowtransformoftarget0800,
+ placement: Placement.Top,
+ mask: {color:'#33000000'},
+ popupColor: Color.Yellow,
+ followTransformOfTarget: false,
+ autoCancel: false,
+ onStateChange: (e) => {
+ let timer = setTimeout(() => {
+ this.handlePopup = false
+ }, 3000);
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ clearTimeout(timer);
+ }
+ },
+ onWillDismiss: false
+ })
+ }
+ .backgroundColor(Color.Gray)
+ .height(100)
+ .width(100)
+ .alignItems(HorizontalAlign.Center)
+ .justifyContent(FlexAlign.Center)
+ }
+ .width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ .justifyContent(FlexAlign.Center)
+ .scale({ x: this.x, y: this.y })
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0800.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a92fdbb83f7e49cff7ea565408b3e8f07cc5ccd8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0800.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0800 {
+ @State handlePopup: boolean = false;
+ @State x: number = 0;
+ @State y: number = 0;
+
+ @Builder popupBuilderFollowtransformoftarget0800() {
+ Row({ space: 2 }) {
+ Image($r("app.media.icon")).width(24).height(24).margin({ left: -5 })
+ Text('Custom Popup').fontSize(10)
+ }.width(100).height(50).padding(5)
+ }
+
+ build() {
+ Column() {
+ Button('column')
+ .id('column')
+ .onClick(() => {
+ this.x = 50;
+ this.y = 100;
+ })
+ Column() {
+ Button('PopupOptions')
+ .id('button')
+ .onClick(() => {
+ this.handlePopup = true;
+ })
+ .bindPopup(this.handlePopup, {
+ builder: this.popupBuilderFollowtransformoftarget0800,
+ placement: Placement.Top,
+ mask: {color:'#33000000'},
+ popupColor: Color.Yellow,
+ followTransformOfTarget: false,
+ autoCancel: false,
+ onStateChange: (e) => {
+ let timer = setTimeout(() => {
+ this.handlePopup = false
+ }, 3000);
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ clearTimeout(timer);
+ }
+ },
+ onWillDismiss: false
+ })
+ }
+ .backgroundColor(Color.Gray)
+ .height(100)
+ .width(100)
+ .alignItems(HorizontalAlign.Center)
+ .justifyContent(FlexAlign.Center)
+ }
+ .width("100%")
+ .height("100%")
+ .alignItems(HorizontalAlign.Center)
+ .justifyContent(FlexAlign.Center)
+ .translate({ x: this.x, y: this.y })
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0810.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cebedfdb6f296b231cdbc6216351507c3123f804
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0810.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 { Popup, PopupButtonOptions, PopupIconOptions, PopupTextOptions } from '@ohos.arkui.advanced.Popup'
+import { matrix4 } from '@kit.ArkUI';
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget0810 {
+ @State currentDirection: Direction = Direction.Rtl;
+ @State follow: boolean | undefined = true;
+ @State popShow: boolean = false;
+ @State scaleX: number = 1;
+ @State scaleY: number = 1;
+ @State angle: number = 0;
+ @State transX: number = 0;
+ @State transY: number = 0;
+ @State autoCancel:boolean = false;
+ build() {
+ Column({ space: 3 }) {
+ Column()
+ .width('300')
+ .height('400')
+ .backgroundColor(Color.Blue)
+
+ Button('popup')
+ .id('button')
+ .onClick(() => {
+ this.popShow = !this.popShow;
+ this.autoCancel=false;
+ })
+ .bindPopup(this.popShow,
+ {
+ message: 'This is a popup with transitionEffect',
+ followTransformOfTarget:this.follow,
+ placementOnTop:true,
+ mask:false,
+ autoCancel: this.autoCancel,
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible));
+ if (!e.isVisible) {
+ this.popShow = false;
+ }
+ },
+
+ })
+ Button('fTT-un')
+ .id("button2")
+ .onClick(() => {
+ this.follow = undefined;
+ })
+
+ Button('动画')
+ .id('button1')
+ .onClick(() => {
+ animateTo({
+ duration: 1000
+ }, () => {
+ this.angle = 90;
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ this.transX = 50;
+ this.transY = 100
+ })
+
+ })
+
+
+ }
+ .transform(
+ matrix4.identity()
+ .scale(
+ {
+ x: this.scaleX,
+ y: this.scaleY
+ })
+ .rotate({
+ angle: this.angle
+ })
+ .translate({
+ x: this.transX,
+ y: this.transY
+ })
+ )
+ .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/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d858b2d5b96d6d5fb411a5eb451a1c24a5eee805
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1010.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget1010 {
+ @State handlePopup: boolean = false;
+ @State angle:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('rotate')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:true,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .rotate({angle:this.angle})
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('旋转').id('angle')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.angle = 90;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..88ced41f9ac81166ddcd4a6e20653bb5124e82c8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1030.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 { Popup } from '@ohos.arkui.advanced.Popup'
+import { matrix4 } from '@kit.ArkUI';
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget1030 {
+ @State handlePopup: boolean = false;
+ @State tranX:number = 0;
+ @State tranY:number = 0;
+ @State scaleX:number = 1;
+ @State scaleY:number = 1;
+ @State ang:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('popup')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:true,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .rotate({angle:this.ang})
+ .scale({x:this.scaleX,y:this.scaleY})
+ .translate({x:this.tranX,y:this.tranY})
+ .transform(matrix4.identity())
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('动画').id('animation')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.ang = 90;
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ this.tranX = 50;
+ this.tranY = 100;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fa2a46697efe232c5a2fede8bf77a3493625d3ab
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1040.ets
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget1040 {
+ @State handlePopup: boolean = false;
+ @State tranX:number = 0;
+ @State tranY:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('translate')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:true,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .translate({x:this.tranX,y:this.tranY})
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('平移').id('translate')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.tranX = 50;
+ this.tranY = 100;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e3940faee2d786cf71fa8298bff440ff014f0904
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1050.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget1050 {
+ @State handlePopup: boolean = false;
+ @State angle:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('rotate')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:true,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('旋转').id('angle')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.angle = 90;
+ })
+ })
+ }.margin({top:70})
+ }
+ .rotate({angle:this.angle})
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9ca1a5eea78f2137d00865c5687b053506db8825
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1060.ets
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget1060 {
+ @State handlePopup: boolean = false;
+ @State scaleX:number = 1;
+ @State scaleY:number = 1;
+ build() {
+ Column() {
+ Column(){
+ Button('scale')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:true,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('缩放').id('scale')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ })
+ })
+ }.margin({top:70})
+ }
+ .scale({x:this.scaleX,y:this.scaleY})
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fa7559f67889752cf01921a6e02583d45aa5f57c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1070.ets
@@ -0,0 +1,93 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Popup } from '@ohos.arkui.advanced.Popup'
+import { matrix4 } from '@kit.ArkUI';
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget1070 {
+ @State handlePopup: boolean = false;
+ @State tranX:number = 0;
+ @State tranY:number = 0;
+ @State scaleX:number = 1;
+ @State scaleY:number = 1;
+ @State ang:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('popup')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:true,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('动画').id('animation')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.ang = 90;
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ this.tranX = 50;
+ this.tranY = 100;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ .rotate({angle:this.ang})
+ .scale({x:this.scaleX,y:this.scaleY})
+ .translate({x:this.tranX,y:this.tranY})
+ .transform(matrix4.identity())
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..91538eda0867b85297c69824909634baa108fa37
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1080.ets
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget1080 {
+ @State handlePopup: boolean = false;
+ @State tranX:number = 0;
+ @State tranY:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('translate')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:true,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('平移').id('translate')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.tranX = 50;
+ this.tranY = 100;
+ })
+ })
+ }.margin({top:70})
+ }
+ .translate({x:this.tranX,y:this.tranY})
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ccfe8fdd720a589c6d8f29644cdfb24cd6f97875
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1090.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 { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget1010 {
+ @State handlePopup: boolean = false;
+ @State angle:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('rotate')
+ .id('button')
+ .rotate({angle:this.angle})
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:undefined,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('旋转90度').id('angle')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.angle = 90;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..769beb6cd2f4a3eb227b16b3cf129d49ce2c4f81
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1100.ets
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget1100 {
+ @State handlePopup: boolean = false;
+ @State scaleX:number = 1;
+ @State scaleY:number = 1;
+ build() {
+ Column() {
+ Column(){
+ Button('scale')
+ .id('button')
+ .scale({x:this.scaleX,y:this.scaleY})
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:undefined,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('缩放').id('scale')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b342000acf90038b791df0a79ebe04b361890fe2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1120.ets
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget1120 {
+ @State handlePopup: boolean = false;;
+ @State tranX:number = 0;
+ @State tranY:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('translate')
+ .id('button')
+ .translate({x:this.tranX,y:this.tranY})
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:undefined,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('平移').id('translate')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.tranX = 50;
+ this.tranY = 100;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fad6710099929f98359b5823d221adaf29560e6d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1140.ets
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget1140 {
+ @State handlePopup: boolean = false;
+ @State scaleX:number = 1;
+ @State scaleY:number = 1;
+ build() {
+ Column() {
+ Column(){
+ Button('scale')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:undefined,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .scale({x:this.scaleX,y:this.scaleY})
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('缩放').id('scale')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5182f3898b8fa59e9df0e047c35eab3ceda39f34
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1150.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 { Popup } from '@ohos.arkui.advanced.Popup'
+import { matrix4 } from '@kit.ArkUI';
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget1150 {
+ @State handlePopup: boolean = false;
+ @State tranX:number = 0;
+ @State tranY:number = 0;
+ @State scaleX:number = 1;
+ @State scaleY:number = 1;
+ @State ang:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('popup')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:undefined,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .rotate({angle:this.ang})
+ .scale({x:this.scaleX,y:this.scaleY})
+ .translate({x:this.tranX,y:this.tranY})
+ .transform(matrix4.identity())
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('动画').id('animation')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.ang = 90;
+ this.scaleX = 0.5;
+ this.scaleY = 2;
+ this.tranX = 50;
+ this.tranY = 100;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..adf84cd6d62111148b91a54eecb74d09aa8fb578
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1160.ets
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { Popup } from '@ohos.arkui.advanced.Popup'
+
+
+@Entry
+@Component
+struct UIComponentPopupboxPopupFollowtransformoftarget1160 {
+ @State handlePopup: boolean = false;
+ @State tranX:number = 0;
+ @State tranY:number = 0;
+ build() {
+ Column() {
+ Column(){
+ Button('translate')
+ .id('button')
+ .onClick(()=>{
+ this.handlePopup = !this.handlePopup;
+ })
+ .bindPopup(this.handlePopup, {
+ message: 'This is a popup with PopupOptions',
+ placementOnTop: true,
+ showInSubWindow:false,
+ autoCancel:false,
+ mask:false,
+ onWillDismiss:true,
+ followTransformOfTarget:undefined,
+ primaryButton: {
+ value: 'confirm',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ // 第二个按钮
+ secondaryButton: {
+ value: 'cancel',
+ action: () => {
+ this.handlePopup = !this.handlePopup;
+ }
+ },
+ onStateChange: (e) => {
+ console.info(JSON.stringify(e.isVisible))
+ if (!e.isVisible) {
+ this.handlePopup = false;
+ }
+ }
+ })
+ }
+ .translate({x:this.tranX,y:this.tranY})
+ .backgroundColor(Color.Green)
+ .justifyContent(FlexAlign.Center)
+ .width('90%')
+ .height('40%')
+ Column(){
+ Button('平移').id('translate')
+ .onClick(()=>{
+ animateTo({
+ duration:1000,
+ iterations:1
+ },()=>{
+ this.tranX = 50;
+ this.tranY = 100;
+ })
+ })
+ }.margin({top:70})
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ }
+}
\ 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/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7175756a35ae162b2a889dcde0147535c9f7feae
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0010.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 UIComponentUISupportForegroundColor0010 {
+
+ build() {
+ Row() {
+ Column() {
+ Circle({ width: 150, height: 200 })
+ Circle({ width: 150, height: 200 })
+ .foregroundColor(Color.Blue)
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Red)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8c232cc3e3f752e845f80ff5b86d2b1015e1a93e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0020.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 UIComponentUISupportForegroundColor0020 {
+
+ build() {
+ Row() {
+ Column() {
+ Circle({ width: 150, height: 200 })
+ Circle({ width: 150, height: 200 })
+ .foregroundColor(Color.Brown)
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Blue)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fef0a6b7458d76846bb5f609e2ce3ea3845f4481
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0030.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 UIComponentUISupportForegroundColor0030 {
+
+ build() {
+ Row() {
+ Column() {
+ Circle({ width: 150, height: 200 })
+ Circle({ width: 150, height: 200 })
+ .foregroundColor(Color.Gray)
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Blue)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..35a087c3927b3b534b75ff05e30c14b922842249
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0040.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 UIComponentUISupportForegroundColor0040 {
+
+ build() {
+ Row() {
+ Column() {
+ Circle({ width: 150, height: 200 })
+ Circle({ width: 150, height: 200 })
+ .foregroundColor(Color.Green)
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Blue)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f45c70077eca1420d03d70ea599db1d299257c8b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0050.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 UIComponentUISupportForegroundColor0050 {
+
+ build() {
+ Row() {
+ Column() {
+ Circle({ width: 150, height: 200 })
+ Circle({ width: 150, height: 200 })
+ .foregroundColor(Color.Red)
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Blue)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..78b2b3095311f516354e7f33a7d7396c4fd37b7f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0060.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 UIComponentUISupportForegroundColor0060 {
+
+ build() {
+ Row() {
+ Column() {
+ Circle({ width: 150, height: 200 })
+ Circle({ width: 150, height: 200 })
+ .foregroundColor(Color.Transparent)
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Blue)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..70504477c4afb96be27e9920f422b6ca838348c6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0070.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 UIComponentUISupportForegroundColor0070 {
+
+ build() {
+ Row() {
+ Column() {
+ Circle({ width: 150, height: 200 })
+ Circle({ width: 150, height: 200 })
+ .foregroundColor('#90EE90')
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Blue)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..198f4c7f1cb73012eb0ffddf86dffaa98f7f6ace
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0080.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 UIComponentUISupportForegroundColor0080 {
+
+ build() {
+ Row() {
+ Column() {
+ Circle({ width: 150, height: 200 })
+ Circle({ width: 150, height: 200 })
+ .foregroundColor('rgb(144,238,144)')
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Blue)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..238b28cdaf2237bb740b44cb622478871031c1f1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0090.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 UIComponentUISupportForegroundColor0090 {
+
+ build() {
+ Row() {
+ Column() {
+ Circle({ width: 150, height: 200 })
+ Circle({ width: 150, height: 200 })
+ .foregroundColor('rgba(144,238,144,1.000)')
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Blue)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..49e95072dc5d741956c2ddcdcb39b4fd461e20e0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0110.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 UIComponentUISupportForegroundColor0110 {
+
+ build() {
+ Row() {
+ Column() {
+ Circle({ width: 150, height: 200 })
+ Circle({ width: 150, height: 200 })
+ .foregroundColor('ssssddww')
+ }
+ .width('100%')
+ .height('100%')
+ .backgroundColor(Color.Blue)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0b5a4380cdc67b22b076f84ee53d9cd3f2527829
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0020.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 UIComponentUISupportImage0020 {
+ build() {
+ Column() {
+ Circle({ width: 150, height: 150 })
+ .foregroundColor(ColoringStrategy.INVERT)
+ .backgroundColor(Color.Black)
+ }
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor(Color.Pink)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7da5b16a6b92b6ba695c65900afaaa239219580a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0030.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 UIComponentUISupportImage0030 {
+ build() {
+ Column() {
+ Circle({ width: 150, height: 150 })
+ .foregroundColor(ColoringStrategy.INVERT)
+ .backgroundColor(Color.White)
+ }
+ .width('100%')
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor(Color.Pink)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9f8ee6c8738db4f64abce8997b0f5e125ac35f8b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0040.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 UIComponentUISupportImage0040 {
+ build() {
+ Column() {
+ Circle({ width: 150, height: 150 })
+ .foregroundColor(ColoringStrategy.INVERT)
+ }
+ .width('100%')
+ .width('100%')
+ .height('100%')
+ .justifyContent(FlexAlign.Center)
+ .alignItems(HorizontalAlign.Center)
+ .backgroundColor(Color.Pink)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9087467472ff8ca451ed309a78101042c7233e3f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0010.ets
@@ -0,0 +1,105 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, LoadingDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0010 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme | undefined = undefined;
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0010_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0010_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Column() {
+ EditableTitleBar({
+ title: 'title',
+ subtitle: 'subtitle',
+ menuItems: [],
+ onCancel: () => {
+
+ },
+ onSave: () => {
+
+ }
+ })
+ }
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1fe1fcc1a853c6a78636591112b592c8a3c82781
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0020.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 { AlertDialog } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, LoadingDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0020 {
+ @State index:number = 0;
+ private testCases :CustomTheme[]=[
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ dialogControllerProgress: CustomDialogController = new CustomDialogController({
+ builder: LoadingDialog({
+ content: '文本文本文本文本文本...',
+ theme: this.customTheme,
+ }),
+ })
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0020_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0020_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ Button('LoadingDialog')
+ .id('UITheme0020_001')
+ .onClick(() => {
+ this.dialogControllerProgress.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/UITheme/UITheme0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..88f3477f2e35f866ec70565009f34b81e6b33c27
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0030.ets
@@ -0,0 +1,117 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, TipsDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0030 {
+ @State index:number =0
+ private testCases :CustomTheme[]=[
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex =0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ dialogControllerImage: CustomDialogController = new CustomDialogController({
+ builder: TipsDialog({
+ imageRes: 'cat.jpg',
+ content: '想要卸载这个APP嘛?',
+ primaryButton: {
+ value: '取消',
+ action: () => {
+ console.info('Callback when the first button is clicked')
+ },
+ },
+ secondaryButton: {
+ value: '删除',
+ role: ButtonRole.ERROR,
+ action: () => {
+ console.info('Callback when the second button is clicked')
+ }
+ },
+ onCheckedChange: () => {
+ console.info('Callback when the checkbox is clicked')
+ },
+ theme: this.customTheme,
+ }),
+ })
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0030_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0030_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ Button('TipsDialog')
+ .id('UITheme0030_001')
+ .onClick(() => {
+ this.dialogControllerImage.open()
+ })
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5634e621a812d3fcc81086756c5d6559e3a25c50
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0040.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 { ConfirmDialog, CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0040 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+
+ build() {
+ Column() {
+ Button('ConfirmDialog')
+ .id('button')
+ .onClick(() => {
+ this.dialogControllerCheckBox.open();
+ })
+ Divider().height(30)
+ Button('test++')
+ .id('test_button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Blue,
+ };
+
+ })
+
+ }.width('100%').height('100%')
+ }
+
+ dialogControllerCheckBox: CustomDialogController = new CustomDialogController({
+ builder: ConfirmDialog({
+ title: '文本标题',
+ theme: this.colorsTheme,
+ content: '文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本',
+ primaryButton: {
+ value: '禁止',
+ action: () => {
+ },
+ },
+ secondaryButton: {
+ value: '允许',
+ action: () => {
+ console.info('Callback when the second button is clicked')
+ }
+ },
+ onCheckedChange: () => {
+ console.info('Callback when the checkbox is clicked')
+ },
+ }),
+ autoCancel: true,
+ alignment: DialogAlignment.Bottom
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..abc6cf6e08b9d35498af30c5f81aea056dd9b689
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0050.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 { AlertDialog } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, LoadingDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0050 {
+ @State index:number =0
+ private testCases :CustomTheme[]=[
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex =0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ dialogControllerConfirm: CustomDialogController = new CustomDialogController({
+ builder: AlertDialog({
+ primaryTitle: '弹框一级标题',
+ secondaryTitle: '弹框二级标题',
+ content: '文本文本文本文本文本',
+ primaryButton: {
+ value: '取消',
+ action: () => {
+ },
+ },
+ secondaryButton: {
+ value: '确认',
+ role: ButtonRole.ERROR,
+ action: () => {
+ console.info('Callback when the second button is clicked')
+ }
+ },
+ theme: this.customTheme,
+ }),
+ });
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0050_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0050_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ Button('AlertDialog')
+ .id('UITheme0050_001')
+ .onClick(() => {
+ this.dialogControllerConfirm.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/UITheme/UITheme0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fee71fcf115c3285350eac6bbb4470c058fec21f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0060.ets
@@ -0,0 +1,126 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, SelectDialog } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, LoadingDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0060 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ dialogControllerList: CustomDialogController = new CustomDialogController({
+ builder: SelectDialog({
+ title: '文本标题',
+ selectedIndex: this.radioIndex,
+ confirm: {
+ value: '取消',
+ action: () => {},
+ },
+ radioContent: [
+ {
+ title: '文本文本文本文本文本',
+ action: () => {
+ this.radioIndex = 0
+ }
+ },
+ {
+ title: '文本文本文本文本',
+ action: () => {
+ this.radioIndex = 1
+ }
+ },
+ {
+ title: '文本文本文本文本',
+ action: () => {
+ this.radioIndex = 2
+ }
+ },
+ ],
+ theme: this.customTheme,
+ }),
+ })
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0060_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0060_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ Button('SelectDialog')
+ .id('UITheme0060_001')
+ .onClick(() => {
+ this.dialogControllerList.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/UITheme/UITheme0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ff8c99e88a2076de3073507b4772da17765c0462
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0070.ets
@@ -0,0 +1,113 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, LoadingDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0070 {
+ @State index: number = 0
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ data: string[] = [];
+ @State customTheme: CustomTheme | undefined = undefined;
+
+ aboutToAppear(): void {
+ for (let i = 0; i < 10; i++) {
+ this.data.push(i.toString());
+ }
+ }
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0070_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0070_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Swiper() {
+ ForEach(this.data, (item: string) => {
+ Text(item.toString())
+ .width('90%')
+ .height(160)
+ .textAlign(TextAlign.Center)
+ .fontSize(30)
+ })
+ }
+ .indicator(new DotIndicator())
+ .displayArrow({
+ showBackground: true,
+ backgroundSize: '30vp',
+ }, false)
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..44c8f1bb596152228709a08b37e97cd2d86f7d1b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0080.ets
@@ -0,0 +1,97 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0080 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl({
+ fontPrimary: '#ff049404'
+ }),
+ new CustomThemeImpl({
+ fontPrimary: '#fff32b3c'
+ }),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme | undefined = undefined;
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0080_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0080_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Text('WithTheme')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..205e55ed60298af5ff6a48ba98ecc4edaa7e5edb
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0090.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 { AlertDialog, EditableTitleBar, OperationType, promptAction, SubHeader } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0090 {
+ @State index: number = 0;
+ private testCases: (CustomTheme | undefined)[] = [
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl({
+ fontPrimary :'#ffde9f40',
+ fontSecondary :'#ffbOcb7f',
+ fontEmphasize :'#ff0b45f3',
+ iconTertiary :'#fff8d005',
+ interactiveHover :'#ffe3156f',
+ interactiveFocus :'#ff03fadd',
+ iconSecondary :'#ffee9595',
+ iconPrimary :'#ffba06ec',
+ }),
+ undefined,
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme | undefined = new CustomThemeImpl(GreenThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0090_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0090_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ SubHeader({
+ icon: '',
+ primaryTitle: '一级标题',
+ secondaryTitle: '二级标题',
+ operationType: OperationType.TEXT_ARROW,
+ operationItem: [{ value: '更多',
+ action: () => {
+ promptAction.showToast({ message: 'demo' })
+ }
+ }]
+ })
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ea1c1a36b8cf8ceb6605d7a96bc9de7340657b46
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0100.ets
@@ -0,0 +1,93 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme, LoadingDialog } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0100 {
+ @State index: number = 0
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(GreenThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0100_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0100_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Progress({ value: 30, type: ProgressType.Linear }).width(200)
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c0e940c7deeae0657c2a5887dea328320b7af0ec
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0110.ets
@@ -0,0 +1,195 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar, ProgressButton } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0110 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ @State halfProgress: number = 0
+ @State smallProgress: number = 0
+ @State bigProgress: number = 0
+ @State textState1: string = ''
+ @State isRunning1: boolean = false
+ @State enableState1: boolean = true
+ @State progressState: Visibility = Visibility.None
+ @State ButtonState: Visibility = Visibility.Visible
+ @State buttonText: string = '下载'
+ @State buttonEnable: boolean = true
+ @State isEnd: boolean = false
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0110_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0110_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Column({ space: 20 }) {
+ Text('下载按钮')
+ Button(this.buttonText)
+ .id('UITheme0110_001')
+ .fontSize($r('sys.float.ohos_id_text_size_button3'))
+ .fontWeight(FontWeight.Medium)
+ .padding({ left: 8, right: 8 })
+ .opacity(this.buttonEnable ? 1 : 0.4)
+ .enabled(this.buttonEnable)
+ .height(28)
+ .borderRadius(14)
+ .width(60)
+ .onClick(() => {
+ if (!this.isEnd) {
+ this.buttonText = '等待中'
+ let timer1 = setInterval(() => {
+ this.progressState = Visibility.Visible
+ this.ButtonState = Visibility.None
+ clearInterval(timer1)
+ this.isRunning1 = true
+ let timer = setInterval(() => {
+ if (this.isRunning1) {
+ if (this.halfProgress === 100) {
+ this.isEnd = true
+ } else {
+ this.halfProgress++
+ if (this.halfProgress === 100) {
+ this.textState1 = '安装中'
+ this.enableState1 = false
+ this.ButtonState = Visibility.Visible
+ this.progressState = Visibility.None
+ this.buttonEnable = false
+ this.buttonText = '安装中'
+ let timer2 = setInterval(() => {
+ this.buttonText = '打开'
+ this.buttonEnable = true
+ this.isEnd = true
+ clearInterval(timer2)
+ }, 2000)
+ }
+ console.info('x progress++ = ' + this.halfProgress)
+ }
+ } else {
+ console.info('x isRunning = ' + false)
+ clearInterval(timer)
+ }
+ }, 100)
+ }, 2000)
+ }
+ })
+ .visibility(this.ButtonState)
+ ProgressButton({
+ progress: this.halfProgress,
+ progressButtonWidth: "60",
+ content: this.textState1,
+ enable: this.enableState1,
+
+ clickCallback: () => {
+ if (this.isRunning1 && this.halfProgress < 100) {
+ this.textState1 = '继续'
+ }
+ this.isRunning1 = !this.isRunning1
+ let timer = setInterval(() => {
+
+ if (this.isRunning1) {
+ if (this.halfProgress === 100) {
+ } else {
+ this.halfProgress++
+ if (this.halfProgress === 100) {
+ this.textState1 = '安装中'
+ this.enableState1 = false
+ this.ButtonState = Visibility.Visible
+ this.progressState = Visibility.None
+ this.buttonEnable = false
+ this.buttonText = '安装中'
+ let timer2 = setInterval(() => {
+ this.buttonText = '打开'
+ this.buttonEnable = true
+ this.isEnd = true
+ clearInterval(timer2)
+ }, 2000)
+ }
+ console.info('x progress++ = ' + this.halfProgress)
+ }
+ } else {
+ console.info('x isRunning = ' + false)
+ clearInterval(timer)
+ }
+ }, 100)
+ }
+ }).visibility(this.progressState)
+ }.alignItems(HorizontalAlign.Center).width('100%')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..95425709c0a6e8ff14fdaaa8882fb34098d126a0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0130.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 { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0130 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ private arrayA: string[] = ['安'];
+ private arrayB: string[] = ['卜', '白', '包', '毕', '丙'];
+ private arrayC: string[] = ['曹', '成', '陈', '催'];
+ private arrayL: string[] = ['刘', '李', '楼', '梁', '雷', '吕', '柳', '卢'];
+ private value: string[] = ['#', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
+ 'H', 'I', 'J', 'K', 'L', 'M', 'N',
+ 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
+ 'V', 'W', 'X', 'Y', 'Z'];
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0130_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0130_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Column(){
+ AlphabetIndexer({ arrayValue: this.value, selected: 1 })
+ .usingPopup(true)
+ .onSelect((index: number) => {
+ console.info(this.value[index] + ' Selected!')
+ })
+ .onRequestPopupData((index: number) => {
+ if (this.value[index] == 'A') {
+ return this.arrayA
+ } else if (this.value[index] == 'B') {
+ return this.arrayB
+ } else if (this.value[index] == 'C') {
+ return this.arrayC
+ } else if (this.value[index] == 'L') {
+ return this.arrayL
+ } else {
+ return []
+ }
+ })
+ .onPopupSelect((index: number) => {
+ console.info('onPopupSelected:' + index)
+ })
+ }
+ .height('80%')
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1e0e18567779578b56db56049d02a86ffb72d459
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0140.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 { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0140 {
+ @State index: number = 0
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+ private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ scroller: Scroller = new Scroller()
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0140_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0140_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Stack({ alignContent: Alignment.TopStart }) {
+ Scroll(this.scroller) {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(item.toString())
+ .width('90%')
+ .height(150)
+ .backgroundColor('#ff285fcd')
+ .borderRadius(15)
+ .fontSize(16)
+ .textAlign(TextAlign.Center)
+ .margin({ top: 10 })
+ }, (item: string) => item)
+ }.width('100%')
+ }
+ }
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1ca81c518a3efa5f2b2319d21eaf77283d682a64
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0150.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 { AlertDialog, EditableTitleBar } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0150 {
+ @State index: number = 0;
+ private testCases: (CustomTheme | undefined)[] = [
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ undefined,
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme | undefined = new CustomThemeImpl(GreenThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0150_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0150_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ List({ space: 12 }) {
+ ListItem() {
+ Badge({
+ value: 'New',
+ position: BadgePosition.Right,
+ style: { badgeSize: 16 }
+ }) {
+ Text('list2').width(27).height(19).fontSize(14).fontColor('#182431')
+ }.width(49.5).height(19)
+ .margin({ left: 12 })
+ }
+ .width('100%')
+ .height(56)
+ .backgroundColor('#FFFFFF')
+ .borderRadius(24)
+ .align(Alignment.Start)
+ }.width(336)
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e214e966b0d4da6fd7d1a6e9f1eaa7a57aa5d0e7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0160.ets
@@ -0,0 +1,129 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AlertDialog, EditableTitleBar, Popup,
+ PopupButtonOptions,
+ PopupIconOptions, PopupTextOptions } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0160 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0160_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0160_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ Popup({
+ icon: {
+ image: 'cat.jpg',
+ width:32,
+ height:32,
+ borderRadius: 16
+ } as PopupIconOptions,
+ title: {
+ text: 'This is a popup with PopupOptions',
+ fontSize: 20,
+ fontWeight: FontWeight.Normal
+ } as PopupTextOptions,
+ message: {
+ text: 'This is the message',
+ fontSize: 15,
+ } as PopupTextOptions,
+ showClose: false,
+ onClose: () => {
+ console.info('close Button click')
+ },
+ buttons: [{
+ text: 'confirm',
+ action: () => {
+ console.info('confirm button click')
+ },
+ fontSize: 15,
+ },
+ {
+ text: 'cancel',
+ action: () => {
+ console.info('cancel button click')
+ },
+ fontSize: 15,
+ },] as [PopupButtonOptions?, PopupButtonOptions?]
+ })
+ }
+ }
+ }
+ .width('100%')
+ .height('100%')
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..14288a1b2647088da2af4011f615ea03493134ec
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0170.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 { CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0170 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+ @State clickCount: number = 1;
+
+ build() {
+ Column() {
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Button('normal button with customtheme')
+ .role(ButtonRole.NORMAL)
+ .id('button')
+ .onClick(() => {
+ console.log(`clickCount: ${this.clickCount}`)
+ if (this.clickCount == 1) {
+ this.colorsTheme.colors = {
+ brand: Color.Red,
+ };
+ } else if (this.clickCount == 2) {
+ this.colorsTheme.colors = {
+ brand: Color.Green,
+ };
+ } else if (this.clickCount == 3) {
+ this.colorsTheme.colors = {
+ brand: Color.Brown,
+ };
+ }
+ this.clickCount++;
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ Button('error button').role(ButtonRole.ERROR)
+ .width('100%')
+ .height(40)
+ .margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7d3f718c233bfc3e51032961425f33ba8ee3c8ff
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0180.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 { CustomColors, CustomTheme, ThemeControl } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0180 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+
+ build() {
+ Column() {
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Button('change theme')
+ .role(ButtonRole.NORMAL)
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ Select([{ value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .id('select')
+ .selected(0)
+ .value('TTTTTTTTTTTTTTTTTT')
+ .width('100%')
+ .height(40)
+ .margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bfb764f2e3abbda402ed8e8d197ca900a7f1ab32
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0190.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 { CustomColors, CustomTheme, ThemeControl } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0190 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+
+ build() {
+ Column() {
+ Button('')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ };
+ }).backgroundColor(Color.Transparent)
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Toggle({ type: ToggleType.Switch, isOn: true })
+ .onChange((isOn: boolean) => {
+ console.info('Component status:' + isOn)
+ })
+ .margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2fe8aa03225d0fabf001973bd1785190ccef27c9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0200.ets
@@ -0,0 +1,123 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { CustomColors, CustomTheme, ThemeControl, ToolBar, ToolBarOptions } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0200 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ @State toolbarList: ToolBarOptions = new ToolBarOptions()
+ @State count: number = 0;
+
+ build() {
+ Column() {
+ Button('')
+ .id('button')
+ .onClick(() => {
+ if (this.count == 0) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary: Color.Red,
+ brand: Color.Red,
+ };
+ } else if (this.count == 1) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ iconPrimary: Color.Green,
+ brand: Color.Green,
+ };
+ } else if (this.count == 2) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Brown,
+ fontSecondary: Color.Brown,
+ iconPrimary: Color.Brown,
+ brand: Color.Brown,
+ };
+ } else if (this.count == 3) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Orange,
+ fontSecondary: Color.Orange,
+ iconPrimary: Color.Orange,
+ brand: Color.Orange,
+ };
+ }
+ this.count++
+ })
+ .backgroundColor(Color.Transparent)
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ ToolBar({
+ activateIndex: 2,
+ toolBarList: this.toolbarList,
+ })
+ }
+ }
+ }.width('100%').height('100%')
+ }
+
+ aboutToAppear() {
+ this.toolbarList.push({
+ content: '剪贴我是超超超超超超超超超长样式',
+ icon: $r('sys.media.ohos_ic_public_share'),
+ action: () => {
+ },
+ })
+ this.toolbarList.push({
+ content: '拷贝',
+ icon: $r('sys.media.ohos_ic_public_copy'),
+ action: () => {
+ },
+ })
+ this.toolbarList.push({
+ content: '粘贴',
+ icon: $r('sys.media.ohos_ic_public_paste'),
+ action: () => {
+ },
+ })
+ this.toolbarList.push({
+ content: '全选',
+ icon: $r('sys.media.ohos_ic_public_select_all'),
+ action: () => {
+ },
+ })
+ this.toolbarList.push({
+ content: '分享',
+ icon: $r('sys.media.ohos_ic_public_share'),
+ action: () => {
+ },
+ })
+ this.toolbarList.push({
+ content: '分享',
+ icon: $r('sys.media.ohos_ic_public_share'),
+ action: () => {
+ },
+ })
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..555fe32d6d5af41569bd0a2fd22f1ff2dad6b5c2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0210.ets
@@ -0,0 +1,98 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { CustomColors, CustomTheme, ThemeControl, ToolBar, ToolBarOptions } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0210 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ @State toolbarList: ToolBarOptions = new ToolBarOptions()
+ @State count: number = 0;
+
+ build() {
+ Column() {
+ WithTheme({ theme: this.colorsTheme }) {
+ Button('')
+ .id('button')
+ .onClick(() => {
+ if (this.count == 0) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary: Color.Red,
+ brand: Color.Red,
+ };
+ } else if (this.count == 1) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ iconPrimary: Color.Green,
+ brand: Color.Green,
+ };
+ } else if (this.count == 2) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Brown,
+ fontSecondary: Color.Brown,
+ iconPrimary: Color.Brown,
+ brand: Color.Brown,
+ };
+ }
+ this.count++
+ })
+ .backgroundColor(Color.Transparent)
+ .width('100%')
+ .height(40)
+ .margin(20).bindMenu(this.MyMenu)
+ }
+ }.width('100%').height('100%')
+ }
+
+ @Builder
+ SubMenu() {
+ WithTheme({ theme: this.colorsTheme }){
+ Menu() {
+ MenuItem({ content: "复制", labelInfo: "Ctrl+C" })
+ MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" })
+ }
+ }
+ }
+ @Builder
+ MyMenu(){
+ WithTheme({ theme: this.colorsTheme }){
+ Menu() {
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ .enabled(false)
+ MenuItem({
+ content: "菜单选项",
+ builder: ():void=>this.SubMenu()
+ })
+ MenuItem({
+ content: "菜单选项",
+ })
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..537057676d4547351a872f8a0a05571af53825c8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0220.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 { ConfirmDialog, CustomColors, CustomTheme, ThemeControl } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0220 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ controller: TextInputController = new TextInputController()
+ build() {
+ Column() {
+ Button('change theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ TextInput({ text: 'TextInputTextInputTextInput', placeholder: 'input your word...', controller: this.controller }).margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8ead14a0c7676afda4cf2dcdb255bfaa2c593171
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0230.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 { ConfirmDialog, CustomColors, CustomTheme, ThemeControl } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0230 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ @State count: number = 0;
+
+ build() {
+ Column() {
+ Button('changetheme')
+ .id('button')
+ .onClick(() => {
+ if (this.count == 0) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ brand: Color.Green,
+ };
+ } else if (this.count == 1) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ };
+ }
+ this.count++
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Search({ value: 'Search' }).width('100%').height(40).margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..65cc220006d72d43bec9a314c0379fe01860c269
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0240.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 { CustomColors, CustomTheme, } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0240 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ @State value: number = 0
+
+ build() {
+ Column() {
+ Button('change theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Counter() {
+ Text(this.value.toString())
+ }.margin(20).onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.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/UITheme/UITheme0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f9c55d8ace583ede63274322d96fe3dc83d2375c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0250.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 { CustomColors, CustomTheme, } from '@kit.ArkUI'
+import { Event } from '@ohos.worker';
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0250 {
+ private patternLockController: PatternLockController = new PatternLockController()
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ brand: Color.Green,
+ backgroundPrimary:Color.Green
+
+ });
+ build() {
+ Column() {
+ Button('change theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ backgroundPrimary:Color.Red,
+ // backgroundFourth:Color.Red,
+ // iconPrimary:Color.Red
+
+
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ PatternLock(this.patternLockController)
+ .backgroundColor(this.colorsTheme.colors?.backgroundPrimary)
+ .onPatternComplete((input)=>{
+ console.log('console--> patternValues'+input.toString());
+ })
+ Text('patternLock').fontSize(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/UITheme/UITheme0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8b3bb082da24df3ba6cd09bf4e8ae0e1da06ed94
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0260.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 { CustomColors, CustomTheme, } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0260 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ @State value: number = 0
+
+ build() {
+ Column() {
+ Button('change theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
+ // .selectedColor(0x39a2db)
+ .shape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((value: boolean) => {
+ console.info('Checkbox1 change is'+ value)
+ })
+ .mark({
+ strokeColor:Color.White,
+ size: 50,
+ strokeWidth: 5
+ })
+ // .unselectedColor(Color.Red)
+ .id('checkbox')
+ .width(30)
+ .height(30)
+ Text('Checkbox1').fontSize(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/UITheme/UITheme0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..542527c260a8a5acf2e2b8d7f4fc5278f19cd424
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0270.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 { CustomColors, CustomTheme, } from '@kit.ArkUI'
+import { Event } from '@ohos.worker';
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0270 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ });
+ @State strokeColor:Color=Color.Green
+
+ build() {
+ Column() {
+ Button('change theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Blue,
+ fontSecondary: Color.Blue,
+ brand: Color.Blue,
+ };
+ this.strokeColor=Color.White
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+
+
+ CheckboxGroup({group: 'checkboxGroup' })
+ // .selectedColor(Color.Blue)
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .onChange((event: CheckboxGroupResult) => {
+ console.info('GruopCheckbox change is'+ event)
+ })
+ .mark({
+ strokeColor:this.strokeColor,
+ size: 50,
+ strokeWidth: 5
+ })
+ // .unselectedColor(Color.Yellow)
+
+ .id('checkbox')
+ .width(30)
+ .height(30)
+ Text('GruopCheckbox').fontSize(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/UITheme/UITheme0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f7578467ede9e54752702177904f291541cdd238
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0280.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 { CustomColors, CustomTheme, } from '@kit.ArkUI'
+import { Event } from '@ohos.worker';
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0280 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ });
+ build() {
+ Column() {
+ Button('change theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Blue,
+ fontSecondary: Color.Blue,
+ brand: Color.Green,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Radio({value:'radio',group:'radio_1'})
+ .onChange((event) => {
+ console.info('radio change is'+ event)
+ })
+ .radioStyle({
+ uncheckedBorderColor:Color.Red
+ })
+ .checked(true)
+ .id('checkbox')
+ .width(30)
+ .height(30)
+ Text('GruopCheckbox').fontSize(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/UITheme/UITheme0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..006c9499952a3fb50191f53cd0018a62bcfb8e99
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0290.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 { CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0290 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ @State outSetValueOne: number = 40
+ @State count: number = 0
+
+ build() {
+ Column() {
+ Button('')
+ .id('button')
+ .onClick(() => {
+ if (this.count == 0) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary: Color.Red,
+ brand: Color.Red,
+ };
+ } else if (this.count == 1) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Brown,
+ fontSecondary: Color.Brown,
+ iconPrimary: Color.Brown,
+ brand: Color.Brown,
+ };
+ }
+ this.count++;
+ })
+ .backgroundColor(Color.Transparent)
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Slider({
+ value: this.outSetValueOne,
+ min: 0,
+ max: 100,
+ style: SliderStyle.OutSet
+ })
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..99093cfed86291d93b83e21eab463b86832c54e0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0300.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 { CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0300 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ private selectedTime: Date = new Date('2022-07-22T08:00:00')
+ @State count: number = 0
+
+ build() {
+ Column() {
+ Button('')
+ .id('button')
+ .onClick(() => {
+ if (this.count == 0) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary: Color.Red,
+ brand: Color.Red,
+ };
+ } else if (this.count == 1) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Brown,
+ fontSecondary: Color.Brown,
+ iconPrimary: Color.Brown,
+ brand: Color.Brown,
+ };
+ }
+ this.count++;
+ })
+ .backgroundColor(Color.Transparent)
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ TimePicker({
+ selected: this.selectedTime,
+ })
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..23678760e43a570901be89e99fca3df97966cf0b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0310.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 { CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0310 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ private selectedDate: Date = new Date('2021-08-08')
+ @State count: number = 0
+
+ build() {
+ Column() {
+ Button('')
+ .id('button')
+ .onClick(() => {
+ if (this.count == 0) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary: Color.Red,
+ brand: Color.Red,
+ };
+ } else if (this.count == 1) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Brown,
+ fontSecondary: Color.Brown,
+ iconPrimary: Color.Brown,
+ brand: Color.Brown,
+ };
+ }
+ this.count++;
+ })
+ .backgroundColor(Color.Transparent)
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ DatePicker({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: this.selectedDate
+ })
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d41b8d384635cc352193f41acc1dfa2f9af98284
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0320.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 { CustomColors, CustomTheme, } from '@kit.ArkUI'
+import { Event } from '@ohos.worker';
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0320 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ brand: Color.Green,
+
+ });
+ build() {
+ Column() {
+ WithTheme({ theme: this.colorsTheme }) {
+ Column({space:2}) {
+ TextPicker({range:[{text:'text1'},{text:'text2'},{text:'text3'},{text:'text4'}]})
+ .selectedTextStyle({color:Color.Black})
+ Text('TextPicker').fontSize(20)
+ }
+ }
+ }.width('100%').height('100%')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ // backgroundPrimary:Color.Red
+ };
+ })
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0330.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c60c92f77101dd8775c189695ff63b5fda5e2221
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0330.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 { AlertDialog, ComposeListItem, EditableTitleBar, IconType, promptAction } from '@kit.ArkUI'
+
+import { CustomColors, CustomTheme } from '@kit.ArkUI'
+import { BrownThemeColors, GreenThemeColors, RedThemeColors, YellowThemeColors } from './theme_Param/CustomColorslmlp';
+
+class CustomThemeImpl implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0330 {
+ @State index: number = 0;
+ private testCases: CustomTheme[] = [
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(GreenThemeColors),
+ new CustomThemeImpl(YellowThemeColors),
+ new CustomThemeImpl(RedThemeColors),
+ new CustomThemeImpl(BrownThemeColors),
+ ]
+ isChecked = false;
+ radioIndex = 0;
+ @State customTheme: CustomTheme = new CustomThemeImpl(RedThemeColors);
+
+ build() {
+ Row() {
+ Scroll() {
+ Stack() {
+ Column({ space: '5vp' }) {
+ Row({ space: 5 }) {
+ Text(`${this.index}/`)
+ .width(25)
+ Text(`${this.testCases.length}`)
+ .key(`totalTest`)
+ Text('Test++')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0330_002')
+ .onClick(() => {
+ this.index++
+ this.customTheme = this.testCases[this.index]
+ if (this.index >= this.testCases.length) {
+ this.index = 0
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ Text('Test--')
+ .fontSize(10)
+ .backgroundColor(0x0000ff)
+ .fontColor(0xffffff)
+ .padding(5)
+ .id('UITheme0330_003')
+ .onClick(() => {
+ this.index--
+ this.customTheme = this.testCases[this.index]
+ if (this.index < 0) {
+ this.index = this.testCases.length - 1
+ this.customTheme = this.testCases[this.index]
+ }
+ })
+ }
+
+ WithTheme({ theme: this.customTheme }) {
+ List() {
+ ListItem() {
+ ComposeListItem({
+ contentItem: ({
+ iconStyle: IconType.NORMAL_ICON,
+ icon: $r('sys.media.ohos_app_icon'),
+ primaryText: '双行列表',
+ secondaryText: '辅助文字',
+ description: '描述内容文字'
+ }),
+ operateItem: ({
+ icon: {
+ value: $r('sys.media.ohos_app_icon'),
+ action: () => {
+ promptAction.showToast({ message: 'icon' });
+ }
+ },
+ 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/UITheme/UITheme0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0340.ets
new file mode 100644
index 0000000000000000000000000000000000000000..11431bd4858a52469512d5a23c4672164353909f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0340.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 { CustomColors, CustomTheme, } from '@kit.ArkUI'
+import { Event } from '@ohos.worker';
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0340 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ fontSecondary: Color.Black,
+ brand: Color.Black,
+ });
+ @State flag: boolean = true
+ @State iconPrimary: Color = Color.Black
+
+ build() {
+ Column() {
+ Button('change theme')
+ .id('button')
+ .onClick(() => {
+ if (this.flag) {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ backgroundPrimary: '#ff6cd945',
+ // brand: Color.Yellow,
+ // iconPrimary:Color.Yellow
+ };
+ this.iconPrimary=Color.Yellow
+ } else {
+ this.colorsTheme.colors = {
+ fontPrimary: '#ffd79fee',
+ fontSecondary: '#ffd79fee',
+ backgroundPrimary: '#ffd79fee',
+ // brand: Color.Green,
+ // iconPrimary:Color.Green
+
+ };
+ this.iconPrimary=Color.Green
+
+ }
+ this.flag = !this.flag
+
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ QRCode('https:9099//dsahdxjc')
+ .color(this.iconPrimary)
+ .width('70')
+ .height('70')
+ Text('QRCode').fontSize(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/UITheme/UITheme0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0350.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9a2a2da6dcac624a2e6cc9ccad7ed0702442c24f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0350.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 { CustomColors, CustomTheme, EditableLeftIconType, EditableTitleBar } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0350 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+
+ build() {
+ Column() {
+ Button('change theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary:Color.Red,
+ compDivider:Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Divider().strokeWidth(8)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fdd6eeba37b6d67c25a81a9b0b17e5900b83e95c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0360.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 { CustomColors, CustomTheme, } from '@kit.ArkUI'
+import { Event } from '@ohos.worker';
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0360 {
+ private patternLockController: PatternLockController = new PatternLockController()
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.White,
+
+ });
+ build() {
+ Column() {
+ Button('change theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ backgroundPrimary:Color.Red
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Text('default theme').fontSize(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/UITheme/UITheme0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0370.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4329dc24f38b448d13ae313ea68ca6ee635c6a6d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0370.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 { CustomColors, CustomTheme, EditableLeftIconType, EditableTitleBar } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0390 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+
+ build() {
+ Column() {
+ Button('change theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary:Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ EditableTitleBar({
+ leftIconStyle: EditableLeftIconType.Cancel,
+ title: '编辑页面',
+ menuItems: [],
+ onCancel: () => {
+
+ },
+ onSave: () => {
+
+ }
+ })
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..90f469f93c0b1a95142aa812365a05d5afadaae5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0380.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 { CustomColors, CustomTheme, ThemeControl, TipsDialog } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0380 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+ dialogControllerImage: CustomDialogController = new CustomDialogController({
+ builder: TipsDialog({
+ content: '想要卸载这个APP嘛?',
+ primaryButton: {
+ value: '取消',
+ action: () => {
+ console.info('Callback when the first button is clicked')
+ },
+ },
+ secondaryButton: {
+ value: '删除',
+ action: () => {
+ console.info('Callback when the second button is clicked')
+ }
+ },
+ onCheckedChange: () => {
+ console.info('Callback when the checkbox is clicked')
+ }
+ })
+ })
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ brand: Color.Red,
+ fontOnPrimary: Color.Red,
+ fontOnSecondary: Color.Red,
+ alert:Color.Red,
+ };
+ ThemeControl.setDefaultTheme(this.colorsTheme);
+ this.dialogControllerImage.open();
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2d9784e87f4a95b6d34928bb9dacaf7ef4eb0ed9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0390.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 { ConfirmDialog, CustomColors, CustomTheme, ThemeControl } from '@kit.ArkUI'
+
+class MyDataSource implements IDataSource {
+ private list: number[] = []
+
+ constructor(list: number[]) {
+ this.list = list
+ }
+
+ totalCount(): number {
+ return this.list.length
+ }
+
+ getData(index: number): number {
+ return this.list[index]
+ }
+
+ registerDataChangeListener(listener: DataChangeListener): void {
+ }
+
+ unregisterDataChangeListener() {
+ }
+}
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0390 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+ private swiperController: SwiperController = new SwiperController()
+ private data: MyDataSource = new MyDataSource([])
+ build() {
+ Column() {
+ Button('change theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Swiper(this.swiperController) {
+ LazyForEach(this.data, (item: string) => {
+ Text(item.toString())
+ .width('90%')
+ .height(160)
+ .textAlign(TextAlign.Center)
+ .fontSize(30)
+ }, (item: string) => item)
+ }
+ }
+ }
+ }.width('100%').height('100%')
+ }
+
+ aboutToAppear(): void {
+ let list: number[] = []
+ for (let i = 1; i <= 10; i++) {
+ list.push(i);
+ }
+ this.data = new MyDataSource(list)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f08d6ab906a3ce9bd87655c5327927dc69817ec5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0400.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 { CustomColors, CustomTheme, } from '@kit.ArkUI'
+import { Event } from '@ohos.worker';
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0400 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ brand: Color.Green,
+
+ });
+ build() {
+ Column() {
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Text('TextPicker').fontSize(20)
+ }
+ }
+ }.width('100%').height('100%')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ // backgroundPrimary:Color.Red
+ };
+ })
+
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0410.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1e80176045896d413be8589d87063bffb458a5b5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0410.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 { CustomColors, CustomTheme, OperationType, SubHeader } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0410 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary: Color.Red,
+ compDivider: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ SubHeader({
+ secondaryTitle: '二级标题',
+ operationType: OperationType.BUTTON,
+ operationItem: [{ value: '操作',
+ action: () => {
+
+ }
+ }]
+ })
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0420.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fd21ff704ff4fb6f575c5baaeb1379b998f525e7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0420.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 { CustomColors, CustomTheme, OperationType, SubHeader } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0420 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary: Color.Red,
+ compDivider: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Progress({ value: 40, type: ProgressType.Linear }).width(200)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0430.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a2966704cfb31fb984584001577718b381c50d5f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0430.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 { CustomColors, CustomTheme, OperationType, ProgressButton, SubHeader } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0430 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+ @State halfProgress: number = 40;
+ @State textState1: string = '40%';
+ @State enableState1: boolean = true;
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary: Color.Red,
+ compDivider: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ ProgressButton({
+ progress: this.halfProgress,
+ progressButtonWidth: "60",
+ content: this.textState1,
+ enable: this.enableState1,
+ clickCallback: () => {
+
+ }
+ }).width(200)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0450.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7fbce76751b050cf60f21f13879c74e939807952
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0450.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 { CustomColors, CustomTheme, OperationType, SubHeader } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0450 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+ private value: string[] = ['#', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
+ 'H', 'I', 'J', 'K', 'L', 'M', 'N',
+ 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
+ 'V', 'W', 'X', 'Y', 'Z']
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary: Color.Red,
+ compDivider: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ AlphabetIndexer({ arrayValue: this.value, selected: 0 })
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0460.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0efa3524532f8a558d459ba04ca1dec70218ad48
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0460.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 { CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0460 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+ scroller: Scroller = new Scroller();
+ private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Scroll(this.scroller) {
+ Column() {
+ ForEach(this.arr, (item: number) => {
+ Text(item.toString())
+ .width('90%')
+ .height(150)
+ .backgroundColor(0xFFFFFF)
+ .borderRadius(15)
+ .fontSize(16)
+ .textAlign(TextAlign.Center)
+ .margin({ top: 10 })
+ }, (item: string) => item)
+ }.width('100%')
+ }
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0470.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f9ab02584924163ad1f2aa09279a21bae398dbc6
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0470.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 { CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0470 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ brand: Color.Red,
+ warning: Color.Blue,
+ alert: Color.Blue,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Badge({
+ value: '5',
+ style: { badgeSize: 30 }
+ }) {
+ Text('').width(40).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/UITheme/UITheme0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0480.ets
new file mode 100644
index 0000000000000000000000000000000000000000..108a0ec2d6531b4cf01c8402d53dc6674ebb8fc0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0480.ets
@@ -0,0 +1,91 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { CustomColors, CustomTheme, Popup, PopupButtonOptions, PopupIconOptions, PopupTextOptions } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0480 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ brand: Color.Red,
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ // popup 自定义高级组件
+ Popup({
+ //PopupIconOptions 类型设置图标内容
+ icon: {
+ image: $r('app.media.icon'),
+ width: 32,
+ height: 32,
+ fillColor: Color.White,
+ borderRadius: 16
+ } as PopupIconOptions,
+ // PopupTextOptions 类型设置文字内容
+ title: {
+ text: 'This is a popup with PopupOptions',
+ fontSize: 20,
+ fontWeight: FontWeight.Normal
+ } as PopupTextOptions,
+ //PopupTextOptions 类型设置文字内容
+ message: {
+ text: 'This is the message',
+ fontSize: 15,
+ } as PopupTextOptions,
+ showClose: false,
+ onClose: () => {
+ console.info('close Button click')
+ },
+ // PopupButtonOptions 类型设置按钮内容
+ buttons: [{
+ text: 'confirm',
+ action: () => {
+ console.info('confirm button click')
+ },
+ fontSize: 15,
+ },
+ {
+ text: 'cancel',
+ action: () => {
+ console.info('cancel button click')
+ },
+ fontSize: 15,
+ },] as [PopupButtonOptions?, PopupButtonOptions?]
+ })
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0490.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7b042d262e35efe4546662ba38372c8e7b7dad08
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0490.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 { CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0490 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Button('button')
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0500.ets
new file mode 100644
index 0000000000000000000000000000000000000000..995b2b810ff282c810a018c682cd6b4d438c2cd1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0500.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 { CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0500 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ brand: Color.Red,
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Select([{ value: 'aaa' },
+ { value: 'bbb' },
+ { value: 'ccc' },
+ { value: 'ddd' }])
+ .selected(2)
+ .value('TTTTT').id('select')
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0510.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fdbd68ebe2beacea3b65695817bcadafc94df2c4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0510.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 { ConfirmDialog, CustomColors, CustomTheme, ThemeControl } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0510 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ brand: Color.Green,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Toggle({ type: ToggleType.Switch, isOn: true })
+ .margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0520.ets
new file mode 100644
index 0000000000000000000000000000000000000000..01c80af3e8663a69c8d9d806799355b2b0ffa591
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0520.ets
@@ -0,0 +1,97 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { CustomColors, CustomTheme, ThemeControl, ToolBar, ToolBarOptions } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0520 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ @State toolbarList: ToolBarOptions = new ToolBarOptions()
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary:Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ ToolBar({
+ activateIndex: 2,
+ toolBarList: this.toolbarList,
+ })
+ }
+ }
+ }.width('100%').height('100%')
+ }
+
+ aboutToAppear() {
+ this.toolbarList.push({
+ content: '剪贴我是超超超超超超超超超长样式',
+ icon: $r('sys.media.ohos_ic_public_share'),
+ action: () => {
+ },
+ })
+ this.toolbarList.push({
+ content: '拷贝',
+ icon: $r('sys.media.ohos_ic_public_copy'),
+ action: () => {
+ },
+ })
+ this.toolbarList.push({
+ content: '粘贴',
+ icon: $r('sys.media.ohos_ic_public_paste'),
+ action: () => {
+ },
+ })
+ this.toolbarList.push({
+ content: '全选',
+ icon: $r('sys.media.ohos_ic_public_select_all'),
+ action: () => {
+ },
+ })
+ this.toolbarList.push({
+ content: '分享',
+ icon: $r('sys.media.ohos_ic_public_share'),
+ action: () => {
+ },
+ })
+ this.toolbarList.push({
+ content: '分享',
+ icon: $r('sys.media.ohos_ic_public_share'),
+ action: () => {
+ },
+ })
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0530.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6d802d07d9cc3a72474ce7392398fac8f6593964
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0530.ets
@@ -0,0 +1,91 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { ConfirmDialog, CustomColors, CustomTheme, ThemeControl } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0530 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ brand: Color.Green,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Button('Menu').id('Menu_button').width('100%').margin(20).bindMenu(this.MyMenu)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+
+ @Builder
+ SubMenu() {
+ WithTheme({ theme: this.colorsTheme }){
+ Menu() {
+ MenuItem({ content: "复制", labelInfo: "Ctrl+C" })
+ MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" })
+ }
+ }
+ }
+ @Builder
+ MyMenu(){
+ WithTheme({ theme: this.colorsTheme }){
+ Menu() {
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项" })
+ .enabled(false)
+ MenuItem({
+ content: "菜单选项",
+ builder: ():void=>this.SubMenu()
+ })
+ MenuItemGroup({ header: '小标题' }) {
+ MenuItem({
+ content: "菜单选项",
+ builder: ():void=>this.SubMenu()
+ })
+ MenuItem({
+ startIcon: $r("app.media.app_icon"),
+ content: "菜单选项",
+ builder: ():void=>this.SubMenu()
+ })
+ }
+ MenuItem({
+ content: "菜单选项",
+ })
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0540.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e145b0989ccc1eb4e4b6facab4568fdbe28f3a0d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0540.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 { ConfirmDialog, CustomColors, CustomTheme, ThemeControl } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0540 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ controller: TextInputController = new TextInputController()
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ brand: Color.Green,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ TextInput({ text: 'TextInputTextInputTextInput', placeholder: 'input your word...', controller: this.controller }).margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0550.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fa05c08b4ffb0bb42529a07e07144003735f25bc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0550.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 { ConfirmDialog, CustomColors, CustomTheme, ThemeControl } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0550 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ brand: Color.Green,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column(){
+ Search({ value: 'Search' }).width('100%').height(40).margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0560.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a03cc0be5ed678fb67c87f90849b120c4e09d213
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0560.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 { CustomColors, CustomTheme, } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0560 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ @State value: number = 0
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Counter() {
+ Text(this.value.toString())
+ }.margin(20).onInc(() => {
+ this.value++
+ })
+ .onDec(() => {
+ this.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/UITheme/UITheme0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0570.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9b4551fb7c92a467ca698987f9da9dae42d533ee
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0570.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 { ConfirmDialog, CustomColors, CustomTheme, ThemeControl } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0570 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ private patternLockController: PatternLockController = new PatternLockController()
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ PatternLock(this.patternLockController)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0580.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b85b5ff3c59b2ff30cfeeadd5a18604214cf5849
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0580.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 { ConfirmDialog, CustomColors, CustomTheme, ThemeControl } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0580 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ brand: Color.Green,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Checkbox({ name: 'checkbox1', group: 'checkboxGroup' }).select(true)
+ .margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0590.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2696893a384b79dc1d9c30f10a3793b42fd3359f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0590.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 {
+ ComposeListItem,
+ ConfirmDialog,
+ CustomColors,
+ CustomTheme,
+ IconType,
+ promptAction,
+ ThemeControl
+} from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0590 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ controller: TextInputController = new TextInputController()
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ brand: Color.Green,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ CheckboxGroup({ group: 'checkboxGroup' })
+ .checkboxShape(CheckBoxShape.ROUNDED_SQUARE)
+ .selectAll(true)
+ .onChange((itemName: CheckboxGroupResult) => {
+ console.info("checkbox group content" + JSON.stringify(itemName))
+ }).margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0600.ets
new file mode 100644
index 0000000000000000000000000000000000000000..33da63e20f759577aa6ba33ba28668c2eca0f6b7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0600.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 { CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0600 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Radio({ value: 'Radio1', group: 'radioGroup' }).checked(true)
+ .margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0610.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1ead31cd4b1733e8f44bd779ab1ba48fca3f0f48
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0610.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 { CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0610 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ @State outSetValueOne: number = 40
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Slider({
+ value: this.outSetValueOne,
+ min: 0,
+ max: 100,
+ style: SliderStyle.OutSet
+ })
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0620.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f13c69b7cf1d84fed023912efe811e3004cc6272
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0620.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 { CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0620 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ private selectedTime: Date = new Date('2022-07-22T08:00:00')
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ TimePicker({
+ selected: this.selectedTime,
+ }).margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0630.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5fd19fd1f425bbfef93210a4928525bc2cb1444e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0630.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 { CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0630 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ private selectedDate: Date = new Date('2021-08-08')
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ iconPrimary: Color.Red,
+ brand: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ DatePicker({
+ start: new Date('1970-1-1'),
+ end: new Date('2100-1-1'),
+ selected: this.selectedDate
+ })
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0640.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ce51aeef27e2ee91d91708f633f81b5ee9fac563
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0640.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 { ConfirmDialog, CustomColors, CustomTheme, ThemeControl } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0640 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ brand: Color.Green,
+ // backgroundPrimary: Color.Green,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ TextPicker({ range: ['apple1', 'apple2', 'apple3', 'apple4'] }).width('100%').margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0650.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0d7633029d1b0e75e0606c92629224de84aa2636
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0650.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 { ComposeListItem, ConfirmDialog, CustomColors, CustomTheme, IconType,
+ promptAction,
+ ThemeControl } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0650 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+ controller: TextInputController = new TextInputController()
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Green,
+ fontSecondary: Color.Green,
+ brand: Color.Green,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ ComposeListItem({
+ contentItem: ({
+ primaryText: '双行列表',
+ secondaryText: '辅助文字',
+ }),
+ operateItem: ({
+ text: '右侧文本'
+ })
+ }).margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0660.ets
new file mode 100644
index 0000000000000000000000000000000000000000..450bfa5793f6de9ab1fa7ae10b7623dbb8c4fe31
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0660.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 { CustomColors, CustomTheme, ThemeControl } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0660 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({
+ fontPrimary: Color.Black,
+ });
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ brand: Color.Red,
+ };
+ ThemeControl.setDefaultTheme(this.colorsTheme);
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ QRCode('hello world').width(140).height(140).margin(20)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0670.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4a33d9671d5c2361f84f0a5e70379810c1c65122
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/UITheme0670.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 { CustomColors, CustomTheme } from '@kit.ArkUI'
+
+class PageCustomTheme implements CustomTheme {
+ colors?: CustomColors;
+
+ constructor(colors: CustomColors) {
+ this.colors = colors;
+ }
+}
+
+@Entry
+@Component
+struct UITheme0670 {
+ @State colorsTheme: CustomTheme = new PageCustomTheme({});
+
+ build() {
+ Column() {
+ Button('default theme')
+ .id('button')
+ .onClick(() => {
+ this.colorsTheme.colors = {
+ brand: Color.Red,
+ fontPrimary: Color.Red,
+ fontSecondary: Color.Red,
+ };
+ })
+ .width('100%')
+ .height(40)
+ .margin(20)
+ WithTheme({ theme: this.colorsTheme }) {
+ Column() {
+ Divider().strokeWidth(8)
+ }
+ }
+ }.width('100%').height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/theme_Param/CustomColorslmlp.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/theme_Param/CustomColorslmlp.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c6ed17bc9fb80d6d3e53218ae756bedc1080b15c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITheme/theme_Param/CustomColorslmlp.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.
+ */
+
+import { CustomColors } from '@ohos.arkui.theme'
+
+export class RedColors implements CustomColors {
+ fontEmphasize = '#FFD53032'
+ compBackgroundTertiary = '#FFD53032'
+ interactivePressed = '#ff56cfe3'
+ backgroundEmphasize = '#FFD00000'
+ iconOnPrimary = '#ff8fdd5b'
+ iconFourth = '#FFD00000'
+ iconEmphasize = '#FFD53032'
+ backgroundPrimary = '#FFD53032'
+ backgroundSecondary = '#33FF1111'
+ backgroundTertiary = '#44FF2222'
+ compBackgroundEmphasize = '#ff56cfe3'
+ compEmphasizeSecondary = '#33FF1111'
+ iconPrimary = '#FFD53032'
+ fontPrimary = '#a6a331f3'
+ fontSecondary = '#33FF1111'
+ interactiveHover = '#ff8fdd5b'
+ interactiveFocus = '#FFD53032'
+ compBackgroundSecondary = '#33FF1111'
+ iconSecondary = '#33FF1111'
+ warning = '#33FF1111'
+ compDivider = '#33FF1111'
+ compBackgroundPrimary = '#33FF1111'
+ compBackgroundPrimaryContrary = '#33FF1111'
+ iconTertiary = '#33FF1111'
+ icon_secondary = '#33FF1111'
+ compFocusedTertiary = '#33FF1111'
+ brand = '#33FF1111'
+ compBackgroundNeutral = '#33FF1111'
+ fontTertiary = '#FFD00000'
+ interactiveActive = '#3311ff15'
+ compForegroundPrimary = '#ff8fdd5b'
+}
+
+export class GreenColors implements CustomColors {
+ fontEmphasize = 'rgb(0, 128, 0)'
+ iconOnPrimary = 'rgb(226, 132, 96)'
+ iconFourth = 'rgb(0, 128, 0)'
+ iconEmphasize = 'rgb(0, 128, 0)'
+ backgroundPrimary = 'rgb(0, 128, 0)'
+ backgroundSecondary = 'rgb(8, 33, 1)'
+ backgroundTertiary = 'rgb(128, 128, 0)'
+ backgroundEmphasize = 'rgb(22, 83, 5)'
+ compBackgroundEmphasize = 'rgb(128, 97, 238)'
+ compEmphasizeSecondary = 'rgb(8, 33, 1)'
+ iconPrimary = 'rgb(0, 128, 0)'
+ fontPrimary = 'rgb(224, 21, 69)'
+ fontSecondary = 'rgb(219, 93, 158)'
+ compBackgroundTertiary = 'rgb(0, 128, 0)'
+ interactiveHover = 'rgb(226, 132, 96)'
+ interactivePressed = 'rgb(224, 21, 69)'
+ interactiveFocus = 'rgb(0, 128, 0)'
+ compBackgroundSecondary = 'rgb(22, 83, 5)'
+ iconSecondary = 'rgb(22, 83, 5)'
+ warning = 'rgb(22, 83, 5)'
+ compDivider = 'rgb(22, 83, 5)'
+ compBackgroundPrimary = 'rgb(8, 33, 1)'
+ compBackgroundPrimaryContrary = 'rgb(8, 33, 1)'
+ iconTertiary = 'rgb(8, 33, 1)'
+ icon_secondary = 'rgb(8, 33, 1)'
+ compFocusedTertiary = 'rgb(8, 33, 1)'
+ brand = 'rgb(8, 33, 1)'
+ compBackgroundNeutral = 'rgb(8, 33, 1)'
+ fontTertiary = 'rgba(185, 117, 214, 1.00)'
+ interactiveActive = 'rgba(33, 1, 18, 1.00)'
+ compForegroundPrimary = 'rgb(185, 117, 214)'
+}
+
+export class YellowColors implements CustomColors {
+ fontEmphasize = Color.Yellow
+ iconOnPrimary = Color.Orange
+ iconFourth = Color.Yellow
+ iconEmphasize = Color.Yellow
+ backgroundPrimary = Color.Yellow
+ backgroundSecondary = Color.Orange
+ backgroundTertiary = Color.Orange
+ backgroundEmphasize = Color.Yellow
+ compBackgroundEmphasize = Color.Pink
+ compEmphasizeSecondary = Color.Orange
+ iconPrimary = Color.Yellow
+ fontPrimary = Color.Orange
+ fontSecondary = Color.Blue
+ compBackgroundTertiary = Color.Yellow
+ interactiveHover = Color.Brown
+ interactivePressed = Color.Red
+ interactiveFocus = Color.Yellow
+ compBackgroundSecondary = Color.Brown
+ iconSecondary = Color.Brown
+ warning = Color.Brown
+ compDivider = Color.Brown
+ compBackgroundPrimary = Color.Brown
+ compBackgroundPrimaryContrary = Color.Brown
+ iconTertiary = Color.Brown
+ icon_secondary = Color.Brown
+ compFocusedTertiary = Color.Brown
+ brand = Color.Brown
+ compBackgroundNeutral = Color.Brown
+ fontTertiary = Color.Green
+ interactiveActive = Color.Brown
+ compForegroundPrimary = Color.Pink
+}
+
+export class BrownColors implements CustomColors {
+ fontEmphasize = 0xFF8B6B5C
+ iconOnPrimary = 0xFFE28460
+ iconFourth = 0xFF8B6B5C
+ iconEmphasize = 0xFF8B6B5C
+ backgroundPrimary = 0xFF8B6B5C
+ backgroundSecondary = 0x33556B55
+ backgroundTertiary = 0x44556B55
+ backgroundEmphasize = 0xFF8B6B5C
+ compBackgroundEmphasize = 0xFF8B6B5C
+ compEmphasizeSecondary = 0x33556B55
+ iconPrimary = 0xFF8B6B5C
+ fontPrimary = 0xFF067006
+ fontSecondary = 0xFFA434A7
+ compBackgroundTertiary = 0xFF8B6B5C
+ interactiveHover = 0xFFE28460
+ interactivePressed = 0xE6D95279
+ interactiveFocus = 0xFF067006
+ compBackgroundSecondary = 0xFFFFFFFF
+ iconSecondary = 0xFFFFFFFF
+ warning = 0xFFFFFFFF
+ compDivider = 0xFFFFFFFF
+ compBackgroundPrimary = 0xFFFFFFFF
+ compBackgroundPrimaryContrary = 0xFFFFFFFF
+ iconTertiary = 0xFFFFFFFF
+ icon_secondary = 0xFFFFFFFF
+ compFocusedTertiary = 0xFFFFFFFF
+ brand = 0xFFFFFFFF
+ compBackgroundNeutral = 0xFFFFFFFF
+ fontTertiary = 0xFF6CA6EC
+ interactiveActive = 0xFFFFFFFF
+ compForegroundPrimary = 0x33556B55
+}
+
+export const RedThemeColors = new RedColors()
+
+export const GreenThemeColors = new GreenColors()
+
+export const BrownThemeColors = new BrownColors()
+
+export const YellowThemeColors = new YellowColors()
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_click_error.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_click_error.png
new file mode 100644
index 0000000000000000000000000000000000000000..476223a2cbaa029e0ccc67660eb768effb766501
Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_click_error.png differ
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_height_error.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_height_error.png
new file mode 100644
index 0000000000000000000000000000000000000000..0d16a9f5d39efc178484b2bfcbe3372cb3c16a7e
Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_height_error.png differ
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_width_error.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_width_error.png
new file mode 100644
index 0000000000000000000000000000000000000000..eaae1996c7bcdeafd8a6287b9d5d44cfda56a934
Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/containerspan_width_error.png differ
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/span_null_param_error.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/span_null_param_error.png
new file mode 100644
index 0000000000000000000000000000000000000000..846adf54057902753c7ad575ea11769db6c5eec8
Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/resources/span_null_param_error.png differ
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts
index c26fa1d9efb5d54d5e6b7e39ca0f440e53f4db12..3e7da318d6bb8c07f2e133d03fe471c983ba89d8 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts
@@ -21,44 +21,43 @@ var abilityDelegator = undefined
var abilityDelegatorArguments = undefined
async function onAbilityCreateCallback() {
- hilog.info(0x0000, 'testTag', '%{public}s', 'onAbilityCreateCallback');
+ hilog.info(0x0000, 'testTag', '%{public}s', 'onAbilityCreateCallback');
}
async function addAbilityMonitorCallback(err: any) {
- hilog.info(0x0000, 'testTag', 'addAbilityMonitorCallback : %{public}s', JSON.stringify(err) ?? '');
+ hilog.info(0x0000, 'testTag', 'addAbilityMonitorCallback : %{public}s', JSON.stringify(err) ?? '');
}
export default class OpenHarmonyTestRunner implements TestRunner {
- constructor() {
- }
+ constructor() {
+ }
- onPrepare() {
- hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner OnPrepare ');
- }
+ onPrepare() {
+ hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner OnPrepare ');
+ }
- async onRun() {
- hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun run');
- abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
- abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
- var testAbilityName = abilityDelegatorArguments.bundleName + '.TestAbility'
- let lMonitor = {
- abilityName: testAbilityName,
- onAbilityCreate: onAbilityCreateCallback,
- };
- abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback)
- var cmd = 'aa start -d 0 -a TestAbility' + ' -b ' + abilityDelegatorArguments.bundleName
- var debug = abilityDelegatorArguments.parameters['-D']
- if (debug == 'true')
- {
- cmd += ' -D'
- }
- hilog.info(0x0000, 'testTag', 'cmd : %{public}s', cmd);
- abilityDelegator.executeShellCommand(cmd,
- (err: any, d: any) => {
- hilog.info(0x0000, 'testTag', 'executeShellCommand : err : %{public}s', JSON.stringify(err) ?? '');
- hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.stdResult ?? '');
- hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.exitCode ?? '');
- })
- hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun end');
+ async onRun() {
+ hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun run');
+ abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
+ abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
+ var testAbilityName = abilityDelegatorArguments.bundleName + '.TestAbility'
+ let lMonitor = {
+ abilityName: testAbilityName,
+ onAbilityCreate: onAbilityCreateCallback,
+ };
+ abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback)
+ var cmd = 'aa start -d 0 -a TestAbility' + ' -b ' + abilityDelegatorArguments.bundleName
+ var debug = abilityDelegatorArguments.parameters['-D']
+ if (debug == 'true') {
+ cmd += ' -D'
}
+ hilog.info(0x0000, 'testTag', 'cmd : %{public}s', cmd);
+ abilityDelegator.executeShellCommand(cmd,
+ (err: any, d: any) => {
+ hilog.info(0x0000, 'testTag', 'executeShellCommand : err : %{public}s', JSON.stringify(err) ?? '');
+ hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.stdResult ?? '');
+ hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.exitCode ?? '');
+ })
+ hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun end');
+ }
}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 b/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5
index e58bd507f3ecff51931c351ebcabf6603cd5c40c..0297f72c621796ae4dd6f2cf93120173eb71c65b 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,38 @@
"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.INTERNET"
+ },
{
"name": "ohos.permission.READ_MEDIA"
},
{
- "name":"ohos.permission.UPDATE_CONFIGURATION"
+ "name": "ohos.permission.CAPTURE_SCREEN"
+ },
+ {
+ "name": "ohos.permission.UPDATE_CONFIGURATION"
},
{
- "name":"ohos.permission.RUNNING_LOCK"
+ "name": "ohos.permission.ACCESS_SCREEN_LOCK_INNER"
},
{
- "name":"ohos.permission.INTERNET"
+ "name": "ohos.permission.RUNNING_LOCK"
}
],
"abilities": [
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/boolean.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/boolean.json
new file mode 100644
index 0000000000000000000000000000000000000000..7ddae960d78e2c9fb3feb2897cff195943a654ea
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/boolean.json
@@ -0,0 +1,16 @@
+{
+ "boolean": [
+ {
+ "name": "boolean_1",
+ "value": true
+ },
+ {
+ "name": "boolean_2",
+ "value": false
+ },
+ {
+ "name": "boolean_3",
+ "value": true
+ }
+ ]
+}
\ No newline at end of file
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..d02fbb753ef6738de0017d58ec903b1cc96fe08f 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,34 @@
{
"name": "search_placeholder",
"value": "#FFCFA613"
+ },
+ {
+ "name": "color_01",
+ "value": "#ff0000"
+ },
+ {
+ "name": "color_02",
+ "value": "#00ff00"
+ },
+ {
+ "name": "color_03",
+ "value": "#0000ff"
+ },
+ {
+ "name": "color_",
+ "value": "#000000"
+ },
+ {
+ "name": "color_0",
+ "value": "#ff0000"
+ },
+ {
+ "name": "color_1",
+ "value": "#00ff00"
+ },
+ {
+ "name": "color_2",
+ "value": "#0000ff"
}
]
}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json
index 4038f619b6a75b6e28b75700455d382845eeaec6..029ce683bc0704abfac914e54925b8e7eaf40f4d 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json
@@ -11,6 +11,42 @@
{
"name": "bbb",
"value": "5"
+ },
+ {
+ "name": "opacity_0_5",
+ "value": "0.5"
+ },
+ {
+ "name": "float_1",
+ "value": "-50"
+ },
+ {
+ "name": "float_01",
+ "value": "20fp"
+ },
+ {
+ "name": "float_02",
+ "value": "30fp"
+ },
+ {
+ "name": "float_03",
+ "value": "50fp"
+ },
+ {
+ "name": "float_",
+ "value": "0.0"
+ },
+ {
+ "name": "float_0",
+ "value": "20.0"
+ },
+ {
+ "name": "float_3",
+ "value": "25.0"
+ },
+ {
+ "name": "float_5",
+ "value": "30.0"
}
]
}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/intarray.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/intarray.json
new file mode 100644
index 0000000000000000000000000000000000000000..49fe46f6b99e38e051367ddf4411861a3a6d8a5a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/intarray.json
@@ -0,0 +1,39 @@
+{
+ "intarray": [
+ {
+ "name": "intarray_",
+ "value": [
+ 100,
+ 200
+ ]
+ },
+ {
+ "name": "intarray_0",
+ "value": [
+ 100,
+ 200
+ ]
+ },
+ {
+ "name": "intarray_1",
+ "value": [
+ 100,
+ 200
+ ]
+ },
+ {
+ "name": "intarray_2",
+ "value": [
+ 50,
+ 60
+ ]
+ },
+ {
+ "name": "intarray_3",
+ "value": [
+ 80,
+ 100
+ ]
+ }
+ ]
+}
\ 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..488d9f3dd37af6c190e46f3d01e2e790dd20401f 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/integer.json
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/integer.json
@@ -1,5 +1,5 @@
{
- "integer":[
+ "integer": [
{
"name": "0",
"value": 0
@@ -11,22 +11,28 @@
{
"name": "20",
"value": 20
- },{
+ },
+ {
"name": "50",
"value": 50
- },{
+ },
+ {
"name": "integer30",
"value": 30
- },{
+ },
+ {
"name": "integer100",
"value": 100
- },{
+ },
+ {
"name": "string30",
"value": 30
- },{
+ },
+ {
"name": "30",
"value": 30
- },{
+ },
+ {
"name": "15",
"value": 15
},
@@ -41,6 +47,30 @@
{
"name": "integer333",
"value": 333
+ },
+ {
+ "name": "integer60",
+ "value": 60
+ },
+ {
+ "name": "font_1",
+ "value": 10
+ },
+ {
+ "name": "integer_",
+ "value": 0
+ },
+ {
+ "name": "integer_0",
+ "value": 20
+ },
+ {
+ "name": "integer_1",
+ "value": 25
+ },
+ {
+ "name": "integer_2",
+ "value": 30
}
]
}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/pattern.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/pattern.json
new file mode 100644
index 0000000000000000000000000000000000000000..2df3f847162b9c8db9e07e59f812d6b0a6a3a46e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/pattern.json
@@ -0,0 +1,80 @@
+{
+ "pattern": [
+ {
+ "name": "pattern_",
+ "value": [
+ {
+ "name": "width",
+ "value": "100vp"
+ },
+ {
+ "name": "height",
+ "value": "100vp"
+ },
+ {
+ "name": "size",
+ "value": "25px"
+ }
+ ]
+ },
+ {
+ "name": "pattern_0",
+ "value": [
+ {
+ "name": "width",
+ "value": "100vp"
+ },
+ {
+ "name": "height",
+ "value": "100vp"
+ },
+ {
+ "name": "size",
+ "value": "25px"
+ }
+ ]
+ },
+ {
+ "name": "pattern_1",
+ "value": [
+ {
+ "name": "width",
+ "value": "100vp"
+ },
+ {
+ "name": "height",
+ "value": "100vp"
+ },
+ {
+ "name": "size",
+ "value": "25px"
+ }
+ ]
+ },
+ {
+ "name": "pattern_2",
+ "value": [
+ {
+ "name": "width",
+ "value": "200vp"
+ },
+ {
+ "name": "height",
+ "value": "200vp"
+ },
+ {
+ "name": "size",
+ "value": "100vp"
+ },
+ {
+ "name": "height",
+ "value": "100vp"
+ },
+ {
+ "name": "size",
+ "value": "25px"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/plural.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/plural.json
new file mode 100644
index 0000000000000000000000000000000000000000..2d9a9949b98f27352dd49769fc9cd3c187308dcc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/plural.json
@@ -0,0 +1,82 @@
+{
+ "plural": [
+ {
+ "name": "eat_apple",
+ "value": [
+ {
+ "quantity": "one",
+ "value": "%d apple"
+ },
+ {
+ "quantity": "other",
+ "value": "%d apples"
+ }
+ ]
+ },
+ {
+ "name": "plural_",
+ "value": [
+ {
+ "quantity": "one",
+ "value": "%d apple"
+ },
+ {
+ "quantity": "other",
+ "value": "%d apples"
+ }
+ ]
+ },
+ {
+ "name": "plural_0",
+ "value": [
+ {
+ "quantity": "one",
+ "value": "%d apple"
+ },
+ {
+ "quantity": "other",
+ "value": "%d apples"
+ }
+ ]
+ },
+ {
+ "name": "plural_1",
+ "value": [
+ {
+ "quantity": "one",
+ "value": "%d orange"
+ },
+ {
+ "quantity": "other",
+ "value": "%d oranges"
+ }
+ ]
+ },
+ {
+ "name": "plural_2",
+ "value": [
+ {
+ "quantity": "one",
+ "value": "%d banana"
+ },
+ {
+ "quantity": "other",
+ "value": "%d bananas"
+ }
+ ]
+ },
+ {
+ "name": "plural_3",
+ "value": [
+ {
+ "quantity": "one",
+ "value": "%d pear"
+ },
+ {
+ "quantity": "other",
+ "value": "%d pears"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/strarray.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/strarray.json
index abd922b6c2265426020ca078caa88a20075cf90b..5e9c12189972b317a856300f3d6aaab94594182f 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/strarray.json
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/strarray.json
@@ -78,7 +78,8 @@
"value": "ཤིང་ཏོག་ཧྥེང་ལི། "
}
]
- },{
+ },
+ {
"name": "fruit_ww",
"value": [
{
@@ -163,7 +164,7 @@
}
]
},
- {
+ {
"name": "appliance_ww",
"value": [
{
@@ -196,6 +197,38 @@
"value": "Computer"
}
]
+ },
+ {
+ "name": "strarray_",
+ "value": [
+ {
+ "value": "strarray_"
+ }
+ ]
+ },
+ {
+ "name": "strarray_0",
+ "value": [
+ {
+ "value": "strarray_0"
+ }
+ ]
+ },
+ {
+ "name": "strarray_1",
+ "value": [
+ {
+ "value": "strarray_1"
+ }
+ ]
+ },
+ {
+ "name": "strarray_2",
+ "value": [
+ {
+ "value": "strarray_2"
+ }
+ ]
}
]
}
\ 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..424c6c9766b62407f376ddf96bf7da43ed0ed6ad 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
@@ -52,10 +52,6 @@
"name": "abc",
"value": "abc"
},
- {
- "name": "font_20",
- "value": "20"
- },
{
"name": "attributeUpdater",
"value": "resource font"
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/theme.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/theme.json
new file mode 100644
index 0000000000000000000000000000000000000000..28b0bc2e5d28d004bc2c74e42aaa578c7c9e88ac
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/theme.json
@@ -0,0 +1,31 @@
+{
+ "theme": [
+ {
+ "name": "base",
+ "value": [
+ {
+ "name": "width",
+ "value": "wrap_content"
+ },
+ {
+ "name": "height",
+ "value": "wrap_content"
+ },
+ {
+ "name": "size",
+ "value": "25dp"
+ }
+ ]
+ },
+ {
+ "name": "child",
+ "parent": "base",
+ "value": [
+ {
+ "name": "noTitle",
+ "value": "yes"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/fly.svg b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/fly.svg
index e23de8b484ea857e85daca79215ea9b7ca86dff9..8ebc4f9963f6a4a3dfb8426b1d04afe798c3be5e 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/fly.svg
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/fly.svg
@@ -1,6 +1,14 @@
-
+
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/media_.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/media_.png
new file mode 100644
index 0000000000000000000000000000000000000000..205ad8b5a8a42e8762fbe4899b8e5e31ce822b8b
Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/media_.png differ
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/media_0.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/media_0.png
new file mode 100644
index 0000000000000000000000000000000000000000..4483ddad1f079e1089d685bd204ee1cfe1d01902
Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/media_0.png differ
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/media_1.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/media_1.png
new file mode 100644
index 0000000000000000000000000000000000000000..f939c9fa8cc8914832e602198745f592a0dfa34d
Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/media_1.png differ
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/media_2.jpg b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/media_2.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..382ac7dc322871219388ca27f7c637447e8c9e77
Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/media_2.jpg differ
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..1fb50e1e80aa64eca532f253de2bfeb0036718a8 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,755 @@
"testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface007",
"testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface008",
"testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface009",
- "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface0010"
+ "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface0010",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0010",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0020",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0030",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0040",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0050",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0060",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0070",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0080",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0090",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0100",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0110",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0120",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0130",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0140",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0150",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0160",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0170",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0180",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0190",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0200",
+ "testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0210",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0010",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0020",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0030",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0040",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0050",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0060",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0070",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0080",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0090",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0100",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0110",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0120",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0130",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0140",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0150",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0160",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0170",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0180",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0190",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0200",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0210",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0220",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0230",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0240",
+ "testability/pages/UIAttributesImageEffectFilter/UIAttributesImageEffectFilter0250",
+ "testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0010",
+ "testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0060",
+ "testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0040",
+ "testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0080",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0070",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0130",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0170",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0120",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0040",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0110",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0080",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0160",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0150",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0030",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0020",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0140",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0050",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0100",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0180",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0060",
+ "testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0090",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0170",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0090",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0050",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0140",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0200",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0010",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0100",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0060",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0130",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0020",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0250",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0040",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0150",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0030",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0240",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0110",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0120",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0160",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0180",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0070",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0210",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0220",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0230",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0190",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0260",
+ "testability/pages/UIAttributesHovereffectDoubleStrokeInterface/UIAttributesHovereffectDoubleStrokeInterface0080",
+ "testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0020",
+ "testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0010",
+ "testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0030",
+ "testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0020",
+ "testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0040",
+ "testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0010",
+ "testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0030",
+ "testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0050",
+ "testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0040",
+ "testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0020",
+ "testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0010",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0170",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0210",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0230",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0200",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0060",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0040",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0120",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0140",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0250",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0260",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0220",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0240",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0190",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0160",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0080",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0150",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0180",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0070",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0090",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0100",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0030",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0050",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0110",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0020",
+ "testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0130",
+ "testability/pages/UITheme/UITheme0050",
+ "testability/pages/UITheme/UITheme0550",
+ "testability/pages/UITheme/UITheme0640",
+ "testability/pages/UITheme/UITheme0530",
+ "testability/pages/UITheme/UITheme0510",
+ "testability/pages/UITheme/UITheme0580",
+ "testability/pages/UITheme/UITheme0540",
+ "testability/pages/UITheme/UITheme0650",
+ "testability/pages/UITheme/UITheme0590",
+ "testability/pages/UITheme/UITheme0560",
+ "testability/pages/UITheme/UITheme0600",
+ "testability/pages/UITheme/UITheme0620",
+ "testability/pages/UITheme/UITheme0660",
+ "testability/pages/UITheme/UITheme0570",
+ "testability/pages/UITheme/UITheme0520",
+ "testability/pages/UITheme/UITheme0610",
+ "testability/pages/UITheme/UITheme0630",
+ "testability/pages/UITheme/UITheme0170",
+ "testability/pages/UITheme/UITheme0180",
+ "testability/pages/UITheme/UITheme0190",
+ "testability/pages/UITheme/UITheme0200",
+ "testability/pages/UITheme/UITheme0210",
+ "testability/pages/UITheme/UITheme0230",
+ "testability/pages/UITheme/UITheme0220",
+ "testability/pages/UITheme/UITheme0240",
+ "testability/pages/UITheme/UITheme0260",
+ "testability/pages/UITheme/UITheme0290",
+ "testability/pages/UITheme/UITheme0300",
+ "testability/pages/UITheme/UITheme0310",
+ "testability/pages/UITheme/UITheme0390",
+ "testability/pages/UITheme/UITheme0370",
+ "testability/pages/UITheme/UITheme0350",
+ "testability/pages/UITheme/UITheme0410",
+ "testability/pages/UITheme/UITheme0420",
+ "testability/pages/UITheme/UITheme0450",
+ "testability/pages/UITheme/UITheme0430",
+ "testability/pages/UITheme/UITheme0490",
+ "testability/pages/UITheme/UITheme0470",
+ "testability/pages/UITheme/UITheme0460",
+ "testability/pages/UITheme/UITheme0480",
+ "testability/pages/UITheme/UITheme0500",
+ "testability/pages/UITheme/UITheme0670",
+ "testability/pages/UITheme/UITheme0380",
+ "testability/pages/UITheme/UITheme0040",
+ "testability/pages/UITheme/UITheme0080",
+ "testability/pages/UITheme/UITheme0030",
+ "testability/pages/UITheme/UITheme0010",
+ "testability/pages/UITheme/UITheme0100",
+ "testability/pages/UITheme/UITheme0140",
+ "testability/pages/UITheme/UITheme0090",
+ "testability/pages/UITheme/UITheme0150",
+ "testability/pages/UITheme/UITheme0060",
+ "testability/pages/UITheme/UITheme0110",
+ "testability/pages/UITheme/UITheme0020",
+ "testability/pages/UITheme/UITheme0160",
+ "testability/pages/UITheme/UITheme0070",
+ "testability/pages/UITheme/UITheme0130",
+ "testability/pages/UITheme/UITheme0330",
+ "testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0020",
+ "testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0030",
+ "testability/pages/UIComponentUISupportImage/UIComponentUISupportImage0040",
+ "testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0020",
+ "testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0030",
+ "testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0050",
+ "testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0010",
+ "testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0040",
+ "testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0060",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0070",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0370",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0530",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0420",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0200",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0540",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0110",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0050",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0500",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0120",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0610",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0080",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0510",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0600",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0520",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0490",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0180",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0680",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0130",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0040",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0230",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0240",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0250",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0260",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0330",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0450",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0090",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0280",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0100",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0210",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0170",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0460",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0160",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0060",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0580",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0140",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0220",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0590",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0430",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0470",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0630",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0150",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0340",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0560",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0670",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0390",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0660",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0570",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0290",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0380",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0400",
+ "testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0160",
+ "testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0150",
+ "testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0140",
+ "testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0130",
+ "testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0120",
+ "testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0110",
+ "testability/pages/UIAttributesComponentContentFillingCapirenderfit/UIAttributesComponentContentFillingCapirenderfit0100",
+ "testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0090",
+ "testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0080",
+ "testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0070",
+ "testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0060",
+ "testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0050",
+ "testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0040",
+ "testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0030",
+ "testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0020",
+ "testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0010",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0040",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0310",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0010",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0340",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0020",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0030",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0430",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0200",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0330",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0060",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0480",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0190",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0320",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0270",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0410",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0310",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0360",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0300",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0440",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0650",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0350",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0550",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0030",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0640",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0620",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0020",
+ "testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0010",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0010",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0020",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0030",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0040",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0050",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0060",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0070",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0080",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0090",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0100",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0110",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0120",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0130",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0140",
+ "testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0150",
+ "testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0050",
+ "testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0090",
+ "testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0060",
+ "testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0040",
+ "testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0110",
+ "testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0030",
+ "testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0010",
+ "testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0020",
+ "testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0070",
+ "testability/pages/UIComponentUISupportForegroundColor/UIComponentUISupportForegroundColor0080",
+ "testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0070",
+ "testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0030",
+ "testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0040",
+ "testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0020",
+ "testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0060",
+ "testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0080",
+ "testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0050",
+ "testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0010",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0180",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0130",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0070",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0160",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0040",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0140",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0110",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0170",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0100",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0090",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0020",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0050",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0120",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0080",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0060",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0010",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0150",
+ "testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0030",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0420",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0410",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0400",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0390",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0260",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0380",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0170",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0220",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0140",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0110",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0180",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0130",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentContentFillingModeInterface0230",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0160",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0320",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0250",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0360",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0350",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0090",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0300",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0100",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0120",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0080",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0270",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0190",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0210",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0050",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0240",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0370",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0070",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0290",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0150",
+ "testability/pages/UIAttributesComponentContentFillingModeInterface/UIAttributesComponentcontentfillingModeinterface0280",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0560",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0030",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0870",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0380",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0550",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0360",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0410",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0070",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0060",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0460",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0090",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0250",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0120",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0220",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0420",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0840",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0530",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0700",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0370",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0720",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0520",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0450",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0580",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0210",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0200",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0100",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0500",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0390",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0620",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0310",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0480",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0440",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0810",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0740",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0130",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0900",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0640",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0140",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0880",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0230",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0160",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0170",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0240",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0910",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0730",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0020",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0820",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0830",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0470",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0320",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0660",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0800",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0710",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0260",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0400",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0290",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0850",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0080",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0340",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0780",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0570",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0350",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0860",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0040",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0050",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0110",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0790",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0280",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0630",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0300",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0750",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0190",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0670",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0760",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0150",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0330",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0680",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0270",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0490",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0540",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0650",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0590",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0510",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0180",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0890",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0770",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0690",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0610",
+ "testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0430",
+ "testability/pages/UITheme/UITheme0270",
+ "testability/pages/UITheme/UITheme0280",
+ "testability/pages/UITheme/UITheme0250",
+ "testability/pages/UITheme/UITheme0320",
+ "testability/pages/UITheme/UITheme0340",
+ "testability/pages/UITheme/UITheme0360",
+ "testability/pages/UITheme/UITheme0400",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0100",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0200",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0270",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0390",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0430",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0190",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0330",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0280",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0040",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0050",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0340",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0470",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0310",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0260",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0080",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0180",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0130",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0450",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0250",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0230",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0150",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0070",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0060",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0210",
+ "testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0020",
+ "testability/pages/UIAttributesColorrampDfx/UIAttributesColorrampDfx0010",
+ "testability/pages/UIAttributesColorrampDfx/UIAttributesColorrampDfx0020",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0050",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0010",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0080",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0070",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0030",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0040",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0110",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0150",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0020",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0100",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0170",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0160",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0140",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0120",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0190",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0200",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0060",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0210",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0180",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0230",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0240",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0270",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0260",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0280",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0300",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0250",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0220",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0290",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0310",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0320",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0340",
+ "testability/pages/SUBAceThemeComponentStyleswitch/SUBAceThemeComponentStyleswitch0330",
+ "testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0040",
+ "testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0010",
+ "testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0050",
+ "testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0020",
+ "testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0060",
+ "testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0030",
+ "testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0070",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0010",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0130",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0150",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0100",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0140",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0160",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0020",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0050",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0040",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0080",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0180",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0060",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0070_1",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0070_2",
+ "testability/pages/UIComponentCommonattrSetDynamicDimming/UIComponentCommonattrSetDynamicDimming0170",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0480",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0140",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0030",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0070",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0150",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0090",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0020",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0100",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0170",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0180",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0080",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0120",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0210",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0220",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0240",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0230",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0250",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0260",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0280",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0270",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0320",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0290",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0300",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0330",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0380",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0310",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0360",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0350",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0370",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0340",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0390",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0500",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0460",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0110",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0590",
+ "testability/pages/UIAttributesGraphictransformationBackwardanalysis/UIAttributesGraphictransformationBackwardanalysis0010",
+ "testability/pages/UIAttributesOutlinewidth/UIAttributesOutlinewidth0010",
+ "testability/pages/UIAttributesOutlinewidth/UIAttributesOutlinewidth0020",
+ "testability/pages/ResourceManagerAmount/ResourceManagerAmount0050",
+ "testability/pages/ResourceManagerAmount/ResourceManagerAmount0130",
+ "testability/pages/ResourcemanagerRawfile/ResourcemanagerRawfile0010",
+ "testability/pages/TestCase/TestCase74086c77009a4074a2010acdeb67468a",
+ "testability/pages/TestCase/TestCase56613681deb7487b8168ea008f8d2b17",
+ "testability/pages/TestCase/TestCase4c0f78ffa2494ff8aa24be9cf0b65243",
+ "testability/pages/TestCase/TestCase249cf82ec62c4410a12f43d962681d5b",
+ "testability/pages/TestCase/TestCased82b91937eeb4cf88604d954ac86ae79",
+ "testability/pages/TestCase/TestCasec691bac3146c44c9b98e2bfclf74f9d1",
+ "testability/pages/TestCase/TestCase28e03736992e4ecea430931612e3c556",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0310",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0230",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0390",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0240",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0210",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0090",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0270",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0380",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0360",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0260",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0220",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0290",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0400",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0160",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0370",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0250",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0030",
+ "testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0020",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0400",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0360",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0390",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0160",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0370",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0240",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0380",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0080",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0060",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0140",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0050",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0260",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0150",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0100",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0130",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0020",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0220",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0120",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0170",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0210",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0030",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0040",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0110",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0070",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0200",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0340",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0250",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0290",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0350",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0090",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0190",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0300",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0280",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0310",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0410",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0330",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0320",
+ "testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0180",
+ "testability/pages/DecouplingBaseDatabase/DecouplingBaseDatabase0110",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0010",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0040",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0050",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0060",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0130",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0160",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0190",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0200",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0400",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0410",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0420",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0430",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0440",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0450",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0470",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0490",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0510",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0520",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0530",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0540",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0550",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0560",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0570",
+ "testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0580",
+ "testability/pages/ResourceManagerModuleSr/ResourceManagerModuleSr0010",
+ "testability/pages/TestCase/TestCase_0a25f4ffc9c140118842be8455973975",
+ "testability/pages/TestCase/TestCase_1bfdd20e3f5544e49c612141698fd8ef",
+ "testability/pages/TestCase/TestCase_35e34cc405bd4e679be07d698aa8afbd",
+ "testability/pages/TestCase/TestCase_f04ea52ddc7242c190e5ceb395dd5e9f",
+ "testability/pages/TestCase/TestCase_f5d751b26dca4076b0ce1d181d74beaC",
+ "testability/pages/ResourceManagerAmount/ResourceManagerAmount0010",
+ "testability/pages/ResourceManagerAmount/ResourceManagerAmount0040",
+ "testability/pages/ResourceManagerAmount/ResourceManagerAmount0060",
+ "testability/pages/ResourceManagerAmount/ResourceManagerAmount0070",
+ "testability/pages/ResourceManagerAmount/ResourceManagerAmount0080",
+ "testability/pages/ResourceManagerAmount/ResourceManagerAmount0090",
+ "testability/pages/ResourceManagerAmount/ResourceManagerAmount0100",
+ "testability/pages/ResourceManagerAmount/ResourceManagerAmount0110",
+ "testability/pages/ResourceManagerAmount/ResourceManagerAmount0120",
+ "testability/pages/ResourceManagerAmount/ResourceManagerAmount0030",
+ "testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0050",
+ "testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0040",
+ "testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0030",
+ "testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0090",
+ "testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0060",
+ "testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0070",
+ "testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0020",
+ "testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0010",
+ "testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100",
+ "testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0080",
+ "testability/pages/ResourcemanagerModuleRawfile/ResourcemanagerModuleRawfile0010",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0700",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0320",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0800",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0780",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0290",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0260",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0280",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0750",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0200",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0270",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0250",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0220",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0240",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0210",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0190",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0170",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1150",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1120",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1160",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1080",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1050",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1040",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1140",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1100",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1010",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1030",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1090",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1070",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget1060",
+ "testability/pages/DecouplingBaseDatabase/DecouplingBaseDatabase0210",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0300",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0670",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0680",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0690",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0710",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0730",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0740",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0770",
+ "testability/pages/UIComponentPopupboxPopupFollowtransformoftarget/UIComponentPopupboxPopupFollowtransformoftarget0810",
+ "testability/pages/SubAceResourcemanagerSubject/SubAceResourcemanagerSubject0010",
+ "testability/pages/SubAceActionEventCommoneventEventInterface/SubAceActionEventCommoneventEventInterface0070",
+ "testability/pages/SubAceActionEventCommoneventEventInterface/SubAceActionEventCommoneventEventInterface0130"
]
}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/rawfile/test.mp4 b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/rawfile/test.mp4
new file mode 100644
index 0000000000000000000000000000000000000000..454c10cf31f3d114a01e5c3016e08d9edc9bfe7b
Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/rawfile/test.mp4 differ
diff --git a/function/ui_compare_rh/uicompare/library/.gitignore b/function/ui_compare_rh/uicompare/library/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..e2713a2779c5a3e0eb879efe6115455592caeea5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/.gitignore
@@ -0,0 +1,6 @@
+/node_modules
+/oh_modules
+/.preview
+/build
+/.cxx
+/.test
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/library/Index.ets b/function/ui_compare_rh/uicompare/library/Index.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3e58002001019af86140291ee02c0960a77f8d3d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/Index.ets
@@ -0,0 +1,16 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT 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 { add } from './src/main/ets/utils/Calc'
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/library/build-profile.json5 b/function/ui_compare_rh/uicompare/library/build-profile.json5
new file mode 100644
index 0000000000000000000000000000000000000000..ce80db2a169f21a98e0d82d0fb4e67d5be90ac53
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/build-profile.json5
@@ -0,0 +1,28 @@
+{
+ "apiType": "stageMode",
+ "buildOption": {
+ },
+ "buildOptionSet": [
+ {
+ "name": "release",
+ "arkOptions": {
+ "obfuscation": {
+ "ruleOptions": {
+ "enable": false,
+ "files": [
+ "./obfuscation-rules.txt"
+ ]
+ }
+ }
+ },
+ },
+ ],
+ "targets": [
+ {
+ "name": "default"
+ },
+ {
+ "name": "ohosTest"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/library/hvigorfile.ts b/function/ui_compare_rh/uicompare/library/hvigorfile.ts
new file mode 100644
index 0000000000000000000000000000000000000000..d993120bd71f5f5dfe04480be9dc5f73c00c2599
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/hvigorfile.ts
@@ -0,0 +1,6 @@
+import { hspTasks } from '@ohos/hvigor-ohos-plugin';
+
+export default {
+ system: hspTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
+ plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
+}
diff --git a/function/ui_compare_rh/uicompare/library/obfuscation-rules.txt b/function/ui_compare_rh/uicompare/library/obfuscation-rules.txt
new file mode 100644
index 0000000000000000000000000000000000000000..272efb6ca3f240859091bbbfc7c5802d52793b0b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/obfuscation-rules.txt
@@ -0,0 +1,23 @@
+# Define project specific obfuscation rules here.
+# You can include the obfuscation configuration files in the current module's build-profile.json5.
+#
+# For more details, see
+# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5
+
+# Obfuscation options:
+# -disable-obfuscation: disable all obfuscations
+# -enable-property-obfuscation: obfuscate the property names
+# -enable-toplevel-obfuscation: obfuscate the names in the global scope
+# -compact: remove unnecessary blank spaces and all line feeds
+# -remove-log: remove all console.* statements
+# -print-namecache: print the name cache that contains the mapping from the old names to new names
+# -apply-namecache: reuse the given cache file
+
+# Keep options:
+# -keep-property-name: specifies property names that you want to keep
+# -keep-global-name: specifies names that you want to keep in the global scope
+
+-enable-property-obfuscation
+-enable-toplevel-obfuscation
+-enable-filename-obfuscation
+-enable-export-obfuscation
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/library/oh-package.json5 b/function/ui_compare_rh/uicompare/library/oh-package.json5
new file mode 100644
index 0000000000000000000000000000000000000000..ce7db14c14de58a5a2d59e2e529776ac94e00dee
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/oh-package.json5
@@ -0,0 +1,11 @@
+{
+ "name": "library",
+ "version": "1.0.0",
+ "description": "Please describe the basic information.",
+ "main": "Index.ets",
+ "author": "",
+ "license": "Apache-2.0",
+ "packageType": "InterfaceHar",
+ "dependencies": {
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/library/src/main/ets/pages/Index.ets b/function/ui_compare_rh/uicompare/library/src/main/ets/pages/Index.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3ea85551d047af35af6d674df938819f1743f629
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/src/main/ets/pages/Index.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 Index {
+ @State message: string = 'Hello World';
+
+ build() {
+ Row() {
+ Column() {
+ Text(this.message)
+ .fontSize(50)
+ .fontWeight(FontWeight.Bold)
+ }
+ .width('100%')
+ }
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/library/src/main/ets/utils/Calc.ets b/function/ui_compare_rh/uicompare/library/src/main/ets/utils/Calc.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9755f336efe4fb9490a2d66c1e2169bb0a6c1379
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/src/main/ets/utils/Calc.ets
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT 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 function add(a: number, b: number) {
+ return a + b;
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/library/src/main/module.json5 b/function/ui_compare_rh/uicompare/library/src/main/module.json5
new file mode 100644
index 0000000000000000000000000000000000000000..74570f92995fc0e119b53d221b53724a2f43b515
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/src/main/module.json5
@@ -0,0 +1,13 @@
+{
+ "module": {
+ "name": "library",
+ "type": "shared",
+ "description": "$string:shared_desc",
+ "deviceTypes": [
+ "default",
+ "tablet"
+ ],
+ "deliveryWithInstall": true,
+ "pages": "$profile:main_pages"
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/library/src/main/resources/base/element/string.json b/function/ui_compare_rh/uicompare/library/src/main/resources/base/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..32ebaad6678f6f6623d32ffb418681d625b1cd72
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/src/main/resources/base/element/string.json
@@ -0,0 +1,12 @@
+{
+ "string": [
+ {
+ "name": "shared_desc",
+ "value": "description"
+ },
+ {
+ "name": "test_string",
+ "value": "library_test_string"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/library/src/main/resources/base/profile/main_pages.json b/function/ui_compare_rh/uicompare/library/src/main/resources/base/profile/main_pages.json
new file mode 100644
index 0000000000000000000000000000000000000000..1898d94f58d6128ab712be2c68acc7c98e9ab9ce
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/src/main/resources/base/profile/main_pages.json
@@ -0,0 +1,5 @@
+{
+ "src": [
+ "pages/Index"
+ ]
+}
diff --git a/function/ui_compare_rh/uicompare/library/src/main/resources/rawfile/test.mp4 b/function/ui_compare_rh/uicompare/library/src/main/resources/rawfile/test.mp4
new file mode 100644
index 0000000000000000000000000000000000000000..454c10cf31f3d114a01e5c3016e08d9edc9bfe7b
Binary files /dev/null and b/function/ui_compare_rh/uicompare/library/src/main/resources/rawfile/test.mp4 differ
diff --git a/function/ui_compare_rh/uicompare/library/src/ohosTest/ets/test/Ability.test.ets b/function/ui_compare_rh/uicompare/library/src/ohosTest/ets/test/Ability.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..76e140bc60b9e19df3e40c0c70b172198360e76b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/src/ohosTest/ets/test/Ability.test.ets
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import hilog from '@ohos.hilog';
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+
+export default function abilityTest() {
+ describe('ActsAbilityTest', () => {
+ // Defines a test suite. Two parameters are supported: test suite name and test suite function.
+ beforeAll(() => {
+ // Presets an action, which is performed only once before all test cases of the test suite start.
+ // This API supports only one parameter: preset action function.
+ });
+ beforeEach(() => {
+ // Presets an action, which is performed before each unit test case starts.
+ // The number of execution times is the same as the number of test cases defined by **it**.
+ // This API supports only one parameter: preset action function.
+ });
+ afterEach(() => {
+ // Presets a clear action, which is performed after each unit test case ends.
+ // The number of execution times is the same as the number of test cases defined by **it**.
+ // This API supports only one parameter: clear action function.
+ });
+ afterAll(() => {
+ // Presets a clear action, which is performed after all test cases of the test suite end.
+ // This API supports only one parameter: clear action function.
+ });
+ it('assertContain', 0, () => {
+ // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
+ hilog.info(0x0000, 'testTag', '%{public}s', 'it begin');
+ let a = 'abc';
+ let b = 'b';
+ // Defines a variety of assertion methods, which are used to declare expected boolean conditions.
+ expect(a).assertContain(b);
+ expect(a).assertEqual(a);
+ });
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/library/src/ohosTest/ets/test/List.test.ets b/function/ui_compare_rh/uicompare/library/src/ohosTest/ets/test/List.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..bf9e73e5e373d67158440a5c9edbd4ab9c87af8b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/src/ohosTest/ets/test/List.test.ets
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import abilityTest from './Ability.test';
+
+export default function testsuite() {
+ abilityTest();
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/library/src/ohosTest/module.json5 b/function/ui_compare_rh/uicompare/library/src/ohosTest/module.json5
new file mode 100644
index 0000000000000000000000000000000000000000..9628456ed28355722d66fe468bfd90aaa1c94991
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/src/ohosTest/module.json5
@@ -0,0 +1,12 @@
+{
+ "module": {
+ "name": "library_test",
+ "type": "feature",
+ "deviceTypes": [
+ "default",
+ "tablet"
+ ],
+ "deliveryWithInstall": true,
+ "installationFree": false
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/library/src/test/List.test.ets b/function/ui_compare_rh/uicompare/library/src/test/List.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d541e16a2328ed9fe4d858c33a79dfb60021a111
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/src/test/List.test.ets
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import localUnitTest from './LocalUnit.test';
+
+export default function testsuite() {
+ localUnitTest();
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/library/src/test/LocalUnit.test.ets b/function/ui_compare_rh/uicompare/library/src/test/LocalUnit.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dd903ce044c4f1d0f49503abc5c63abea08bccaa
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/library/src/test/LocalUnit.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';
+
+export default function localUnitTest() {
+ describe('localUnitTest', () => {
+ // Defines a test suite. Two parameters are supported: test suite name and test suite function.
+ beforeAll(() => {
+ // Presets an action, which is performed only once before all test cases of the test suite start.
+ // This API supports only one parameter: preset action function.
+ });
+ beforeEach(() => {
+ // Presets an action, which is performed before each unit test case starts.
+ // The number of execution times is the same as the number of test cases defined by **it**.
+ // This API supports only one parameter: preset action function.
+ });
+ afterEach(() => {
+ // Presets a clear action, which is performed after each unit test case ends.
+ // The number of execution times is the same as the number of test cases defined by **it**.
+ // This API supports only one parameter: clear action function.
+ });
+ afterAll(() => {
+ // Presets a clear action, which is performed after all test cases of the test suite end.
+ // This API supports only one parameter: clear action function.
+ });
+ it('assertContain', 0, () => {
+ // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
+ let a = 'abc';
+ let b = 'b';
+ // Defines a variety of assertion methods, which are used to declare expected boolean conditions.
+ expect(a).assertContain(b);
+ expect(a).assertEqual(a);
+ });
+ });
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIAttributesColorrampInterface.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIAttributesColorrampInterface.xlsx
new file mode 100644
index 0000000000000000000000000000000000000000..ad13c86931fbdd8be14884bc8a01e5594e11690d
Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIAttributesColorrampInterface.xlsx differ
diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIAttributesImageEffectFilter.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIAttributesImageEffectFilter.xlsx
new file mode 100644
index 0000000000000000000000000000000000000000..66530ea9198fc5aea464260c11cab9e922fab454
Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIAttributesImageEffectFilter.xlsx differ