diff --git a/OAT.xml b/OAT.xml
index e6b5b947bba36fe1ac1eb390307a3738babad273..e70b7a624f21be3bb7ad3a3dc125f6843bc1377d 100644
--- a/OAT.xml
+++ b/OAT.xml
@@ -115,6 +115,7 @@ Note:If the text contains special characters, please escape them according to th
+
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventFrameNodeOnDrawTest/ActionEventCommonEventFrameNodeOnDraw.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventFrameNodeOnDrawTest/ActionEventCommonEventFrameNodeOnDraw.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d82d7a870c50f1ea706073077c69789e3e1d12f4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventFrameNodeOnDrawTest/ActionEventCommonEventFrameNodeOnDraw.test.ets
@@ -0,0 +1,687 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License")
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, afterEach, it } from "@ohos/hypium"
+import Settings from "../model/Settings"
+import windowSnap from "../model/snapShot"
+import Logger from "../model/Logger"
+import Utils from "../model/Utils"
+import { Driver, ON, Component } from "@kit.TestKit"
+import { KeyCode } from "@kit.InputKit"
+
+/*
+ * ActionEventCommonEventFrameNodeOnDraw
+ *
+ * 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 ActionEventCommonEventFrameNodeOnDraw() {
+
+ describe("ActionEventCommonEventFrameNodeOnDraw", () => {
+ 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_FRAMENODE-ONDRAW_0100
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0100
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0100", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0100 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0100"
+ );
+ await Utils.sleep(2000);
+
+ let driver: Driver = Driver.create();
+ let btn1 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0100_btn1"));
+ await btn1.click();
+ await Utils.sleep(2000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0100 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0110
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0110
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0110", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0110 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0110"
+ );
+ await Utils.sleep(2000);
+
+ let driver: Driver = Driver.create();
+ let btn1 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0110_btn1"));
+ await btn1.click();
+ await Utils.sleep(2000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0110 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0120
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0120
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0120", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0120 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0120"
+ );
+ await Utils.sleep(2000);
+
+ let driver: Driver = Driver.create();
+ let btn1 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0120_btn1"));
+ await btn1.click();
+ await Utils.sleep(2000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0120 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0010
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0010
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0010", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0010 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0010"
+ );
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0010 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0020
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0020
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0020", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0020 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0020"
+ );
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0020 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0030
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0030
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0030", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0030 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0030"
+ );
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0030 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0080
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0080
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0080", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0080 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0080"
+ );
+ await Utils.sleep(2000);
+
+ let driver: Driver = Driver.create();
+ let btn1 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0080_btn1"));
+ await btn1.click();
+ await Utils.sleep(2000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0080 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0090
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0090
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0090", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0090 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0090"
+ );
+ await Utils.sleep(2000);
+
+ let driver: Driver = Driver.create();
+ let btn1 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0090_btn1"));
+ await btn1.click();
+ await Utils.sleep(2000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0090 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0130
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0130
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0130", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0130 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0130"
+ );
+ await Utils.sleep(2000);
+
+ let driver: Driver = Driver.create();
+ let btn1 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0130_btn1"));
+ await btn1.click();
+ await Utils.sleep(2000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0130 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0150
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0150
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0150", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0150 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0150"
+ );
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+
+ let btn2 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0150_btn2"));
+ await btn2.click();
+ await Utils.sleep(2000)
+
+ let btn3 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0150_btn3"));
+ await btn3.click();
+ await Utils.sleep(2000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0150 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_NODECONTAINER_0230
+ * @tc.name SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_NODECONTAINER_0230
+ */
+ it("SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_NODECONTAINER_0230", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_NODECONTAINER_0230 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/UIComponentGraphicNodeContainer0230"
+ );
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await homeAndBack(driver);
+ await Utils.sleep(3000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_NODECONTAINER_0230 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0160
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0160
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0160", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0150 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0160"
+ );
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+
+ let btn1 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0160_btn1"));
+ await btn1.click();
+ await Utils.sleep(1000)
+
+ let btn2 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0160_btn2"));
+ let point1 = await btn2.getBoundsCenter();
+ await driver.mouseMoveTo(point1);
+ await Utils.sleep(1000)
+
+ let btn3 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0160_btn3"));
+ point1 = await btn3.getBoundsCenter();
+ await driver.mouseMoveTo(point1);
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE-ONDRAW_0160 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0140
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0140
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0140_1", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0140_1 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0140"
+ );
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+
+ let btn1 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0140_btn1"));
+ await btn1.click();
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0140_1 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0140
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0140
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0140_2", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0140_2 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0140"
+ );
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+
+ let btn1 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0140_btn1"));
+ await btn1.click();
+ await Utils.sleep(1000)
+
+ await btn1.click();
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0140_2 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0180
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0180
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0180", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0180 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0180"
+ );
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+
+ let btn1 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0180_btn1"));
+ await btn1.click();
+ await Utils.sleep(1000)
+
+ await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_1);
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0180 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0170
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0170
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0170_1", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0170_1 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0170"
+ );
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+
+ let btn1 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0170_btn1"));
+ await btn1.click();
+ await Utils.sleep(1000)
+
+ await driver.triggerKey(KeyCode.KEYCODE_TAB);
+ await Utils.sleep(1000)
+
+ await driver.triggerKey(KeyCode.KEYCODE_TAB);
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0170_1 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0170
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0170
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0170_2", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0170_2 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0170"
+ );
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+
+ let btn1 = await driver.findComponent(ON.id("ActionEventCommonEventFrameNodeOnDraw0170_btn1"));
+ await btn1.click();
+ await Utils.sleep(1000)
+
+ await driver.triggerKey(KeyCode.KEYCODE_TAB);
+ await Utils.sleep(1000)
+
+ await driver.triggerKey(KeyCode.KEYCODE_TAB);
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000)
+
+ await driver.triggerKey(KeyCode.KEYCODE_TAB);
+ await Utils.sleep(1000)
+
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0170_2 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0190
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0190
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0190_1", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0190_1 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0190"
+ );
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let text_clear: Component = await driver.findComponent(ON.id('text_clear'));
+ await text_clear.click();
+ await Utils.sleep(1000);
+ let button_in_node: Component = await driver.findComponent(ON.id('button_in_node'));
+ await button_in_node.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0190_1 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0190
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0190
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0190_2", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0190_2 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0190"
+ );
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let text_clear: Component = await driver.findComponent(ON.id('text_clear'));
+ await text_clear.click();
+ await Utils.sleep(1000);
+ let button_in_node: Component = await driver.findComponent(ON.id('button_in_node'));
+ await button_in_node.click();
+ await Utils.sleep(1000);
+ await text_clear.click();
+ await Utils.sleep(1000);
+ let text_1: Component = await driver.findComponent(ON.id('text_1'));
+ await text_1.click();
+ await Utils.sleep(1000);
+ await button_in_node.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await text_1.click();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0190_2 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0200
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0200
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0200_1", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0200_1 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0190"
+ );
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let text_clear: Component = await driver.findComponent(ON.id('text_clear'));
+ await text_clear.click();
+ await Utils.sleep(1000);
+ let button_in_node: Component = await driver.findComponent(ON.id('button_in_node'));
+ await button_in_node.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0200_1 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0200
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0200
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0200_2", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0200_2 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0190"
+ );
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let text_clear: Component = await driver.findComponent(ON.id('text_clear'));
+ await text_clear.click();
+ await Utils.sleep(1000);
+ let button_in_node: Component = await driver.findComponent(ON.id('button_in_node'));
+ await button_in_node.click();
+ await Utils.sleep(1000);
+ await text_clear.click();
+ await Utils.sleep(1000);
+ let text_2: Component = await driver.findComponent(ON.id('text_2'));
+ await text_2.click();
+ await Utils.sleep(1000);
+ await button_in_node.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await text_2.click();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0200_2 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0220
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0220
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0220_1", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0220_1 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0190"
+ );
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let text_clear: Component = await driver.findComponent(ON.id('text_clear'));
+ await text_clear.click();
+ await Utils.sleep(1000);
+ let rootNode: Component = await driver.findComponent(ON.id('rootNode'));
+ await rootNode.longClick();
+ await Utils.sleep(1000);
+ let test_text: Component = await driver.findComponent(ON.id('test_text'));
+ await test_text.longClick();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0220_1 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0220
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0220
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0220_2", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0220_2 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0190"
+ );
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let text_clear: Component = await driver.findComponent(ON.id('text_clear'));
+ await text_clear.click();
+ await Utils.sleep(1000);
+ let rootNode: Component = await driver.findComponent(ON.id('rootNode'));
+ let test_text: Component = await driver.findComponent(ON.id('test_text'));
+ let text_4: Component = await driver.findComponent(ON.id('text_4'));
+ await text_4.click();
+ await Utils.sleep(1000);
+ await rootNode.longClick();
+ await Utils.sleep(1000);
+ await test_text.longClick();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await text_4.click();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0220_2 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0210
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0210
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0210_1", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0210_1 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0190"
+ );
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let text_clear: Component = await driver.findComponent(ON.id('text_clear'));
+ await text_clear.click();
+ await Utils.sleep(1000);
+ let rootNode: Component = await driver.findComponent(ON.id('rootNode'));
+ await rootNode.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0210_1 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0210
+ * @tc.name SUB_ACE_ACTION_EVENT_00MMONEVENT_FRAMENODE-ONDRAW_0210
+ */
+ it("SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0210_2", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0210_2 start.");
+ Settings.createWindow(
+ "testability/pages/ActionEventCommonEventFrameNodeOnDraw/ActionEventCommonEventFrameNodeOnDraw0190"
+ );
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let text_clear: Component = await driver.findComponent(ON.id('text_clear'));
+ await text_clear.click();
+ await Utils.sleep(1000);
+ let rootNode: Component = await driver.findComponent(ON.id('rootNode'));
+ await rootNode.click();
+ await Utils.sleep(1000);
+ await text_clear.click();
+ await Utils.sleep(1000);
+ let text_3: Component = await driver.findComponent(ON.id('text_3'));
+ await text_3.click();
+ await Utils.sleep(1000);
+ await rootNode.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ await text_3.click();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_ONDRAW_0210_2 finish.");
+ done();
+ });
+
+ })
+}
+
+/**
+ * The application switches to the desktop and back to the application
+ *
+ * @param driver
+ */
+async function homeAndBack(driver: Driver) {
+ let currentWindow = Settings.windowClass;
+ if (currentWindow) {
+ await currentWindow.hide();
+ await driver.triggerKey(KeyCode.KEYCODE_HOME);
+ await Utils.sleep(3000);
+ await currentWindow.showWindow();
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventFrameNodeTest/ActionEventCommonEventFrameNode.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventFrameNodeTest/ActionEventCommonEventFrameNode.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8db0d9c6e36f4b61f6f017c0a8e14cddebd1e7fc
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventFrameNodeTest/ActionEventCommonEventFrameNode.test.ets
@@ -0,0 +1,1845 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { afterEach, describe, it } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+import { Component, Driver, ON } from '@ohos.UiTest'
+
+/*
+ *
+ * Settings.createWindow(config.url):
+ * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法
+ *
+ * windowSnap.snapShot(globalThis.context):
+ * 窗口截屏&图片文件保存,存储在设备端
+ * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比
+ * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33
+ *
+ * Logger日志使用方法:
+ * import Logger form './model/Logger'
+ * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`)
+ * */
+
+export default function ActionEventCommonEventFrameNode() {
+
+ describe('ActionEventCommonEventFrameNode', () => {
+ 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_FRAMENODE_0300
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0300
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0300', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0300 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0300");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0300'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0300 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0310
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0310
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0310 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0310");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0310'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(100);
+ await Utils.sleep(600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0310 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0320
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0320
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0320', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0320 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0320");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0320'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(100);
+ await Utils.sleep(600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0320 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0180
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0180
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0180 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0180");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0180'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(100);
+ await Utils.sleep(600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0180 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0210
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0210
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0210 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0210");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0210'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(100);
+ await Utils.sleep(600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0210 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0200
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0200
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0200', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0200 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0200");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0200'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(100);
+ await Utils.sleep(600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0200 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0060
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0060
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0060 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0060");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0060'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(100);
+ await Utils.sleep(600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0220
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0220
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0220', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0220 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0220");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0220'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(100);
+ await Utils.sleep(600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0220 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0080
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0080
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0080 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0080");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0080'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(100);
+ await Utils.sleep(600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0080 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0230
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0230
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0230 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0230");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0230'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(100);
+ await Utils.sleep(600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0230 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0090
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0090
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0090 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0090");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0090'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(100);
+ await Utils.sleep(600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0090 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0250
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0250
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0250 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0250");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0250'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(100);
+ await Utils.sleep(600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0250 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0100
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0100
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0100 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0100'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(100);
+ await Utils.sleep(600);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0100 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0070
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0070
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0070 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0070");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0070'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0070 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0240
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0240
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0240 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0240");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0240'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0240 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0110
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0110
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0110 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0110");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0110'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0110 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0190
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0190
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0190 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0190");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0190'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0190 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4000
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4000
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4000', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4000 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4000");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4000'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4000 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4010
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4010
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4010 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4010");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4010'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4010 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4020
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4020
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4020 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4020");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4020'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4020 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4030
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4030
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4030 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4030");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4030'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4030 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4040
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4040
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4040 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4040");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4040'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4050
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4050
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4050 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4050");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4050'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4050 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4060
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4060
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4060 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4060");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4060'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4070
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4070
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4070 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4070");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4070'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4070 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4100
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4100
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4100 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4100'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4100 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4110
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4110
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4110 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4110");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4110'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4110 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4120
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4120
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4120 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4120");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4120'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4120 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4130
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4130
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4130 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4130");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4130'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4130 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4140
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4140
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4140 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4140");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4140'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4140 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4150
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4150
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4150 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4150");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4150'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4150 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4170
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4170
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4170', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4170 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4170");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4170'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4170 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4180
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4180
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4180 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4180");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4180'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4180 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4190
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4190
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4190 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4190");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4190'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4190 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4200
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4200
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4200', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4200 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4200");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('Test_Button'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4200 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0360
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0360
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0360', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0360 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0360");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0360'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.doubleClick();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0360 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0290
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0290
+ * @tc.desc :
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0290', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0290")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0290'));
+ await button.click()
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0370
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0370
+ * @tc.desc :
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0370', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0370")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0370'));
+ await button.click()
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0380
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0380
+ * @tc.desc :
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0380', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0380")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0380'));
+ await button.click()
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0390
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0390
+ * @tc.desc :
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0390', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0390")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0390'));
+ await button.click()
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4090
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4090
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4090 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4090");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4090'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.doubleClick();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4090 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4080
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4080
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4080 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4080");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.swipe(0, 0, 2, 2)
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode4080'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.doubleClick();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4080 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0050
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0050
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0050 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0050");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let buttonDatePickerDialog: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0050'));
+ await driver.delayMs(100);
+ await buttonDatePickerDialog.doubleClick();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0050 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4000', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4000 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4000");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreatTextTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4000 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4010 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4010");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateColumnTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4010 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4020 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4020");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateRowTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4020 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4030 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4030");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateStackTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4030 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4040 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4040");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateGridRowTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4040 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4050 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4050");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateGridColTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4050 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4060 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4060");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateFlexTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4060 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4070 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4070");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateSwiperTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4070 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4080 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4080");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateProgressTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4080 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4090 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4090");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateScrollTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4090 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4100 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateRelativeContainerTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4100 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4110 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4110");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateDividerTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4110 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4120 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4120");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateLoadingProgressTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4120 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4130 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4130");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateSearchTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4130 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4140 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4140");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateBlankTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4140 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4150 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4150");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateImageTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4150 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4160 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4160");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateBlankTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4160 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4170', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4170 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4170");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateListItemTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4170 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4180 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4180");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateTextInputNodeTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4180 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4190 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4190");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateButtonNodeTypeNode'))
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4190 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4200', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4200 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4200");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateListItemGroupNodeTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4200 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4210 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4210");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateWaterFlowNodeTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4210 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4230 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4230");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('idBtCreateXComponentNodeTypeNode'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_TYPENODE_CREATE_FRAMENODE_4230 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `SSUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0130 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0130");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0130'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0130 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SSUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0260 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0260");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0260'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0260 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0270 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0270");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0270'));
+ await driver.delayMs(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0270 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0280 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0280");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0280'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0280 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0400', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0400 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0400");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0400'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0400 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0010 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0010");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0010'));
+ await driver.delayMs(100);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0010 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0020 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0020");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0020'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0020 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0030 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0030");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await driver.delayMs(100);
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('ActionEventCommonEventFrameNode0030'));
+ await driver.delayMs(100);
+ await button.click();
+ await driver.delayMs(1000);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0030 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4210
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4210
+ * @tc.desc : Navigation组件,创建new FrameNode,监听节点进行测量时onMeasure被调用
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4210 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4210");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4210 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4220
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4220
+ * @tc.desc : 创建new FrameNode,监听节点进行布局时onLayout被调用
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4220', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4220 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4210");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4220 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4230
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4230
+ * @tc.desc : 创建new FrameNode,设置FrameNode的测量后的尺寸setMeasuredSize
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4230 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4230");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let setMeasuredSize1: Component = await driver.findComponent(ON.id('setMeasuredSize1'));
+ await setMeasuredSize1.click();
+ await Utils.sleep(1000);
+ let setMeasuredSize2: Component = await driver.findComponent(ON.id('setMeasuredSize2'));
+ await setMeasuredSize2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4230 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4240
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4240
+ * @tc.desc : 创建new FrameNode,设置FrameNode的布局后的位置setLayoutPosition
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4240 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4240");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let setLayoutPosition1: Component = await driver.findComponent(ON.id('setLayoutPosition1'));
+ await setLayoutPosition1.click();
+ await Utils.sleep(1000);
+ let setLayoutPosition2: Component = await driver.findComponent(ON.id('setLayoutPosition2'));
+ await setLayoutPosition2.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4240 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4250
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4250
+ * @tc.desc : 创建new FrameNode,measure根据父容器的布局约束,对FrameNode进行测量,计算出尺寸
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4250 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4250");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('measure'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4250 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4260
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4260
+ * @tc.desc : 创建new FrameNode,layout为FrameNode及其子节点指定布局位置
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4260 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4260");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('layout'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4260 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4270
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4270
+ * @tc.desc : 创建new FrameNode,setNeedsLayout将FrameNode标记为需要布局的状态
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4270 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4270");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('setNeedsLayout'));
+ await button.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4270 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4280
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4280
+ * @tc.desc : 创建new FrameNode,invalidate触发FrameNode自绘制内容的重新渲染
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4280 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4280");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let invalidate: Component = await driver.findComponent(ON.id('invalidate'));
+ await invalidate.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4280 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4290
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4290
+ * @tc.desc : 创建new FrameNode,支持添加ComponentContent类型的组件内容addComponentContent
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4290', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4290 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4290");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('addComponentContent'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4290 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4300
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4300
+ * @tc.desc : 创建new FrameNodeFrameNode下树并递归释放当前节点为根的子树disposeTree
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4300', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4300 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4300");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('disposeTree'));
+ await Utils.sleep(200);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4300 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4310
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4310
+ * @tc.desc : 创建new FrameNodeFrameNode在设置尺寸时构造LayoutConstrain对象
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4310 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4310");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let button: Component = await driver.findComponent(ON.id('LayoutConstrain'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_4310 finish.`);
+ done();
+ })
+
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0120
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0120
+ * @tc.desc :
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0120', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0120")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ButtonTest1'));
+ await button.click()
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0140
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0140
+ * @tc.desc :
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0140")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ButtonTest1'));
+ await button.click()
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0150
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0150
+ * @tc.desc :
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0150")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ButtonTest1'));
+ await button.click()
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0160
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0160
+ * @tc.desc :
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0160")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ButtonTest1'));
+ await button.click()
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0170
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0170
+ * @tc.desc :
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0170")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('ButtonTest1'));
+ await button.click()
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommoneventFramenodeClipTest/ActionEventCommoneventFramenodeClip.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommoneventFramenodeClipTest/ActionEventCommoneventFramenodeClip.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2b1e09f30aad3ff2b758cab8ea5fc954062fa452
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommoneventFramenodeClipTest/ActionEventCommoneventFramenodeClip.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 { afterEach, describe, it } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+import { Driver, ON } from '@kit.TestKit'
+
+/*
+ * ActionEventCommoneventFramenodeClip
+ *
+ * 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 ActionEventCommoneventFramenodeClip() {
+
+ describe('ActionEventCommoneventFramenodeClip', () => {
+ 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_FRAMENODE_CLIP_0100
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0100
+ * @tc.desc 显示裁剪以左上角(0,0),右下角为(150,150)的矩形,无圆角效果
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0100', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommoneventFramenodeClip0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("ActionEventCommoneventFramenodeClip01"));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0020
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0020
+ * @tc.desc 显示裁剪以左上角(0,0),右下角为(150,150)的矩形
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommoneventFramenodeClip0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("ActionEventCommoneventFramenodeClip02"));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0090
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0090
+ * @tc.desc 显示裁剪以左上角(50,50),右下角为(200,400)且四角边框为(32,32)的圆角矩形
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0090', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommoneventFramenodeClip0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("ActionEventCommoneventFramenodeClip03"));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_D1AMENODE_CLIP_0010
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_D1AMENODE_CLIP_0010
+ * @tc.desc 显示裁剪以左上角(50,50),右下角为(200,400)的矩形
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_D1AMENODE_CLIP_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommoneventFramenodeClip0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("ActionEventCommoneventFramenodeClip04"));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVEAMENODE_CLIP_0030
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVEAMENODE_CLIP_0030
+ * @tc.desc 显示裁剪以左上角(-10,-10),右下角为(250,250)的矩形
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVEAMENODE_CLIP_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommoneventFramenodeClip0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("ActionEventCommoneventFramenodeClip05"));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0080
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0080
+ * @tc.desc 显示裁剪以左上角(100,100),右下角为(300,500)的矩形
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0080', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommoneventFramenodeClip0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("ActionEventCommoneventFramenodeClip06"));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0140
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0140
+ * @tc.desc 无裁剪效果显示
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommoneventFramenodeClip0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("ActionEventCommoneventFramenodeClip07"));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0150
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0150
+ * @tc.desc 显示裁剪以左上角(50,50),右下角为(200,400)的矩形,无圆角效果
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommoneventFramenodeClip0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("ActionEventCommoneventFramenodeClip08"));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0130
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0130
+ * @tc.desc 显示裁剪以左上角(0,0),右下角为(50,50)且右下边框为(32,32)的圆角矩形
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0130', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommoneventFramenodeClip0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("ActionEventCommoneventFramenodeClip09"));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0110
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0110
+ * @tc.desc 显示裁剪以左上角(0,0),右下角为(200,200)的矩形,无圆角效果
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0110', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommoneventFramenodeClip0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("ActionEventCommoneventFramenodeClip10"));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0120
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0120
+ * @tc.desc 显示裁剪以左上角(0,0),右下角为(300,600)的矩形,无圆角效果
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0120', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommoneventFramenodeClip0100");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("ActionEventCommoneventFramenodeClip11"));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ //////
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0040
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0040
+ * @tc.desc 显示裁剪以左上角(0,0),右下角为(300,600)的矩形
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0040 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0040");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0050
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0050
+ * @tc.desc 显示裁剪以左上角(0,0),右下角为(50,50)的矩形
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0050 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0050");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0050 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0060
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0060
+ * @tc.desc 无裁剪矩形显示
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0060 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0060");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0070
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0070
+ * @tc.desc 显示裁剪以左上角(50,50),右下角为(200,200)的矩形
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0070 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0070");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0070 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0160
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0160
+ * @tc.desc 显示裁剪以左上角(50,50),右下角为(200,400)且四角边框为(100,100)的圆角矩形
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0160 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0160");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0160 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0170
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0170
+ * @tc.desc 显示裁剪以圆心为(150,150)半径为150的圆
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0170', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0170 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0170");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0170 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0180
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0180
+ * @tc.desc 显示裁剪以圆心为(75,75)半径为75的圆形
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0180 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0180");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0180 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0190
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0190
+ * @tc.desc 无裁剪效果显示(不在范围内)
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0190 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0190");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0190 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0200
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0200
+ * @tc.desc 显示裁剪以圆心为(150,0)半径为150的下半圆
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0200', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0200 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0200");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0200 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0210
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0210
+ * @tc.desc 显示裁剪以圆心为(0,150)半径为150的左半圆
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0210 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0210");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0210 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0220
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0220
+ * @tc.desc 半径为0,无裁煎效果显示
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0220', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0220 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0220");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0220 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0230
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0230
+ * @tc.desc 圆心为(75,-150)半径为50的圆未显示在页面内
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0230 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0230");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0230 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0240
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0240
+ * @tc.desc 显示裁前以圆心为(75,0)半径为150的圆,左边超出范围的区域被截断
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0240 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0240");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0240 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0250
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0250
+ * @tc.desc 显示裁前以左上角为(50,50)右下角为(200,400)的椭圆
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0250 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0250");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0250 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0260
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0260
+ * @tc.desc 显示裁剪以左上角为(0,0)右下角为(150,150)的椭圆
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0260 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0260");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0260 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0270
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0270
+ * @tc.desc 显示裁剪以左上角为(0,0)右下角为(200,200)的椭圆
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0270 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0270");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0270 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0280
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0280
+ * @tc.desc 显示裁剪以左上角为(0,0)右下角为(300,600)的椭圆
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0280 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0280");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0280 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0290
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0290
+ * @tc.desc 显示裁前以左上角为(0,0)右下角为(50,50)的椭圆(不在范围内显示)
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0290', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0290 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0290");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0290 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0300
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0300
+ * @tc.desc 无裁剪效果显示(不在范围内)
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0300', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0300 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0300");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0300 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0310
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0310
+ * @tc.desc 显示裁剪以左上角为(50,50)右下角为(200,200)的椭圆
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0310 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0310");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0310 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0320
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0320
+ * @tc.desc 显示裁剪以左上角为(100,100)右下角为(300,500)的椭圆
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0320', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0320 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0320");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0320 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0330
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0330
+ * @tc.desc 显示裁剪以(100,0)-(200,240)-(0,240)形成的闭合三角形区域
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0330', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0330 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0330");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0330 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0340
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0340
+ * @tc.desc 显示裁剪以(0,0)-(200,0)-(200,200)-(0,200)-(0,0)的路径闭合矩形区域
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0340', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0340 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0340");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0340 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0350
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0350
+ * @tc.desc 显示裁剪以(100,0)-(0,100)-(50,200)-(150,200)-(200,100)的路径闭五边形区域
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0350', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0350 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0350");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0350 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0360
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0360
+ * @tc.desc 显示裁前以(0,300)到(240,300)绘制三次贝塞尔曲线(曲线终点为(100,0))
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0360', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0360 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0360");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0360 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0370
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0370
+ * @tc.desc 显示裁剪以(0,100)为起点(200,100)为终点的椭圆弧闭合区域
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0370', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0370 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0370");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0370 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0380
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0380
+ * @tc.desc 裁剪显示伞状闭合区域
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0380', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0380 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0380");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0380 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0390
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0390
+ * @tc.desc 裁剪测试椭圆弧闭合区域
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0390', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0390 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0390");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0390 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0400
+ * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0400
+ * @tc.desc 无裁剪效果显示(不在范围内)
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0400', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0400 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommoneventFramenodeClip/ActionEventCommonEventFrameNodeClip0400");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('showButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_CLIP_0400 finish.`);
+ done();
+ })
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentGtaphicNodecontainerDocDemo/ComponentGtaphicNodecontainerDocDemo.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentGtaphicNodecontainerDocDemo/ComponentGtaphicNodecontainerDocDemo.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a3abbf825b2ba6b14c6f0cd8e34a9375663dfac1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentGtaphicNodecontainerDocDemo/ComponentGtaphicNodecontainerDocDemo.test.ets
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+export default function ComponentGtaphicNodecontainerDocDemo() {
+
+ describe('ComponentGtaphicNodecontainerDocDemo', () => {
+ 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_GRAPHIC_NODECONTAINER_DOCDEMO_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_DOCDEMO_0070
+ * @tc.desc 各页面示例代码均能正常编译hap正常运行
+ */
+ it('SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_DOCDEMO_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_DOCDEMO_0070 start.`);
+ Settings.createWindow("testability/pages/ComponentGtaphicNodecontainerDocDemo/ComponentGtaphicNodecontainerDocDemo");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_DOCDEMO_0070 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/List.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/List.test.ets
index 0860e1238b7d5125d3247205585c174e61e3e827..577e57a84260d79d5959f91a64517f03faa57595 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
@@ -141,6 +141,39 @@ import UIComponentPopupBoxPromptToastSequence
import UIComponentPopupBoxSpecificationsPopup
from './UIComponentPopupBoxSpecificationsPopupTest/UIComponentPopupBoxSpecificationsPopup.test';
+import UiMotionAnimationMaskTest from "./UiMotionAnimationMaskTest/UiMotionAnimationMask.test";
+import ActionEventCommonEventFrameNodeOnDraw
+ from "./ActionEventCommonEventFrameNodeOnDrawTest/ActionEventCommonEventFrameNodeOnDraw.test";
+import UIComponentPopupBoxPopupFollowTransformOfTargetTest
+ from "./UIComponentPopupBoxPopupFollowTransformOfTargetTest/UIComponentPopupBoxPopupFollowTransformOfTarget.test";
+import UIComponentSpecialComponentsFrameNodeTextureXportTest
+ from "./UIComponentSpecialComponentsFrameNodeTextureXportTest/UIComponentSpecialComponentsFrameNodeTextureXport.test";
+import UIFrameNodeMeasureAndLayout
+ from './UIFrameNodeMeasureAndLayoutTest/UIFrameNodeMeasureAndLayout.test';
+import ActionEventCommoneventFramenodeClip
+ from "./ActionEventCommoneventFramenodeClipTest/ActionEventCommoneventFramenodeClip.test";
+import UIComponentSpecialComponentsFrameNodeAttributeInterface
+ from "./UIComponentSpecialComponentsFrameNodeAttributeInterfaceTest/UIComponentSpecialComponentsFrameNodeAttributeInterface.test";
+import UiComponentCmmonattrRenderingTest from "./UiComponentCmmonattrRenderingTest/UiComponentCmmonattrRendering.test";
+import UIFrameNodeRanderNodeMarkNodeGroup
+ from "./UIFrameNodeRanderNodeMarkNodeGroupTest/UIFrameNodeRanderNodeMarkNodeGroup.test";
+import UiComponentGraphicNodecontainerBuildernodeTest
+ from "./UiComponentGraphicNodecontainerBuildernodeTest/UiComponentGraphicNodecontainerBuildernode.test";
+import UILcomponeentGraphicNodecontainerToolchains from "./UILcomponeentGraphicNodecontainerToolchainsTest/UILcomponeentGraphicNodecontainerToolchains.test"
+import UiFrameNodeRenderNodeMarkNodeAdapterTest
+ from "./UiFrameNodeRenderNodeMarkNodeAdapterTest/UiFrameNodeRenderNodeMarkNodeAdapter.test";
+import UIComponentCraphicNodeContainerRenderTest
+ from "./UIComponentCraphicNodeContainerRenderTest/UIComponentCraphicNodeContainerRender.test";
+import UIMotionAnimationImperativeprope from "./UIMotionAnimationImperativepropeTest/UIMotionAnimationImperativeprope.test";
+import UIFrameNodeAcquisitionAbility from "./UIFramenodeAcquisitionAbilityTest/UIFrameNodeAcquisitionAbility.test"
+import ActionEventCommonEventFrameNode
+ from "./ActionEventCommonEventFrameNodeTest/ActionEventCommonEventFrameNode.test";
+import UIComponentGraphicNodeContainerToolChainsTest
+ from "./UIComponentGraphicNodeContainerToolChainsTest/UIComponentGraphicNodeContainerToolChainsTest";
+import UIComponentSpecialComponentsFrameNodePageInfo
+ from "./UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo.test";
+import ComponentGtaphicNodecontainerDocDemo from './ComponentGtaphicNodecontainerDocDemo/ComponentGtaphicNodecontainerDocDemo.test'
+
import UIComponentPopupBoxPopupInterface001
from './UIComponentPopupBoxPopupInterfaceTest/UIComponentPopupBoxPopupInterface001.test';
import UIComponentPopupPromptInterface001
@@ -239,6 +272,25 @@ export default function testsuite() {
UIComponentPopupBoxAttribute();
UIComponentPopupBoxPromptToastSequence();
UIComponentPopupBoxSpecificationsPopup();
+
+ UiMotionAnimationMaskTest();
+ ActionEventCommonEventFrameNodeOnDraw();
+ UIComponentPopupBoxPopupFollowTransformOfTargetTest();
+ UIComponentSpecialComponentsFrameNodeTextureXportTest();
+ UIFrameNodeMeasureAndLayout();
+ UILcomponeentGraphicNodecontainerToolchains();
+ ActionEventCommoneventFramenodeClip();
+ UIComponentSpecialComponentsFrameNodeAttributeInterface();
+ UiComponentCmmonattrRenderingTest();
+ UIFrameNodeRanderNodeMarkNodeGroup();
+ UiComponentGraphicNodecontainerBuildernodeTest()
+ UiFrameNodeRenderNodeMarkNodeAdapterTest();
+ UIComponentCraphicNodeContainerRenderTest();
+ UIMotionAnimationImperativeprope();
+ UIFrameNodeAcquisitionAbility();
+ ActionEventCommonEventFrameNode();
+ UIComponentGraphicNodeContainerToolChainsTest();
+ UIComponentSpecialComponentsFrameNodePageInfo();
+ ComponentGtaphicNodecontainerDocDemo();
+
}
-
-
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCraphicNodeContainerRenderTest/UIComponentCraphicNodeContainerRender.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCraphicNodeContainerRenderTest/UIComponentCraphicNodeContainerRender.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f9d860aa975f1ce26bb103e950533628074ce59c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCraphicNodeContainerRenderTest/UIComponentCraphicNodeContainerRender.test.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 { describe, afterEach, it, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+
+import { Component, Driver ,ON } from '@ohos.UiTest'
+import { KeyCode } from '@kit.InputKit'
+
+/*
+ * UIComponentCraphicNodeContainerRender
+ *
+ * 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 UIComponentCraphicNodeContainerRenderTest() {
+
+ describe('UIComponentCraphicNodeContainerRenderTest', () => {
+ 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_GRAPHIC_NODECONTAINER_RENDER_0010
+ * @tc.name SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0010
+ * @tc.desc constructor构建正常
+ */
+ it('SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0010 start.`);
+ Settings.createWindow("testability/pages/UIComponentCraphicNodeContainerRender/UIComponentCraphicNodeContainerRender0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0010 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0080
+ * @tc.desc clipToFrame设置为true,超出该RenderNode大小的部分将会被截断
+ */
+ it('SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0080 start.`);
+ Settings.createWindow("testability/pages/UIComponentCraphicNodeContainerRender/UIComponentCraphicNodeContainerRender0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0080 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0260
+ * @tc.name SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0260
+ * @tc.desc draw设置绘制方法正常
+ */
+ it('SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0260 start.`);
+ Settings.createWindow("testability/pages/UIComponentCraphicNodeContainerRender/UIComponentCraphicNodeContainerRender0260");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0260 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0270
+ * @tc.name SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0270
+ * @tc.desc invalidate触发RenderNode的重新渲染正常
+ */
+ it('SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0270 start.`);
+ Settings.createWindow("testability/pages/UIComponentCraphicNodeContainerRender/UIComponentCraphicNodeContainerRender0270");
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const button = await driver.findComponent(ON.id('UIComponentCraphicNodeContainerRender0270'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_RENDER_0270 finish.`);
+ done();
+ })
+
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentGraphicNodeContainerToolChainsTest/UIComponentGraphicNodeContainerToolChainsTest.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentGraphicNodeContainerToolChainsTest/UIComponentGraphicNodeContainerToolChainsTest.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d99202617501514207b8847de780da0c0dad7fc1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentGraphicNodeContainerToolChainsTest/UIComponentGraphicNodeContainerToolChainsTest.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 { afterEach, describe, expect, it } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+import windowSnap from '../model/snapShot'
+import { Driver, ON } from '@kit.TestKit'
+
+export default function UIComponentGraphicNodeContainerToolChainsTest() {
+
+ describe('UIComponentGraphicNodeContainerToolChainsTest', () => {
+ 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();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0010 start.`);
+ Settings.createWindow("testability/pages/UIComponentGraphicNodeContainerToolChains/UIComponentGraphicNodeContainerToolChains0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0010 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentGraphicNodeContainerToolChains/UIComponentGraphicNodeContainerToolChains0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0030 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentGraphicNodeContainerToolChains/UIComponentGraphicNodeContainerToolChains0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0040 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentGraphicNodeContainerToolChains/UIComponentGraphicNodeContainerToolChains0050");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0050 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentGraphicNodeContainerToolChains/UIComponentGraphicNodeContainerToolChains0060");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('nodeControllerID'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+ await modifyButton.longClick();
+ await Utils.sleep(1000);
+
+ let clickComponent = await driver.findComponent(ON.text('点击事件执行结果:click event'))
+ let gestureComponent = await driver.findComponent(ON.text('长按手势执行结果:longPress gesture'))
+ expect(clickComponent !== null).assertTrue();
+ expect(gestureComponent !== null).assertTrue();
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0060 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentGraphicNodeContainerToolChains/UIComponentGraphicNodeContainerToolChains0070");
+ await Utils.sleep(1000);
+
+ let driver = Driver.create();
+ let modifyButton = await driver.findComponent(ON.id('animateButton'));
+ await modifyButton.click();
+ await Utils.sleep(1000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0070 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..82fa12109dc0a2486624e3a56e67cfa5aee580a8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPopupFollowTransformOfTargetTest/UIComponentPopupBoxPopupFollowTransformOfTarget.test.ets
@@ -0,0 +1,562 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License")
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, afterEach, it } from "@ohos/hypium"
+import Settings from "../model/Settings"
+import windowSnap from "../model/snapShot"
+import Logger from "../model/Logger"
+import Utils from "../model/Utils"
+import { Driver, ON, Component } from "@kit.TestKit"
+
+export default function UIComponentPopupBoxPopupFollowTransformOfTargetTest() {
+
+ describe("UIComponentPopupBoxPopupFollowTransformOfTargetTest", () => {
+ 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_1190
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1190
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1190', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget1190")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let scale: Component = await driver.findComponent(ON.id('scale'));
+ await scale.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ let animation: Component = await driver.findComponent(ON.id('animation'));
+ await animation.click();
+ await Utils.sleep(1000);
+ await scale.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0790
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0790
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0790', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0790")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let scale: Component = await driver.findComponent(ON.id('scale'));
+ await scale.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ let animation: Component = await driver.findComponent(ON.id('animation'));
+ await animation.click();
+ await Utils.sleep(1000);
+ await scale.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0760
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0760
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0760', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0760")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let translate: Component = await driver.findComponent(ON.id('translate'));
+ await translate.click();
+ await Utils.sleep(1000);
+ let translation: Component = await driver.findComponent(ON.id('translation'));
+ await translation.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0340
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0340
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0340', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0340")
+ 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 driver.pressBack();
+ await Utils.sleep(1000);
+ let scale: Component = await driver.findComponent(ON.id('scale'));
+ await scale.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_0330
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0330
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0330', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0330")
+ 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 driver.pressBack();
+ await Utils.sleep(1000);
+ let rotate: Component = await driver.findComponent(ON.id('rotate'));
+ await rotate.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_1180
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1180
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget1180")
+ 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 driver.pressBack();
+ await Utils.sleep(1000);
+ let scale: Component = await driver.findComponent(ON.id('scale'));
+ await scale.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_1170
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1170
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget1170")
+ 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 driver.pressBack();
+ await Utils.sleep(1000);
+ let rotate: Component = await driver.findComponent(ON.id('rotate'));
+ await rotate.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_0350
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0350
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0350', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0350")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let scale: Component = await driver.findComponent(ON.id('scale'));
+ await scale.click();
+ await Utils.sleep(1000);
+ await driver.pressBack();
+ await Utils.sleep(1000);
+ let animation: Component = await driver.findComponent(ON.id('animation'));
+ await animation.click();
+ await Utils.sleep(1000);
+ await scale.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0370
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0370
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0370', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0370")
+ 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);
+ let rotate: Component = await driver.findComponent(ON.id('rotate'));
+ await rotate.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1200
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1200
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_1200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget1200")
+ 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 driver.pressBack();
+ await Utils.sleep(1000);
+ let translate: Component = await driver.findComponent(ON.id('translate'));
+ await translate.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_0380
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0380
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0380', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0380")
+ 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);
+ let scale: Component = await driver.findComponent(ON.id('scale'));
+ await scale.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0390
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0390
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0390', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0390")
+ 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);
+ let animation: Component = await driver.findComponent(ON.id('animation'));
+ await animation.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0820
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0820
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0820', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0820")
+ 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 driver.pressBack();
+ await Utils.sleep(1000);
+ let scale: Component = await driver.findComponent(ON.id('scale'));
+ await scale.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_0410
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0410
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0410', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0410")
+ 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 driver.pressBack();
+ await Utils.sleep(1000);
+ let rotate: Component = await driver.findComponent(ON.id('rotate'));
+ await rotate.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_0400
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0400
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0400', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0400")
+ 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);
+ let translate: Component = await driver.findComponent(ON.id('translate'));
+ await translate.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0860
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0860
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0860', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0860")
+ 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);
+ let scale: Component = await driver.findComponent(ON.id('scale'));
+ await scale.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0880
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0880
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0880', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0880")
+ 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);
+ let translate: Component = await driver.findComponent(ON.id('translate'));
+ await translate.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0870
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0870
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0870', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0870")
+ 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);
+ let animation: Component = await driver.findComponent(ON.id('animation'));
+ await animation.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0830
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0830
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0830', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0830")
+ 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 driver.pressBack();
+ await Utils.sleep(1000);
+ let animation: Component = await driver.findComponent(ON.id('animation'));
+ await animation.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_0840
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0840
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0840', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0840")
+ 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 driver.pressBack();
+ await Utils.sleep(1000);
+ let translate: Component = await driver.findComponent(ON.id('translate'));
+ await translate.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_0420
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0420
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0420', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0420")
+ 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 driver.pressBack();
+ await Utils.sleep(1000);
+ let scale: Component = await driver.findComponent(ON.id('scale'));
+ await scale.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_0430
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0430
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0430', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0430")
+ 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 driver.pressBack();
+ await Utils.sleep(1000);
+ let animation: Component = await driver.findComponent(ON.id('animation'));
+ await animation.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_0440
+ * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0440
+ */
+ it('SUB_ACE_UI_COMPONENT_POPUPBOX_POPUP_FOLLOWTRANSFORMOFTARGET_0440', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentPopupBoxPopupFollowTransformOfTarget/UIComponentPopupBoxPopupFollowTransformOfTarget0440")
+ 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 driver.pressBack();
+ await Utils.sleep(1000);
+ let translate: Component = await driver.findComponent(ON.id('translate'));
+ await translate.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/UIComponentSpecialComponentsFrameNodeAttributeInterfaceTest/UIComponentSpecialComponentsFrameNodeAttributeInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsFrameNodeAttributeInterfaceTest/UIComponentSpecialComponentsFrameNodeAttributeInterface.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..49d4df846aaa47d6c4fed134281e569d2cb709e8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsFrameNodeAttributeInterfaceTest/UIComponentSpecialComponentsFrameNodeAttributeInterface.test.ets
@@ -0,0 +1,3085 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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, expect } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+
+import { Component, Driver ,ON } from '@ohos.UiTest'
+import { KeyCode } from '@kit.InputKit'
+
+/*
+ * UIAttributesBackgroundSelfDrawing
+ *
+ * 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 UIComponentSpecialComponentsFrameNodeAttributeInterface() {
+
+ describe('UIComponentSpecialComponentsFrameNodeAttributeInterface', () => {
+ 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();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0130 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0130")
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const click0130 = await driver.findComponent(ON.id('click0130'));
+ await Utils.sleep(5000);
+ await click0130.click();
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0130 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2030
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2030
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置borderRadius
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2030 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface2030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2030 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2040
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2040
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置opacity
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2040 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface2040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0980
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0980
+ * @tc.desc FrameNode支持设置borderRadius
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0980', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0980 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0980");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0980 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1800
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1800
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置borderStyle
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1800', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1800 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1800");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1800 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0750
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0750
+ * @tc.desc FrameNode支持设置borderStyle
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0750', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0750 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0750");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0750 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0740
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0740
+ * @tc.desc FrameNode支持设置borderWidth
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0740', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0740 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0740");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0740 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1790
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1790
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置borderWidth
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1790', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1790 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1790");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1790 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0630
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0630
+ * @tc.desc FrameNode支持设置brightness
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0630', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0630 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0630");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0630 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1680
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1680
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置brightness
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1680', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1680 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1680");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1680 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0340
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0340
+ * @tc.desc FrameNode支持设置clickEffect
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0340', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0340 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0340");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0340 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1390
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1390
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置clickEffect
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1390', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1390 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1390");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1390 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1310
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1310
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置clip
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1310 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1310");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1310 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0260
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0260
+ * @tc.desc FrameNode支持设置clip
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0260 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0260");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0260 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0600
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0600
+ * @tc.desc FrameNode支持设置colorBlend
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0600', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0600 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0600");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0600 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1650
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1650
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置colorBlend
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1650', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1650 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1650");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1650 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0140
+ * @tc.desc FrameNode支持设置CommonAttribute
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0140 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0140");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0140 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1190
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1190
+ * @tc.desc FrameNode支持设置CommonAttribute
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1190 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1190");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1190 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1890
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1890
+ * @tc.desc FrameNode支持设置CommonAttribute
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1890', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1890 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1890");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1890 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0840
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0840
+ * @tc.desc FrameNode支持设置CommonAttribute
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0840', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0840 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0840");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0840 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1670
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1670
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置contrast
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1670', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1670 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1670");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1670 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0620
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0620
+ * @tc.desc FrameNode支持设置contrast
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0620', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0620 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0620");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0620 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0670
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0670
+ * @tc.desc FrameNode支持设置defaultFocus
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0670', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0670 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0670");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0670 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1720
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1720
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置defaultFocus
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1720', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1720 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1720");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1720 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0420
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0420
+ * @tc.desc FrameNode支持设置direction
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0420', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0420 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0420");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0420 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1470
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1470
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置direction
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1470', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1470 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1470");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1470 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0450
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0450
+ * @tc.desc FrameNode支持设置displayPriority
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0450', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0450 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0450");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0450 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1500
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1500
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置displayPriority
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1500', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1500 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1500");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1500 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1370
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1370
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置draggable
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1370', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1370 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1370");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1370 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0320
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0320
+ * @tc.desc FrameNode支持设置draggable
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0320', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0320 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0320");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0320 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0080
+ * @tc.desc FrameNode支持设置dragPreviewOptions
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0080 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0080 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1130
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1130
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置dragPreviewOptions
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1130 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1130");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1130 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1420
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1420
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置enabled
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1420', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1420 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1420");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1420 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0370
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0370
+ * @tc.desc FrameNode支持设置enabled
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0370', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0370 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0370");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0370 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1920
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1920
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置expandSafeArea
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1920', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1920 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1920");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1920 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0870
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0870
+ * @tc.desc FrameNode支持设置expandSafeArea
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0870', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0870 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0870");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0870 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0470
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0470
+ * @tc.desc FrameNode支持设置flexBasis
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0470', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0470 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0470");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0470 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1520
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1520
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置flexBasis
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1520', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1520 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1520");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1520 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1540
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1540
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置flexGrow
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1540', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1540 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1540");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1540 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0490
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0490
+ * @tc.desc FrameNode支持设置flexGrow
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0490', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0490 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0490");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0490 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0480
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0480
+ * @tc.desc FrameNode支持设置flexShrink
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0480', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0480 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0480");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0480 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1530
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1530
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置flexShrink
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1530', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1530 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1530");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1530 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0690
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0690
+ * @tc.desc FrameNode支持设置focusable
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0690', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0690 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0690");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0690 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1740
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1740
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置focusable
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1740', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1740 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1740");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1740 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0650
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0650
+ * @tc.desc FrameNode支持设置focusOnTouch
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0650', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0650 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0650");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0650 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1700
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1700
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置focusOnTouch
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1700', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1700 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1700");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1700 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0770
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0770
+ * @tc.desc FrameNode支持设置foregroundBlurStyle
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0770', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0770 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0770");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0770 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1820
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1820
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置foregroundBlurStyle
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1820', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1820 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1820");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1820 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0710
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0710
+ * @tc.desc FrameNode支持设置foregroundColor
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0710', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0710 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0710");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0710 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1760
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1760
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置foregroundColor
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1760', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1760 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1760");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1760 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0230
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0230
+ * @tc.desc FrameNode支持设置geometryTransition
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0230 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0230");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0230 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1280
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1280
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置geometryTransition
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1280 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1280");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1280 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1660
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1660
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置grayscale
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1660', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1660 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1660");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1660 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0610
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0610
+ * @tc.desc FrameNode支持设置grayscale
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0610', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0610 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0610");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0610 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0520
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0520
+ * @tc.desc FrameNode支持设置gridOffset
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0520', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0520 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0520");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0520 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1570
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1570
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置gridOffset
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1570', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1570 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1570");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1570 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1580
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1580
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置gridSpan
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1580', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1580 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1580");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1580 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0530
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0530
+ * @tc.desc FrameNode支持设置gridSpan
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0530', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0530 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0530");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0530 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0660
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0660
+ * @tc.desc FrameNode支持设置groupDefaultFocus
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0660', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0660 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0660");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0660 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1710
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1710
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置groupDefaultFocus
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1710', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1710 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1710");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1710 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1930
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1930
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置height
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1930', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1930 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1930");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1930 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0880
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0880
+ * @tc.desc FrameNode支持设置height
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0880', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0880 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0880");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0880 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1880
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1880
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置hitTestBehavior
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1880', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1880 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1880");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('UIComponentSpecialComponentsFrameNodeAttributeInterface1880_001'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1880 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0830
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0830
+ * @tc.desc FrameNode支持设置hitTestBehavior
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0830', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0830 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0830");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('UIComponentSpecialComponentsFrameNodeAttributeInterface0830_001'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0830 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0700
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0700
+ * @tc.desc FrameNode支持设置hoverEffect
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0700', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0700 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0700");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('UIComponentSpecialComponentsFrameNodeAttributeInterface0700_001'));
+ const point = await button.getBoundsCenter();
+ await driver.mouseMoveTo(point)
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0700 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1750
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1750
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置hoverEffect
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1750', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1750 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1750");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('UIComponentSpecialComponentsFrameNodeAttributeInterface1750_001'));
+ const point = await button.getBoundsCenter();
+ await driver.mouseMoveTo(point)
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1750 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0570
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0570
+ * @tc.desc FrameNode支持设置hueRotate
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0570', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0570 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0570");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0570 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1620
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1620
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置hueRotate
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1620', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1620 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1620");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1620 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1290
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1290
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置id
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1290', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1290 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1290");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1290 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0240
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0240
+ * @tc.desc FrameNode支持设置id
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0240 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0240");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0240 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1170
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1170
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置invert
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1170', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1170 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1170");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1170 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0120
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0120
+ * @tc.desc FrameNode支持设置invert
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0120 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0120");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0120 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2090
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2090
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置key
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2090 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface2090");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2090 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1040
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1040
+ * @tc.desc FrameNode支持设置key
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1040 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1870
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1870
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置layoutWeight
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1870', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1870 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1870");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1870 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0820
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0820
+ * @tc.desc FrameNode支持设置layoutWeight
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0820', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0820 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0820");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0820 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1010 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface101")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1010 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0540', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0540 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface054")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0540 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0850', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0850 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface085")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0850 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1590', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1590 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface159")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1590 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1900', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1900 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface190")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1900 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1440', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1440 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface144")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1440 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0390', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0390 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface039")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0390 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1330', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1330 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface133")
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const button133 = await driver.findComponent(ON.id('button133'));
+ await Utils.sleep(500);
+ await button133.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1330 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0280 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface028")
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const button028 = await driver.findComponent(ON.id('button028'));
+ await Utils.sleep(500);
+ await button028.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0280 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1480', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1480 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface148")
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const click148 = await driver.findComponent(ON.id('click148'));
+ await Utils.sleep(500);
+ await click148.click();
+ await Utils.sleep(4000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1480 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0430', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0430 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface043")
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const click043 = await driver.findComponent(ON.id('click043'));
+ await Utils.sleep(1000);
+ await click043.click();
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0430 finish.`);
+ done();
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface006")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0060 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1110 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface111")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1110 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1080 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface108")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1080 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface003")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0030 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0300', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0300 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface030")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0300 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1350', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1350 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface135")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1350 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface005")
+ await Utils.sleep(500)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0050 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1100 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface110")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1100 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0010 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface001")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0010 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1060 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface106")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1060 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0440', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0440 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface044")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0440 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1490', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1490 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface149")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1490 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0970', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0970 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface097")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0970 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2020 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface202")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2020 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1450', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1450 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface145")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1450 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1210 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface121")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1210 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0160 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface016")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0160 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0400', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0400 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface040")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0400 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1730', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1730 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface173")
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ driver.triggerKey(2049)
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1730 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0680', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0680 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface068")
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ driver.triggerKey(2049)
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0680 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1180 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface118")
+ await Utils.sleep(1000);
+ const driver = Driver.create();
+ const click118 = await driver.findComponent(ON.id('click118'));
+ await Utils.sleep(1000);
+ await click118.click();
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1180 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1610', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1610 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface161")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1610 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0560', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0560 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface056")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0560 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1910', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1910 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface191")
+ await Utils.sleep(1000)
+ const driver = Driver.create();
+ let tabsCenter:Component = await driver.findComponent(ON.id('click191'));
+ let pos = await tabsCenter.getBoundsCenter()
+ await driver.click(pos.x-100,pos.y);
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1910 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0990', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0990 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface099")
+ await Utils.sleep(1000)
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0990 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1260 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1260")
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_W); //绑定 CTRL+W 快捷键
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1260 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0210
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0210
+ * @tc.desc 创建命令式节点FrameNode,绑定keyboardShortcut属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0210 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0210");
+ let driver = Driver.create();
+ await Utils.sleep(1000);
+ console.log("zxx triggerCombineKeys CTRL+W ")
+ await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_W); //绑定 CTRL+W 快捷键
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0210 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0590
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0590
+ * @tc.desc 创建FrameNode,绑定saturate属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0590', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0590 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface059");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0590 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1640
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1640
+ * @tc.desc 创建FrameNode,绑定节点设置saturate属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1640', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1640 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface164");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1640 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0410
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0410
+ * @tc.desc 创建FrameNode,绑定align属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0410', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0410 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface041");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0410 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1460
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1460
+ * @tc.desc 创建FrameNode,绑定节点设置align属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1460', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1460 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface146");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1460 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1410
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1410
+ * @tc.desc 创建FrameNode,绑定节点设置alignRules属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1410', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1410 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface141");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1410 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0360
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0360
+ * @tc.desc 创建FrameNode,设置alignRules属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0360', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0360 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface036");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0360 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0460
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0460
+ * @tc.desc 创建FrameNode,设置alignSelf属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0460', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0460 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface046");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0460 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1510
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1510
+ * @tc.desc 创建FrameNode,绑定节点设置alignSelf属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1510', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1510 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface151");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1510 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1400
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1400
+ * @tc.desc 创建FrameNode,绑定节点设置aspectRatio属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1400', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1400 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface140");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1400 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0350
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0350
+ * @tc.desc 创建FrameNode,设置aspectRatio属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0350', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0350 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface035");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0350 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0090
+ * @tc.desc 创建FrameNode,设置backdropBlur属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0090 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface009");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0090 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1140
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1140
+ * @tc.desc 创建FrameNode,绑定节点设置backdropBlur属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1140 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface114");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1140 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1830
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1830
+ * @tc.desc 创建FrameNode,绑定节点设置backgroundBlurStyle属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1830', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1830 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface183");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1830 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0780
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0780
+ * @tc.desc 创建FrameNode,设置backgroundBlurStyle属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0780', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0780 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface078");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0780 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0070
+ * @tc.desc 创建FrameNode,设置backgroundBrightness属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface007");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0070 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1120
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1120
+ * @tc.desc 创建FrameNode,绑定节点设置backgroundBrightness属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1120 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface112");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1120 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2050
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2050
+ * @tc.desc 创建FrameNode,绑定节点设置backgroundColor属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2050 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface205");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2050 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1000
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1000
+ * @tc.desc 创建FrameNode,设置backgroundColor属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1000', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1000 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface100");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1000 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0110
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0110
+ * @tc.desc 创建FrameNode,设置backgroundEffect属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0110 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface011");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0110 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1160
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1160
+ * @tc.desc 创建FrameNode,绑定节点设置backgroundEffect属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1160 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface116");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1160 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1860
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1860
+ * @tc.desc 创建FrameNode,绑定节点设置backgroundImage属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1860', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1860 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface186");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1860 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0810
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0810
+ * @tc.desc 创建FrameNode,设置backgroundImage属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0810', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0810 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface081");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0810 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0790
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0790
+ * @tc.desc 创建FrameNode,设置backgroundImagePosition属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0790', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0790 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface079");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0790 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1840
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1840
+ * @tc.desc 创建FrameNode,绑定节点设置backgroundImagePosition属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1840', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1840 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface184");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1840 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0800
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0800
+ * @tc.desc 创建FrameNode,设置backgroundImageSize属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0800', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0800 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface080");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0800 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1850
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1850
+ * @tc.desc 创建FrameNode,绑定节点设置backgroundImageSize属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1850', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1850 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface185");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1850 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2080
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2080
+ * @tc.desc 创建FrameNode,绑定节点设置blendMode属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2080 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface208");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2080 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1030
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1030
+ * @tc.desc 创建FrameNode,设置blendMode属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1030 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface103");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1030 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1150
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1150
+ * @tc.desc 创建FrameNode,绑定节点设置blur属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1150 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface115");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1150 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0100
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0100
+ * @tc.desc 创建FrameNode,设置blur属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0100 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface010");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0100 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0760
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0760
+ * @tc.desc 创建FrameNode,设置border属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0760', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0760 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface076");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0760 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1810
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1810
+ * @tc.desc 创建FrameNode,绑定节点设置border属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1810', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1810 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface181");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1810 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1780
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1780
+ * @tc.desc 创建FrameNode,绑定节点设置borderColor属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1780', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1780 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface178");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1780 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0730
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0730
+ * @tc.desc 创建FrameNode,设置borderColor属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0730', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0730 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface073");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0730 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1770
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1770
+ * @tc.desc 创建FrameNode,绑定节点设置borderImage属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1770', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1770 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface177");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1770 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0720
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0720
+ * @tc.desc 创建FrameNode,设置borderImage属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0720', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0720 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface072");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0720 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1380
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1380
+ * @tc.desc 创建FrameNode,绑定节点设置allowDrop属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1380', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1380 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface138");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(500);
+ let component = await driver.findComponent(ON.id("UIComponentSpecialComponentsFrameNodeAttributeInterface138_001"));
+ let textArea = await driver.findComponent(ON.id('UIComponentSpecialComponentsFrameNodeAttributeInterface138_002'));
+ await Utils.sleep(1000);
+ await component.longClick();
+ await Utils.sleep(1000);
+ await component.dragTo(textArea)
+ await Utils.sleep(500);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1380 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0330
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0330
+ * @tc.desc 创建FrameNode,设置allowDrop属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0330', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0330 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface033");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(500);
+ let component = await driver.findComponent(ON.id("UIComponentSpecialComponentsFrameNodeAttributeInterface033_001"));
+ let textArea = await driver.findComponent(ON.id('UIComponentSpecialComponentsFrameNodeAttributeInterface033_002'));
+ await Utils.sleep(1000);
+ await component.longClick();
+ await Utils.sleep(1000);
+ await component.dragTo(textArea)
+ await Utils.sleep(500);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0330 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1230
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1230
+ * @tc.desc 创建FrameNode,绑定节点设置accessibilityDescription属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1230 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface123");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ let strJson = getInspectorByKey('UIComponentSpecialComponentsFrameNodeAttributeInterface123_001')
+ Logger.info('TEST', "JSON.parse(strJson).$attrs.accessibilityDescription is: " + JSON.parse(strJson).$attrs.accessibilityDescription);
+ expect(JSON.parse(strJson).$attrs.accessibilityDescription).assertEqual('accessibilityDescription');
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1230 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0180
+ * @tc.desc 创建FrameNode,设置accessibilityDescription属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0180 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface018");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ let strJson = getInspectorByKey('UIComponentSpecialComponentsFrameNodeAttributeInterface018_001')
+ Logger.info('TEST', "JSON.parse(strJson).$attrs.accessibilityDescription is: " + JSON.parse(strJson).$attrs.accessibilityDescription);
+ expect(JSON.parse(strJson).$attrs.accessibilityDescription).assertEqual('accessibilityDescription');
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0180 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0200
+ * @tc.desc 创建FrameNode,设置accessibilityGroup属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0200', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0200 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface020");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ let strJson = getInspectorByKey('UIComponentSpecialComponentsFrameNodeAttributeInterface020_001')
+ Logger.info('TEST', "JSON.parse(strJson).$attrs.accessibilityGroup is: " + JSON.parse(strJson).$attrs.accessibilityGroup);
+ expect(JSON.parse(strJson).$attrs.accessibilityGroup).assertEqual(true);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0200 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1250
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1250
+ * @tc.desc 创建FrameNode,绑定节点设置accessibilityGroup属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1250 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface125");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ let strJson = getInspectorByKey('UIComponentSpecialComponentsFrameNodeAttributeInterface125_001')
+ Logger.info('TEST', "JSON.parse(strJson).$attrs.accessibilityGroup is: " + JSON.parse(strJson).$attrs.accessibilityGroup);
+ expect(JSON.parse(strJson).$attrs.accessibilityGroup).assertEqual(true);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1250 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0170
+ * @tc.desc 创建FrameNode,设置accessibilityLevel属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0170', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0170 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface017");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ let strJson = getInspectorByKey('UIComponentSpecialComponentsFrameNodeAttributeInterface017_001')
+ Logger.info('TEST', "JSON.parse(strJson).$attrs.accessibilityLevel is: " + JSON.parse(strJson).$attrs.accessibilityLevel);
+ expect(JSON.parse(strJson).$attrs.accessibilityLevel).assertEqual('yes');
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0170 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1220
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1220
+ * @tc.desc 创建FrameNode,绑定节点设置accessibilityLevel属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1220', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1220 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface122");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ let strJson = getInspectorByKey('UIComponentSpecialComponentsFrameNodeAttributeInterface122_001')
+ Logger.info('TEST', "JSON.parse(strJson).$attrs.accessibilityLevel is: " + JSON.parse(strJson).$attrs.accessibilityLevel);
+ expect(JSON.parse(strJson).$attrs.accessibilityLevel).assertEqual('yes');
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1220 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0190
+ * @tc.desc 创建FrameNode,设置accessibilityText属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0190 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface019");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ let strJson = getInspectorByKey('UIComponentSpecialComponentsFrameNodeAttributeInterface019_001')
+ Logger.info('TEST', "JSON.parse(strJson).$attrs.accessibilityText is: " + JSON.parse(strJson).$attrs.accessibilityText);
+ expect(JSON.parse(strJson).$attrs.accessibilityText).assertEqual('accessibilityText');
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0190 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1240
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1240
+ * @tc.desc 创建FrameNode,绑定节点设置accessibilityText属性
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1240 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface124");
+ await Utils.sleep(2000)
+ await windowSnap.snapShot()
+ await Utils.sleep(2000)
+ let strJson = getInspectorByKey('UIComponentSpecialComponentsFrameNodeAttributeInterface124_001')
+ Logger.info('TEST', "JSON.parse(strJson).$attrs.accessibilityText is: " + JSON.parse(strJson).$attrs.accessibilityText);
+ expect(JSON.parse(strJson).$attrs.accessibilityText).assertEqual('accessibilityText');
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1240 finish.`);
+ done()
+ })
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0860
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0860
+ * @tc.desc FrameNode支持设置responseRegion
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0860', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0860 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0860");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFrameNodeAttributeInterface0860"));
+ await SliderCom.click();
+ await driver.delayMs(600);
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0860 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0550
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0550
+ * @tc.desc FrameNode支持设置translate
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0550', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0550 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0550");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFrameNodeAttributeInterface0550"));
+ await SliderCom.click();
+ await driver.delayMs(600);
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0550 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1600
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1600
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置translate
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1600', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1600 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1600");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFrameNodeAttributeInterface1600"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1600 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0150
+ * @tc.desc FrameNode支持设置renderFit
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0150 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0150");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFrameNodeAttributeInterface0150"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0150 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1200
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1200
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置renderFit
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1200', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1200 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1200");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFrameNodeAttributeInterface1200"));
+ await SliderCom.click();
+ await driver.delayMs(600);
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1200 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1560
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1560
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置rotate
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1560', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1560 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1560");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFrameNodeAttributeInterface1560"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1560 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0510
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0510
+ * @tc.desc FrameNode支持设置rotate
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0510', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0510 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0510");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFrameNodeAttributeInterface0510"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0510 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1430
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1430
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置offset
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1430', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1430 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1430");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFrameNodeAttributeInterface1430"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1430 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0380
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0380
+ * @tc.desc FrameNode支持设置offset
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0380', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0380 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0380");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFrameNodeAttributeInterface0380"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0380 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0940
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0940
+ * @tc.desc FrameNode支持设置inearGradientBlur
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0940', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0940 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0940");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFrameNodeAttributeInterface0940"));
+ await SliderCom.click();
+ await driver.delayMs(600);
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0940 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1990
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1990
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置linearGradientBlur
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1990', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1990 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1990");
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1990 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1320
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1320
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置shadow
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1320', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1320 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1320");
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1320 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0960
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0960
+ * @tc.desc FrameNode支持设置linearGradient
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0960', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UILCOMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0960 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0960");
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UILCOMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0960 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2010
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2010
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置linearGradient
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2010 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface2010");
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2010 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0270
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0270
+ * @tc.desc FrameNode支持设置shadow
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0270 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0270");
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0270 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1690
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1690
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置transition
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1690', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1690 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1690");
+ await Utils.sleep(3000);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1690 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0640
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0640
+ * @tc.desc FrameNode支持设置transition
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0640', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0640 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0640");
+ await Utils.sleep(3000);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0640 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0930
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0930
+ * @tc.desc FrameNode支持设置pixelStretchEffect
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0930', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0930 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0930");
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0930 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1980
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1980
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置pixelStretchEffect
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1980', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1980 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1980");
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1980 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1550
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1550
+ * @tc.desc FrameNode通过查询获得的声明式节点支持设置transform
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1550', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1550 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1550");
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1550 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0500
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0500
+ * @tc.desc FrameNode支持设置translate
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0500', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0500 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0500");
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0500 finish.`);
+ done();
+ })
+
+
+ //////
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0020
+ * @tc.desc 设置的outlineRadius属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0020 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0020 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0040
+ * @tc.desc 设置的outlineWidth属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0040");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0040 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0250
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0250
+ * @tc.desc 设置的mask属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0250 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0250");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0250 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0290
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0290
+ * @tc.desc 设置的radialGradient属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0290', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0290 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0290");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0290 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0310
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0310
+ * @tc.desc 设置的overlay属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0310 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0310");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0310 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0580
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0580
+ * @tc.desc 设置的sepia属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0580', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0580 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0580");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0580 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0890
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0890
+ * @tc.desc 设置的width属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0890', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0890 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0890");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0890 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0910
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0910
+ * @tc.desc 设置的sphericalEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0910', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0910 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0910");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0910 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0920
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0920
+ * @tc.desc 设置的lightUpEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0920', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0920 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface0920");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_0920 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1020
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1020
+ * @tc.desc 设置的padding属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1020 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1020");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1020 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1070
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1070
+ * @tc.desc 设置的outlineRadius属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1070 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1070 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1090
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1090
+ * @tc.desc 设置的outlineWidth属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1090 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1090");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1090 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1300
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1300
+ * @tc.desc 设置的mask属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1300', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1300 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1300");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1300 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1340
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1340
+ * @tc.desc 设置的radialGradient属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1340', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1340 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1340");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1340 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1360
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1360
+ * @tc.desc 设置的overlay属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1360', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1360 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1360");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1360 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1630
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1630
+ * @tc.desc 设置的sepia属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1630', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1630 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1630");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1630 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1940
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1940
+ * @tc.desc 设置的width属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1940', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1940 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1940");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1940 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1950
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1950
+ * @tc.desc 设置的useEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1950', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1950 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1950");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1950 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1960
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1960
+ * @tc.desc 设置的sphericalEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1960', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1960 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1960");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1960 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1970
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1970
+ * @tc.desc 设置的lightUpEffect属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1970', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1970 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface1970");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_1970 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2000
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2000
+ * @tc.desc 设置的useSizeType属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2000', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2000 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface2000");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2000 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2060
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2060
+ * @tc.desc 设置的margin属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2060 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface2060");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2060 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2070
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2070
+ * @tc.desc 设置的padding属性生效
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2070 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeAttributeInterface/UIComponentSpecialComponentsFrameNodeAttributeInterface2070");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_ATTRIBUTE_INTERFACE_2070 finish.`);
+ done();
+ })
+
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ca9e36ee8e78fb81d56cb0a4344d7aa2fd5f9843
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo.test.ets
@@ -0,0 +1,234 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { afterEach, describe, it } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+
+import { Component, Driver, ON } from '@ohos.UiTest'
+
+/*
+ * UIAttributesBackgroundSelfDrawing
+ *
+ * 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 UIComponentSpecialComponentsFrameNodePageInfo() {
+
+ describe('UIComponentSpecialComponentsFrameNodePageInfo', () => {
+ 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_FRAMENODE_PAGEINFO_0010
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0010
+ * @tc.desc : 获取未在Navigation和NavDestination内部的节点的Router和Navigation页面信息
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0010 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo0010");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0010 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0020
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0020
+ * @tc.desc : 获取在Navigation内部的节点的Router和Navigation页面信息
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0020 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo0020");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0020 finish.`);
+ done();
+ })
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0030
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0030
+ * @tc.desc : 带取在Navigation和NavDestination内部的节点的Router和Navigation页面信息
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo0030");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0030 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0040
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0040
+ * @tc.desc : 获取在CustomDialog内部的节点的Router和Navigation页面信息
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo0040");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.text('click'));
+ await button.click()
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0040 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0050
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0050
+ * @tc.desc : 获取在bindSheet内部的节点的Router和Navigation页面信息
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo0050");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.text('bindSheet'));
+ await button.click()
+ await Utils.sleep(1500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0050 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0060
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0060
+ * @tc.desc : 获取在bindContentCover内部的节点的Router和Navigation页面信息
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo0060");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let bindContentCover: Component = await driver.findComponent(ON.text('bindContentCover'));
+ await bindContentCover.click()
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0070
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0070
+ * @tc.desc : 获取在模态弹窗的Navigation和NavDestination内部的节点的Router和Navigation页面信息
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo0070");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let bindContentCover: Component = await driver.findComponent(ON.text('CustomDialog'));
+ await bindContentCover.click()
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0070 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0080
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0080
+ * @tc.desc : 获取在Navigation嵌套的子Navigation内部的节点的Router和Navigation页面信息
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0080 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo0080");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0080 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0090
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0090
+ * @tc.desc : 获取在Navigation嵌套的子Navigation中的NavDestination内部的节点的Router和Navigation页面信息
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0090 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo0090");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0090 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0100
+ * @tc.name : SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0100
+ * @tc.desc : 获取在Navigation与Router混用后跳转页面的内部的节点的Router和Navigation页面信息
+ */
+ it('SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0100 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodePageInfoTest/UIComponentSpecialComponentsFrameNodePageInfo0100");
+ await Utils.sleep(1000);
+
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let router: Component = await driver.findComponent(ON.id('Router'));
+ await router.click()
+ await Utils.sleep(2000);
+
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_FRAMENODE_PAGEINFO_0100 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsFrameNodeTextureXportTest/UIComponentSpecialComponentsFrameNodeTextureXport.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsFrameNodeTextureXportTest/UIComponentSpecialComponentsFrameNodeTextureXport.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f8b365b41874d5d3d321711ca315c773af66c9ee
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsFrameNodeTextureXportTest/UIComponentSpecialComponentsFrameNodeTextureXport.test.ets
@@ -0,0 +1,1279 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License")
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, afterEach, it } from "@ohos/hypium"
+import Settings from "../model/Settings"
+import windowSnap from "../model/snapShot"
+import Logger from "../model/Logger"
+import Utils from "../model/Utils"
+import { Driver, ON, Component } from "@kit.TestKit"
+
+export default function UIComponentSpecialComponentsFrameNodeTextureXportTest() {
+
+ describe("UIComponentSpecialComponentsFrameNodeTextureXportTest", () => {
+ 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(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0160
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0160', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0160")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0020
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0020")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0180
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0180")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0140
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0140', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0140")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0170
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0170
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0170")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0010
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0010
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0010', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0010")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0200
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0200', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0200")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0210
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0210
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0210', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0210")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0240
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0240
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0240', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0240")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0260
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0260
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0260', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0260")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0280
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0280
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0280', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0280")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0290
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0290
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0290', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0290")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0300
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0300
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0300', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0300")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0320
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0320
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0320', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0320")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0330
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0330
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0330', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0330")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0340
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0340
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0340', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0340")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0400
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0400
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0400', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0400")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0410
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0410
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0410', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0410")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0420
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0420
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0420', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0420")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0450
+ * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0450
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0450', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTextureXport0450")
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let render_type_display: Component = await driver.findComponent(ON.id('render_type_display'));
+ await render_type_display.click();
+ await Utils.sleep(1000);
+ await driver.swipe(200, 700, 200, 550, 10000);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060
+ * @tc.name : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060
+ * @tc.desc : CanvasRenderingContext2D组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0060");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('render_type_display'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(1000);
+ let scroller1 = await driver.findComponent(ON.id('scroller1'));
+ await Utils.sleep(200);
+ await scroller1.scrollToBottom(1500);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0110
+ * @tc.name : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0110
+ * @tc.desc : ColumnSplit组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0110 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0110");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('render_type_display'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(1000);
+ let scroller1 = await driver.findComponent(ON.id('scroller1'));
+ await Utils.sleep(200);
+ await scroller1.scrollToBottom(1500);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 finish.`);
+ done();
+ })
+
+
+ /*
+ * @tc.number : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0120
+ * @tc.name : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0120
+ * @tc.desc : Column组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0120");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('render_type_display'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(1000);
+ let scroller1 = await driver.findComponent(ON.id('scroller1'));
+ await Utils.sleep(200);
+ await scroller1.scrollToBottom(1500);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0130
+ * @tc.name : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0130
+ * @tc.desc : ContainerSpan组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0130 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0130");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('render_type_display'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(1000);
+ let scroller1 = await driver.findComponent(ON.id('scroller1'));
+ await Utils.sleep(200);
+ await scroller1.scrollToBottom(1500);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0150
+ * @tc.name : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0150
+ * @tc.desc : DataPanel组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0150 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0150");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('render_type_display'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(1000);
+ let scroller1 = await driver.findComponent(ON.id('scroller1'));
+ await Utils.sleep(200);
+ await scroller1.scrollToBottom(1500);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0220
+ * @tc.name : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0220
+ * @tc.desc : ImageData组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0220', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0220 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0220");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('render_type_display'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(1000);
+ let scroller1 = await driver.findComponent(ON.id('scroller1'));
+ await Utils.sleep(200);
+ await scroller1.scrollToBottom(1500);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0230
+ * @tc.name : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0230
+ * @tc.desc : Image组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0230', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0230 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0230");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('render_type_display'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(1000);
+ let scroller1 = await driver.findComponent(ON.id('scroller1'));
+ await Utils.sleep(200);
+ await scroller1.scrollToBottom(1500);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0250
+ * @tc.name : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0250
+ * @tc.desc : LoadingProgress组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0250 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0250");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('render_type_display'));
+ await button.click();
+ await Utils.sleep(500);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let scroller1 = await driver.findComponent(ON.id('scroller1'));
+ await Utils.sleep(200);
+ await scroller1.scrollToBottom(1500);
+ await Utils.sleep(2000);
+ let btn1 = await driver.findComponent(ON.id('UIComponentSpecialComponentsFrameNodeTexetureExport0250_btn1'));
+ await btn1.click();
+ await Utils.sleep(2000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0270
+ * @tc.name : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0270
+ * @tc.desc : Matrix2D组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0270 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0270");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('render_type_display'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(1000);
+ let scroller1 = await driver.findComponent(ON.id('scroller1'));
+ await Utils.sleep(200);
+ await scroller1.scrollToBottom(1500);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0310
+ * @tc.name : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0310
+ * @tc.desc : Path组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0310 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0310");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('render_type_display'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(1000);
+ let scroller1 = await driver.findComponent(ON.id('scroller1'));
+ await Utils.sleep(200);
+ await scroller1.scrollToBottom(1500);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0360
+ * @tc.name : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0360
+ * @tc.desc : QRCode组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0360', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0360 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0360");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('render_type_display'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(1000);
+ let scroller1 = await driver.findComponent(ON.id('scroller1'));
+ await Utils.sleep(200);
+ await scroller1.scrollToBottom(1500);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0380
+ * @tc.name : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0380
+ * @tc.desc : Rating组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0380', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0380 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0380");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('render_type_display'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(1000);
+ let scroller1 = await driver.findComponent(ON.id('scroller1'));
+ await Utils.sleep(200);
+ await scroller1.scrollToBottom(1500);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 finish.`);
+ done();
+ })
+
+ /*
+ * @tc.number : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0390
+ * @tc.name : SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0390
+ * @tc.desc : Rect组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0390', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0390 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0390");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(200);
+ let button: Component = await driver.findComponent(ON.id('render_type_display'));
+ await Utils.sleep(500);
+ await button.click();
+ await Utils.sleep(1000);
+ let scroller1 = await driver.findComponent(ON.id('scroller1'));
+ await Utils.sleep(200);
+ await scroller1.scrollToBottom(1500);
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0060 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0350
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0350
+ * @tc.desc: Progress组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0350', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0350 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0350");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export035_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export035_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0350 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0370
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0370
+ * @tc.desc: Radio组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0370', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0370 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0370");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export037_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export037_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0370 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0440
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0440
+ * @tc.desc: Slider组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0440', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0440 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0440");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export044_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export044_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0440 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0520
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0520
+ * @tc.desc: Toggle组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0520', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0520 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0520");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export052_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export052_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0520 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0490
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0490
+ * @tc.desc: TextInput组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0490', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0490 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0490");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export049_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export049_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0490 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0460
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0460
+ * @tc.desc: Stack组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0460', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0460 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0460");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export046_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export046_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0460 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0470
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0470
+ * @tc.desc: TextArea组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0470', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0470 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0470");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export047_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export047_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0470 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0430
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0430
+ * @tc.desc: Shape组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0430', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0430 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0430");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export043_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export043_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0430 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0510
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0510
+ * @tc.desc: Text组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0510', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0510 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0510");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export051_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export051_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0510 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0090
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0090
+ * @tc.desc: CheckBox组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0090 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0090");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export009_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export009_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0090 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0480
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0480
+ * @tc.desc: TextClock组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0480', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0480 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0480");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export048_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export048_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0480 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0080
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0080
+ * @tc.desc: CheckboxGroup组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0080 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0080");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export008_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export008_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0080 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0500
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0500
+ * @tc.desc: TextTimer组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0500', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0500 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0500");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export050_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export050_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0500 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0030
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0030
+ * @tc.desc: Button组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0030 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0030");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export003_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export003_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0030 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0530
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0530
+ * @tc.desc: Video组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0530', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0530 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0530");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export053_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export053_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0530 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0070
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0070
+ * @tc.desc: Canvas组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0070 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0070");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export007_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export007_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0070 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0540
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0540
+ * @tc.desc: Web组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0540', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0540 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0540");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export054_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export054_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0540 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0040
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0040
+ * @tc.desc: CanvasGradient组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0040 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0040");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export004_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export004_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0040 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0190
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0190
+ * @tc.desc: Gauge组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0190 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0190");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export019_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export019_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0190 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0100
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0100
+ * @tc.desc: Circle组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0100 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0100");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export010_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export010_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0100 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0560
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0560
+ * @tc.desc: 自定义组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0560', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0560 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0560");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export056_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export056_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0560 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0050
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0050
+ * @tc.desc: CanvasPattern组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0050 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0050");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export005_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export005_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0050 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0550
+ * @tc.name: SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0550
+ * @tc.desc: XComponent组件Framenode纹理导出界面规格确认
+ */
+ it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0550', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0550 start.`);
+ Settings.createWindow("testability/pages/UIComponentSpecialComponentsFrameNodeTextureXport/UIComponentSpecialComponentsFrameNodeTexetureExport0550");
+ await Utils.sleep(1000)
+ let driver: Driver = Driver.create()
+ let btn: Component = await driver.findComponent(ON.id('export055_button'));
+ let scroll: Component = await driver.findComponent(ON.id('export055_scroll'));
+ await Utils.sleep(1000)
+ await btn.click()
+ await Utils.sleep(1000);
+ await scroll.scrollToBottom(1000);
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FRAMENODE_TEXETUREEXPORT_0550 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIFrameNodeMeasureAndLayoutTest/UIFrameNodeMeasureAndLayout.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIFrameNodeMeasureAndLayoutTest/UIFrameNodeMeasureAndLayout.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c98b855146a1e8fb1c579fadfe66b20c21cbded7
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIFrameNodeMeasureAndLayoutTest/UIFrameNodeMeasureAndLayout.test.ets
@@ -0,0 +1,434 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { afterEach, describe, it } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+import { Driver, ON, Component} from '@kit.TestKit'
+
+/*
+ * UIFrameNodeMeasureAndLayout
+ *
+ * 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 UIFrameNodeMeasureAndLayout() {
+
+ describe('UIFrameNodeMeasureAndLayout', () => {
+ 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_FRAMENODE_MEASUREANDLAYOUT_0030
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0030
+ * @tc.desc FrameNode节点重写onMeasure方法可以对子节点进行设置
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0030");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0010
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0010
+ * @tc.desc 组件布局为重写onMeasure后调用setMeasureSize修改的测量信息
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0010 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0010")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0010 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0020
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0020
+ * @tc.desc FrameNode节点重写onMeasure方法可以通过修改constraint参数,调用measure方法修改测量信息
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0020 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0020")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0020'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0020 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0040
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0040
+ * @tc.desc FrameNode节点未重写onMeasure方法可以用measure方法对原生布局进行测量
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0040 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0040")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0040'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0040 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0110
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0110
+ * @tc.desc FrameNode节点重写onLayout方法可以通过调用setLayoutPosition修改测量信息
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0110', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0110 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0110")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0110'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0110 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0130
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0130
+ * @tc.desc FrameNode节点重写onLayout方法可以对子节点进行设置
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0130', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0130 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0130")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0130'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0130 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_ULFRAMENODE_MEASUREANDLAYOUT_0120
+ * @tc.name SUB_ACE_ULFRAMENODE_MEASUREANDLAYOUT_0120
+ * @tc.desc FrameNode节点重写onLayout方法,调用 layout 方法修改布局信息
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0120', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0120 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0120")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0120'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0120 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_ULFRAMENODE_MEASUREANDLAYOUT_0140
+ * @tc.name SUB_ACE_ULFRAMENODE_MEASUREANDLAYOUT_0140
+ * @tc.desc FrameNode节点未重写onLayout方法可以用measure方法对原生布局进行测量
+ */
+ it('SUB_ACE_ULFRAMENODE_MEASUREANDLAYOUT_0140', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_ULFRAMENODE_MEASUREANDLAYOUT_0140 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0140")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0140'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_ULFRAMENODE_MEASUREANDLAYOUT_0140 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0050
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0050
+ * @tc.desc FrameNode节点重写onMeasure方法可以用setMeasuredSize方法将size宽高的值设置为undefined
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0050 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0050")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0050'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0050 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0060
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0060
+ * @tc.desc FrameNode节点重写onMeasure方法可以用setMeasuredSize方法将size宽高的值设置为null
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0060', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0060 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0060")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0060'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0060 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0070
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0070
+ * @tc.desc FrameNode节点重写onMeasure方法可以用setMeasuredSize方法将size宽高的值设置为165
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0070 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0070")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0070'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0070 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0080
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0080
+ * @tc.desc FrameNode节点重写onMeasure方法可以用setMeasuredSize方法将size宽高的值设置为0
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0080 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0080")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0060'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0080 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0090
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0090
+ * @tc.desc FrameNode节点重写onMeasure方法可以用setMeasuredSize方法将size宽高的值设置为0
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0090 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0090")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0090'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0090 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0100
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0100
+ * @tc.desc FrameNode节点重写onMeasure方法可以用setMeasuredSize方法将size宽高的值设置为325.99
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0100 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0100")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0100'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0100 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0150
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0150
+ * @tc.desc FrameNode节点重写onLayout方法可以用setLayoutPosition方法将Position宽高的值设置为undefined
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0150', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0150 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0150")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0150'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0150 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0160
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0160
+ * @tc.desc FrameNode节点重写onLayout方法可以用setLayoutPosition方法将Position宽高的值设置为null
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0160 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0160")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0160'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0160 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0170
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0170
+ * @tc.desc FrameNode节点重写onLayout方法可以用setLayoutPosition方法将Position宽高的值设置为165
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0170', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0170 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0170")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0170'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0170 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0180
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0180
+ * @tc.desc FrameNode节点重写onLayout方法可以用setLayoutPosition方法将Position宽高的值设置为null
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0180 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0180")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0180'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0180 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0190
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0190
+ * @tc.desc FrameNode节点重写onLayout方法可以用setLayoutPosition方法将Position宽高的值设置为null
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0190 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0190")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0190'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0190 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0200
+ * @tc.name SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0200
+ * @tc.desc FrameNode节点重写onLayout方法可以用setLayoutPosition方法将Position宽高的值设置为325.99
+ */
+ it('SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0200', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0200 start.`);
+ Settings.createWindow("testability/pages/UIFrameNodeMeasureAndLayout/UIFrameNodeMeasureAndLayout0200")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('click0200'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_MEASUREANDLAYOUT_0200 finish.`);
+ done()
+ })
+
+ it('SUB_ACE_UI_FRAMENODE_GET_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_GET_0180 start.`);
+ Settings.createWindow("testability/pages/ActionEventCommonEventFrameNode/ActionEventTypeNodeCreateFrameNode4000");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button: Component = await driver.findComponent(ON.id('idBtCreatTextTypeNode'));
+ await Utils.sleep(1000);
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_GET_0180 finish.`);
+ done();
+ })
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIFrameNodeRanderNodeMarkNodeGroupTest/UIFrameNodeRanderNodeMarkNodeGroup.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIFrameNodeRanderNodeMarkNodeGroupTest/UIFrameNodeRanderNodeMarkNodeGroup.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..77877c43859fc659a81d568a86f97d2370f270b8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIFrameNodeRanderNodeMarkNodeGroupTest/UIFrameNodeRanderNodeMarkNodeGroup.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 { afterEach, describe, it } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+import { Driver, Component, ON } from '@kit.TestKit'
+
+/*
+ * UIFrameNodeRanderNodeMarkNodeGroup
+ *
+ * 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 UIFrameNodeRanderNodeMarkNodeGroup() {
+
+ describe('UIFrameNodeRanderNodeMarkNodeGroup', () => {
+ 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_FRAMENODE_RANDERNODE_MARKNODEGROUP_0150
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0150
+ * @tc.desc 使用NodeContainer加载一个FrameNode,并挂载RenderNode,在节点上绘制多个有叠加区域的不同颜色的正方形,
+ * 设置opacity为0.5,设置markNodeGroup为ture
+ */
+ it('SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0150', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIFrameNodeRanderNodeMarkNodeGroup/UIFrameNodeRanderNodeMarkNodeGroup0150");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0170
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0170
+ * @tc.desc 使用NodeContainer加载一个FrameNode,并挂载RenderNode,在节点上绘制两个有叠加区域的不同颜色的正方形,
+ * 设置alpha为100,设置opacity为0.5,设置markNodeGroup为false
+ */
+ it('SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0170', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIFrameNodeRanderNodeMarkNodeGroup/UIFrameNodeRanderNodeMarkNodeGroup0170");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0180
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0180
+ * @tc.desc 使用NodeContainer加载一个FrameNode,并挂载两个RenderNode,在节点上绘制两个有叠加区域的不同颜色的正方形,
+ * 设置opacity的值为0.5,设置其中一个markNodeGroup为false,另一个为true。
+ */
+ it('SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0180', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIFrameNodeRanderNodeMarkNodeGroup/UIFrameNodeRanderNodeMarkNodeGroup0180");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0210
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0210
+ * @tc.desc 使用NodeContainer加载一个FrameNode,并挂载两个RenderNode,两个节点位置重叠,在节点上绘制两个正方形图像,
+ * 设置opacity为0.2,设置上方节点markNodeGroup的值为true,下方节点markNodeGroup的值为false
+ */
+ it('SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0210', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIFrameNodeRanderNodeMarkNodeGroup/UIFrameNodeRanderNodeMarkNodeGroup0210");
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0010
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0010
+ * @tc.desc 使用NodeContainer加载一个FrameNode,并挂载RenderNode,在节点上绘制两个有叠加区域的不同颜色的正方形,设置opacity为0.5,设置markNodeGroup为ture
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0010", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0010 start.");
+ Settings.createWindow("testability/pages/UIFrameNodeRanderNodeMarkNodeGroup/UIFrameNodeRanderNodeMarkNodeGroup0010");
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0010 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0020
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0020
+ * @tc.desc 使用NodeContainer加载一个FrameNode,并挂载RenderNode,在节点上绘制两个有叠加区域的不同颜色的正方形,设置opacity为0.5,设置markNodeGroup为false
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0020", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0020 start.");
+ Settings.createWindow("testability/pages/UIFrameNodeRanderNodeMarkNodeGroup/UIFrameNodeRanderNodeMarkNodeGroup0020");
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0020 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0030
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0030
+ * @tc.desc 使用NodeContainer加载一个FrameNode,并挂载RenderNode,在节点上绘制两个有叠加区域的不同颜色的正方形,设置opacity为0.5,不设置markNodeGroup
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0030", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0030 start.");
+ Settings.createWindow("testability/pages/UIFrameNodeRanderNodeMarkNodeGroup/UIFrameNodeRanderNodeMarkNodeGroup0030");
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0030 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0060
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0060
+ * @tc.desc 使用NodeContainer加载一个FrameNode,并挂载RenderNode,在节点上绘制两个有叠加区域的不同颜色的正方形,不设置opacity,不设置markNodeGroup
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0060", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0060 start.");
+ Settings.createWindow("testability/pages/UIFrameNodeRanderNodeMarkNodeGroup/UIFrameNodeRanderNodeMarkNodeGroup0060");
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0060 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0070
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0070
+ * @tc.desc 使用NodeContainer加载一个FrameNode,并挂载RenderNode,在节点上绘制两个有叠加区域的不同颜色的正方形,不设置opacity,设置markNodeGroup为false
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0070", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0070 start.");
+ Settings.createWindow("testability/pages/UIFrameNodeRanderNodeMarkNodeGroup/UIFrameNodeRanderNodeMarkNodeGroup0070");
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0070 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0080
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0080
+ * @tc.desc 使用NodeContainer加载一个FrameNode,并挂载RenderNode,在节点上绘制两个有叠加区域的不同颜色的正方形,不设置opacity,设置markNodeGroup为true
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0080", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0080 start.");
+ Settings.createWindow("testability/pages/UIFrameNodeRanderNodeMarkNodeGroup/UIFrameNodeRanderNodeMarkNodeGroup0080");
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0080 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0160
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0160
+ * @tc.desc 使用NodeContainer加载一个FrameNode,并挂载RenderNode,在节点上绘制两个有叠加区域的不同颜色的正方形,设置alpha为100,设置opacity为0.5,设置markNodeGroup为ture
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0160", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0160 start.");
+ Settings.createWindow("testability/pages/UIFrameNodeRanderNodeMarkNodeGroup/UIFrameNodeRanderNodeMarkNodeGroup0160");
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0160 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0190
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0190
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0190", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0190 start.");
+ Settings.createWindow("testability/pages/UIFrameNodeRanderNodeMarkNodeGroup/UIFrameNodeRanderNodeMarkNodeGroup0190");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('btn1'));
+ await btn1.click();
+ await Utils.sleep(1000);
+ let btn5: Component = await driver.findComponent(ON.id('btn5'));
+ await btn5.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0190 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0200
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0200
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0200", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0200 start.");
+ Settings.createWindow("testability/pages/UIFrameNodeRanderNodeMarkNodeGroup/UIFrameNodeRanderNodeMarkNodeGroup0200");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ await Utils.sleep(100);
+ let btn1: Component = await driver.findComponent(ON.id('btn1'));
+ await btn1.click();
+ await Utils.sleep(1000);
+ let btn5: Component = await driver.findComponent(ON.id('btn5'));
+ await btn5.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_MARKNODEGROUP_0200 finish.");
+ done();
+ });
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIFramenodeAcquisitionAbilityTest/UIFrameNodeAcquisitionAbility.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIFramenodeAcquisitionAbilityTest/UIFrameNodeAcquisitionAbility.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..15245de1d6036d141e14cbf9a019b65aa163ec76
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIFramenodeAcquisitionAbilityTest/UIFrameNodeAcquisitionAbility.test.ets
@@ -0,0 +1,158 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { afterEach, describe, it } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+import { Driver, ON, Component} from '@kit.TestKit'
+
+/*
+ * UIFrameNodeMeasureAndLayout
+ *
+ * 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 UIFrameNodeAcquisitionAbility() {
+
+ describe('UIFrameNodeAcquisitionAbility', () => {
+ 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_FRAMENODE_ACQUISITION_ABILITY_0020
+ * @tc.name SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0020
+ * @tc.desc 获取自定义组件的Uniqueld
+ */
+ it('SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0020', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIFramenodeAcquisitionAbility/UIFramenodeAcquisitionAbility0020");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0030
+ * @tc.name SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0030
+ * @tc.desc 无渲染属性的自定义组件的Uniqueld获取FrameNode
+ */
+ it('SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0030', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIFramenodeAcquisitionAbility/UIFramenodeAcquisitionAbility0030");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0050
+ * @tc.name SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0050
+ * @tc.desc 不存在的Uniqueld获取FrameNode
+ */
+ it('SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0050', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIFramenodeAcquisitionAbility/UIFramenodeAcquisitionAbility0050");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0060
+ * @tc.name SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0060
+ * @tc.desc 遍历数字获取FrameNode
+ */
+ it('SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0060', 0, async (done: Function) => {
+ Settings.createWindow("testability/pages/UIFramenodeAcquisitionAbility/UIFramenodeAcquisitionAbility0060");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('button'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ done();
+ })
+ /**
+ * @tc.number SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0070
+ * @tc.name SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0070
+ * @tc.desc 未构建状态获取Uniqueld
+ */
+ it('SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0070', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0070 start.`);
+ Settings.createWindow("testability/pages/UIFramenodeAcquisitionAbility/UIFramenodeAcquisitionAbility0070");
+ 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_FRAMENODE_ACQUISITION_ABILITY_0070 finish.`);
+ done();
+ })
+ /**
+ * @tc.number SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0040
+ * @tc.name SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0040
+ * @tc.desc 有渲染属性的自定义组件的Uniqueld获取FrameNode
+ */
+ it('SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_FRAMENODE_ACQUISITION_ABILITY_0070 start.`);
+ Settings.createWindow("testability/pages/UIFramenodeAcquisitionAbility/UIFramenodeAcquisitionAbility0040");
+ 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_FRAMENODE_ACQUISITION_ABILITY_0040 finish.`);
+ done();
+ })
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UILcomponeentGraphicNodecontainerToolchainsTest/UILcomponeentGraphicNodecontainerToolchains.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UILcomponeentGraphicNodecontainerToolchainsTest/UILcomponeentGraphicNodecontainerToolchains.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7ea7c5e743eb719e88d7fa0fea8420d2dadd14f8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UILcomponeentGraphicNodecontainerToolchainsTest/UILcomponeentGraphicNodecontainerToolchains.test.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 { describe, afterEach, it } from '@ohos/hypium'
+import Settings from '../model/Settings'
+import windowSnap from '../model/snapShot'
+import Logger from '../model/Logger'
+import Utils from '../model/Utils'
+import { Driver, ON , Component} from '@kit.TestKit'
+import { KeyCode } from '@kit.InputKit'
+
+
+/*
+ *
+ * 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 UILcomponeentGraphicNodecontainerToolchains() {
+
+ describe('UILcomponeentGraphicNodecontainerToolchains', () => {
+
+ 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();
+ })
+
+ it('SUB_ACE_UILCOMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UILCOMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0020 start.`);
+ Settings.createWindow("testability/pages/UILcomponeentGraphicNodecontainerToolchains/UILcomponeentGraphicNodecontainerToolchains0020")
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UILCOMPONENT_GRAPHIC_NODECONTAINER_TO0LCHAINS_0020 finish.`);
+ done()
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIMotionAnimationImperativepropeTest/UIMotionAnimationImperativeprope.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIMotionAnimationImperativepropeTest/UIMotionAnimationImperativeprope.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fbfeac8c0f1b25427d61256dc0f86bcd570efa17
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIMotionAnimationImperativepropeTest/UIMotionAnimationImperativeprope.test.ets
@@ -0,0 +1,941 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES 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'
+
+
+/*
+ *
+ * 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 UIMotionAnimationImperativeprope() {
+
+ describe('UIMotionAnimationImperativeprope', () => {
+
+ 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_MOTION_ANIMATION_IMPERATIVEPROPE_0010
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0010
+ * @tc.desc 横向放大2倍
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0010', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0010 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0010")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0010 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0020
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0020
+ * @tc.desc 竖向缩小一半
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0020', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0020 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0020")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0020 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0030
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0030
+ * @tc.desc 不缩放
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0030', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0030 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0030")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0030 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0040
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0040
+ * @tc.desc 横向放大2倍,竖向缩小一半
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0040', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0040 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0040")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0040 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0050
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0050
+ * @tc.desc 横向放大2倍,左右翻转
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0050', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0050 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0050")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0050 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0430
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0430
+ * @tc.desc 不透明度为-0.5
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0430', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0430 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0430")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0430 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0450
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0450
+ * @tc.desc 不透明度为0.5
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0450', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0450 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0450")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0450 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0440
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0440
+ * @tc.desc 不透明度为0
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0440', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0440 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0440")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0440 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0460
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0460
+ * @tc.desc 不透明度为1
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0460', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0460 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0460")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0460 finish.`);
+ done()
+ })
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0470
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0470
+ * @tc.desc 不透明度为1.5
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0470', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0470 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0470")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0470 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0510
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0510
+ * @tc.desc position设为x:50y:30
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0510', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0510 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0510")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0510 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0520
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0520
+ * @tc.desc position设为x:-50
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0520', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0520 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0520")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0520 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0530
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0530
+ * @tc.desc position设为x:adhg
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0530', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0530 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0530")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0530 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0540
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0540
+ * @tc.desc position设为x:adhg
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0540', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0540 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0540")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0540 finish.`);
+ done()
+ })
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0500
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0500
+ * @tc.desc position不设置
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0500', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0500 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativeprope0500")
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create()
+ let button: Component = await driver.findComponent(ON.id('buttton'));
+ await button.click();
+ await Utils.sleep(1000);
+ await windowSnap.snapShot()
+ await Utils.sleep(1500)
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0500 finish.`);
+ done()
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0150
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0150
+ * @tc.desc 设置backgroundColor为0XFF00FF00
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0150", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0150 start.");
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope015");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope015"));
+ await button.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0150 finish.");
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0130
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0130
+ * @tc.desc 设置backgroundColor为Color.Red
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0130", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0130 start.");
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope013");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope013"));
+ await button.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0130 finish.");
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0140
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0140
+ * @tc.desc backgroundColor为原值
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0140", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0140 start.");
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope014");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope014"));
+ await button.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0140 finish.");
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0550
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0550
+ * @tc.desc 设置偏移量为{x:0,y:0}
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0550", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0550 start.");
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope055");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("UIMotionAnimationImperativeprope055_button"));
+ await button.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0550 finish.");
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0560
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0560
+ * @tc.desc 设置偏移量为{x:50,y:30}
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0560", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0560 start.");
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope056");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button = await driver.findComponent(ON.id("UIMotionAnimationImperativeprope056_button"));
+ await button.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0560 finish.");
+ done();
+ });
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0080
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0080
+ * @tc.desc rotation的x:10,y:5,z:20
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0080', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0080 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0080");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0080"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0080 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0090
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0090
+ * @tc.desc rotation不设置
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0090', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0090 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0090");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0090"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0090 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0100
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0100
+ * @tc.desc rotation的x-5
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0100', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0100 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0100");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0100"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0100 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0160
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0160
+ * @tc.desc shadowColor设置为red
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0160', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0160 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0160");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0160"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0160 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0170
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0170
+ * @tc.desc shadowColor不设置
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0170', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0170 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0170");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0170"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0170 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0180
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0180
+ * @tc.desc shadowColor设置为0XFF00FF00
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0180', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0180 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0180");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0180"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0180 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0190
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0190
+ * @tc.desc shadowOffset设为x:10,y10
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0190', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0190 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0190");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0190"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0190 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0200
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0200
+ * @tc.desc shadowOffset不设置
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0200', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0200 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0200");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0200"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0200 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0210
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0210
+ * @tc.desc shadowOffset设为x:-10
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0210', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0210 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0210");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0210"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0210 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0240
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0240
+ * @tc.desc shadowElevation设为-10
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0240', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0240 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0240");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0240"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0240 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0250
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0250
+ * @tc.desc shadowElevation设为0
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0250', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0250 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0250");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0250"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0250 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0260
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0260
+ * @tc.desc shadowElevation设为10
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0260', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0260 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0260");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0260"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0260 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0270
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0270
+ * @tc.desc shadowElevation设为10.5
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0270', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0270 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0270");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0270"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0270 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0280
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0280
+ * @tc.desc shadowElevation不设置
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0280', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0280 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0280");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0280"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0280 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0310
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0310
+ * @tc.desc shadowAlpha设为-0.4
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0310', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0310 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0310");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0310"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0310 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0320
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0320
+ * @tc.desc shadowAlpha设为0
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0320', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0320 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0320");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0320"));
+ await SliderCom.click();
+ await Utils.sleep(3000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0320 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0330
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0330
+ * @tc.desc shadowAlpha设为0.5
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0330', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0330 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0330");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0330"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0330 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0340
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0340
+ * @tc.desc shadowAlpha设为1.5
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0340', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0340 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0340");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0340"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0340 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0370
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0370
+ * @tc.desc shadowRadius设为-30
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0370', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0370 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0370");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0370"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0370 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0380
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0380
+ * @tc.desc shadowRadius设为0
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0380', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0380 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0380");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0380"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0380 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0390
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0390
+ * @tc.desc shadowRadius设为30
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0390', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0390 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0390");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0390"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0390 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0400
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0400
+ * @tc.desc shadowRadius不设置
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0400', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0400 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0400");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0400"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0400 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0570
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0570
+ * @tc.desc translation设为x-50
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0570', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0570 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0570");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0570"));
+ await SliderCom.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0570 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0610
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0610
+ * @tc.desc transform不设置
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0610', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0610 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0610");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0610"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0610 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0620
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0620
+ * @tc.desc transform设为[1,0,45,0,0,1,0,00,0,1,00,0,0,1]
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0620', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0620 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0620");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0620"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0620 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0630
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0630
+ * @tc.desc shadowRadius和shadowElevation同时使用1
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0630', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0630 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0630");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0630"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0630 finish.`);
+ done();
+ })
+
+ /**
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0640
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0640
+ * @tc.desc shadowRadius和shadowElevation同时使用2
+ */
+ it('SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0640', 0, async (done: Function) => {
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0640 start.`);
+ Settings.createWindow("testability/pages/UIMotionAnimationImperativeprope/UIMotionAnimationImperativePrope0640");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let SliderCom = await driver.findComponent(ON.id("UIMotionAnimationImperativePrope0640"));
+ await SliderCom.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info('TEST', `SUB_ACE_UI_MOTION_ANIMATION_IMPERATIVEPROPE_0640 finish.`);
+ done();
+ })
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentCmmonattrRenderingTest/UiComponentCmmonattrRendering.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentCmmonattrRenderingTest/UiComponentCmmonattrRendering.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0841fc503e46daa59088408e7d6e59f8e331d8ec
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentCmmonattrRenderingTest/UiComponentCmmonattrRendering.test.ets
@@ -0,0 +1,343 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License")
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, afterEach, it } from "@ohos/hypium"
+import Settings from "../model/Settings"
+import windowSnap from "../model/snapShot"
+import Logger from "../model/Logger"
+import Utils from "../model/Utils"
+import { Driver, ON,MouseButton } from "@kit.TestKit"
+
+/*
+ * UiComponentCmmonattrRenderingTest
+ *
+ * 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 UiComponentCmmonattrRenderingTest() {
+
+ describe("UiComponentCmmonattrRenderingTest", () => {
+ 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_CMMONATTR_RENDERING_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0030
+ * @tc.desc 验证在导出的自定义组件中创建DatePicker组件
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0030", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0030 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0030");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0030 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0040
+ * @tc.desc 验证在导出的自定义组件中创建TimePicker组件
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0040", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0040 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0040");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0040 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0050
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0050
+ * @tc.desc 验证在导出的自定义组件中创建Video组件
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0050", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0050 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0050");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0050 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0060
+ * @tc.desc 验证在导出的自定义组件中创建Xcomponent组件
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0060", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0060 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0060");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0060 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0070
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0070
+ * @tc.desc 验证在导出的自定义组件中创建List组件
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0070", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0070 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0070");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0070 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0080
+ * @tc.desc 验证在导出的自定义组件中创建Scroll组件
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0080", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0080 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0080");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0080 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0090
+ * @tc.desc 验证在导出的自定义组件中创建TextArea组件
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0090", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0090 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0090");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0090 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0100
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0100
+ * @tc.desc 验证在导出的自定义组件中创建TextInput组件
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0100", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0100 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0100");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0100 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0110
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0110
+ * @tc.desc 验证在导出的自定义组件中创建Toggle组件
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0110", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0110 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0110");
+ await Utils.sleep(5000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0110 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0120
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0120
+ * @tc.desc 验证在导出的自定义组件中创建web组件
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0120", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0120 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0120");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0120 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0130
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0130
+ * @tc.desc 验证在导出的自定义组件中创建Web组件和Video组件
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0130", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0130 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0130");
+ await Utils.sleep(2000);
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0130 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0140
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0140
+ * @tc.desc 验证没有指定surfaceld
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0140", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0140 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0140");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0140 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0150
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0150
+ * @tc.desc 验证自定义组件上树后内容更新
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0150", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0150 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0150");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0150 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0160
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0160
+ * @tc.desc 验证同层渲染,list滑动测试
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0160", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0160 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0160");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let web002 = await driver.findComponent(ON.id("web002"));
+ await web002.scrollToTop();
+ await Utils.sleep(2000)
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ await web002.scrollToBottom();
+ await Utils.sleep(2000)
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0160 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0180
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0180
+ * @tc.desc 验证同层渲染,双指缩放测试
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0180", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0180 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0180");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let web002 = await driver.findComponent(ON.id("web002"));
+ await web002.pinchOut(1.5);
+ await Utils.sleep(2000)
+ await web002.pinchIn(0);
+ await Utils.sleep(4000)
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0180 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0190
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0190
+ * @tc.desc 验证同层渲染,双击测试
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0190", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0190 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0190");
+ await Utils.sleep(3000);
+ let driver: Driver = Driver.create();
+ await driver.mouseDoubleClick({x:300, y:800}, MouseButton.MOUSE_BUTTON_LEFT, 2072);
+ await Utils.sleep(3000)
+ await windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0190 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0200
+ * @tc.name SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0200
+ * @tc.desc 验证同层渲染,双击测试
+ */
+ it("SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0200", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0200 start.");
+ Settings.createWindow("testability/pages/UiComponentCmmonattrRendering/UiComponentCmmonattrRendering0200");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let btn1 = await driver.findComponent(ON.id('UiComponentCmmonattrRendering0200_btn1'));
+ await btn1.click();
+ await Utils.sleep(10000);
+ await Utils.homeAndBack(driver);
+ await Utils.sleep(1000);
+ await windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_CMMONATTR_RENDERING_0200 finish.");
+ done();
+ });
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentGraphicNodecontainerBuildernodeTest/UiComponentGraphicNodecontainerBuildernode.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentGraphicNodecontainerBuildernodeTest/UiComponentGraphicNodecontainerBuildernode.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0026c96fedf4f0bdea0ecdf7ed8924f5fb08aab0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentGraphicNodecontainerBuildernodeTest/UiComponentGraphicNodecontainerBuildernode.test.ets
@@ -0,0 +1,173 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License")
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, afterEach, it } from "@ohos/hypium"
+import Settings from "../model/Settings"
+import windowSnap from "../model/snapShot"
+import Logger from "../model/Logger"
+import Utils from "../model/Utils"
+import { Driver, ON,MouseButton } from "@kit.TestKit"
+
+/*
+ * UiComponentCmmonattrRenderingTest
+ *
+ * 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 UiComponentGraphicNodecontainerBuildernodeTest() {
+
+ describe("UiComponentGraphicNodecontainerBuildernodeTest", () => {
+ 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_GRAPHIC_NODECONTAINER_BUILDERNODE_0010
+ * @tc.name SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0010
+ * @tc.desc BuilderNode设置NodeRenderType为RENDER_TYPE_DISPLAY,该节点将被显示到屏幕上
+ */
+ it("SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0010", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0010 start.");
+ Settings.createWindow("testability/pages/UiComponentGraphicNodecontainerBuildernode/UiComponentGraphicNodecontainerBuildernode0010");
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0010 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0020
+ * @tc.name SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0020
+ * @tc.desc BuilderNode设置NodeRenderType为RENDER_TYPE_TEXTURE,该节点将被导出为纹理
+ */
+ it("SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0020", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0020 start.");
+ Settings.createWindow("testability/pages/UiComponentGraphicNodecontainerBuildernode/UiComponentGraphicNodecontainerBuildernode0020");
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0020 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0030
+ * @tc.name SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0030
+ * @tc.desc RenderOptions设置selfldealSize,正常生效
+ */
+ it("SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0030", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0030 start.");
+ Settings.createWindow("testability/pages/UiComponentGraphicNodecontainerBuildernode/UiComponentGraphicNodecontainerBuildernode0030");
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0030 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0040
+ * @tc.name SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0040
+ * @tc.desc RenderOptions设置surfaceld,正常生效
+ */
+ it("SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0040", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0040 start.");
+ Settings.createWindow("testability/pages/UiComponentGraphicNodecontainerBuildernode/UiComponentGraphicNodecontainerBuildernode0040");
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0040 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0060
+ * @tc.name SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0060
+ * @tc.desc build创建组件树正常
+ */
+ it("SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0060", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0060 start.");
+ Settings.createWindow("testability/pages/UiComponentGraphicNodecontainerBuildernode/UiComponentGraphicNodecontainerBuildernode0060");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0060 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0080
+ * @tc.name SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0080
+ * @tc.desc update更新BuilderNode正常
+ */
+ it("SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0080", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0080 start.");
+ Settings.createWindow("testability/pages/UiComponentGraphicNodecontainerBuildernode/UiComponentGraphicNodecontainerBuildernode0080");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0080 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0090
+ * @tc.name SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0090
+ * @tc.desc postTouchEvent派发事件正常
+ */
+ it("SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0090", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0090 start.");
+ Settings.createWindow("testability/pages/UiComponentGraphicNodecontainerBuildernode/UiComponentGraphicNodecontainerBuildernode0090");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ await driver.fling({x: 500, y: 480},{x: 450, y: 480},5,600);
+ windowSnap.snapShot();
+ await Utils.sleep(2000);
+ Logger.info("TEST", "SUB_ACE_UI_COMPONENT_GRAPHIC_NODECONTAINER_BUILDERNODE_0090 finish.");
+ done();
+ });
+
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiFrameNodeRenderNodeMarkNodeAdapterTest/UiFrameNodeRenderNodeMarkNodeAdapter.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiFrameNodeRenderNodeMarkNodeAdapterTest/UiFrameNodeRenderNodeMarkNodeAdapter.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7ac22feafafbe00786b3a6c4f468a6cc119e9d0b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiFrameNodeRenderNodeMarkNodeAdapterTest/UiFrameNodeRenderNodeMarkNodeAdapter.test.ets
@@ -0,0 +1,203 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { describe, afterEach, it } from "@ohos/hypium"
+import Settings from "../model/Settings"
+import windowSnap from "../model/snapShot"
+import Logger from "../model/Logger"
+import Utils from "../model/Utils"
+import { Driver, ON } from "@kit.TestKit"
+
+/*
+ * UiFrameNodeRenderNodeMarkNodeAdapterTest
+ *
+ * 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 UiFrameNodeRenderNodeMarkNodeAdapterTest() {
+
+ describe("UiFrameNodeRenderNodeMarkNodeAdapterTest", () => {
+ 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_FRAMENODE_RANDERNODE_markNodeAdapter_0010
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0010
+ * @tc.desc 使用Adapter关联FrameNode,设置totalNodeCount
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0010", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0010 start.");
+ Settings.createWindow("testability/pages/UiFrameNodeRenderNodeMarkNodeAdapter/UiFrameNodeRenderNodeMarkNodeAdapter0010");
+ await Utils.sleep(1000);
+ let driver: Driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id("button1"));
+ await button1.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id("button2"));
+ await button2.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id("button3"));
+ await button3.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button4 = await driver.findComponent(ON.id("button4"));
+ await button4.click();
+ await Utils.sleep(1000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0010 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0040
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0040
+ * @tc.desc 使用Adapter关联FrameNode,调用reloadltem
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0040", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0040 start.");
+ Settings.createWindow("testability/pages/UiFrameNodeRenderNodeMarkNodeAdapter/UiFrameNodeRenderNodeMarkNodeAdapter0040");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button00 = await driver.findComponent(ON.id("button-reload-0-0"));
+ await button00.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button01 = await driver.findComponent(ON.id("button-reload-0-1"));
+ await button01.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button05 = await driver.findComponent(ON.id("button-reload-0-5"));
+ await button05.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0040 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0050
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0050
+ * @tc.desc 使用Adapter关联FrameNode,调用removeltem
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0050", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0050 start.");
+ Settings.createWindow("testability/pages/UiFrameNodeRenderNodeMarkNodeAdapter/UiFrameNodeRenderNodeMarkNodeAdapter0050");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id("button1"));
+ await button1.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id("button2"));
+ await button2.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id("button3"));
+ await button3.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0050 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0070
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0070
+ * @tc.desc 使用Adapter关联FrameNode,moveItem
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0070", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0070 start.");
+ Settings.createWindow("testability/pages/UiFrameNodeRenderNodeMarkNodeAdapter/UiFrameNodeRenderNodeMarkNodeAdapter0070");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id("button1"));
+ await button1.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id("button2"));
+ await button2.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0070 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0060
+ * @tc.name SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0060
+ * @tc.desc 使用Adapter关联FrameNode,调用insertItem
+ */
+ it("SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0060", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0060 start.");
+ Settings.createWindow("testability/pages/UiFrameNodeRenderNodeMarkNodeAdapter/UiFrameNodeRenderNodeMarkNodeAdapter0060");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button1 = await driver.findComponent(ON.id("button1"));
+ await button1.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button2 = await driver.findComponent(ON.id("button2"));
+ await button2.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ let button3 = await driver.findComponent(ON.id("button3"));
+ await button3.click();
+ await Utils.sleep(1000);
+ await button2.click();
+ await Utils.sleep(2000);
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_FRAMENODE_RANDERNODE_markNodeAdapter_0060 finish.");
+ done();
+ });
+ })
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiMotionAnimationMaskTest/UiMotionAnimationMask.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiMotionAnimationMaskTest/UiMotionAnimationMask.test.ets
new file mode 100644
index 0000000000000000000000000000000000000000..cef134e0c3a4e70637f28af27c9421fad2a26bc1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiMotionAnimationMaskTest/UiMotionAnimationMask.test.ets
@@ -0,0 +1,892 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License")
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { describe, afterEach, it } from "@ohos/hypium"
+import Settings from "../model/Settings"
+import windowSnap from "../model/snapShot"
+import Logger from "../model/Logger"
+import Utils from "../model/Utils"
+import { Driver, ON } from "@kit.TestKit"
+
+/*
+ * UiMotionAnimationMaskTest
+ *
+ * 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 UiMotionAnimationMaskTest() {
+
+ describe("UiMotionAnimationMaskTest", () => {
+ 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_MOTION_ANIMATION_MASK
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK
+ * @tc.desc 验证4个边框的圆角弧度为0
+ */
+ it("MOTION_ANIMATION_MASK", 0, async (done: Function) => {
+ Logger.info("TEST", "MOTION_ANIMATION_MASK start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "MOTION_ANIMATION_MASK finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0010
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0010
+ * @tc.desc 验证四个边框的宽度分别为8,16,24,32
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0010", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0010 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0010");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0010 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0020
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0020
+ * @tc.desc 验证4个边框的宽度为8
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0020", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0020 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0020");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0020 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0030
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0030
+ * @tc.desc 验证没有边框
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0030", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0030 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0030");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0030 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0040
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0040
+ * @tc.desc 验证没有边框
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0040", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0040 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0040");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0040 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0050
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0050
+ * @tc.desc 验证四个边框的颜色分别为红色、蓝色、黄色、黑色
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0050", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0050 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0050");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0050 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0060
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0060
+ * @tc.desc 验证4个边框的颜色为红色
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0060", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0060 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0060");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0060 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0070
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0070
+ * @tc.desc 验证4个边框的颜色为红色
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0070", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0070 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0070");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0070 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0080
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0080
+ * @tc.desc 验证四个边框的圆角弧度分别为8,16,24,32
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0080", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0080 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0080");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0080 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0090
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0090
+ * @tc.desc 验证4个边框的圆角弧度为16
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0090", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0090 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0090");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0090 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0110
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0110
+ * @tc.desc 验证无圆角弧度
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0110", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0110 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0110");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0110 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0120
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0120
+ * @tc.desc 验证边框样式显示为一系列圆点,圆点半径为borderWidth的一半
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0120", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0120 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0120");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0120 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0130
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0130
+ * @tc.desc 验证边框样式显示为一系列短的方形虚线
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0130", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0130 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0130");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0130 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0140
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0140
+ * @tc.desc 验证边框样式显示为一条实线
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0140", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0140 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0140");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0140 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0150
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0150
+ * @tc.desc 验证边框样式显示为一条实线
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0150", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0150 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0150");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0150 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0170
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0170
+ * @tc.desc 验证对长方形设置遮罩
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0170", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0170 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0170");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0170 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0180
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0180
+ * @tc.desc 验证不设置遮罩
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0180", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0180 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0180");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0180 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0190
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0190
+ * @tc.desc 验证设置矩形遮罩
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0190", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0190 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0190");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0190 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0200
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0200
+ * @tc.desc 验证RenderNode被遮罩
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0200", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0200 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0200");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0200 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0210
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0210
+ * @tc.desc 验证遮罩与RenderNode重合部分被遮罩
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0210", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0210 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0210");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0210 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0220
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0220
+ * @tc.desc 验证长方形的遮罩为圆角矩形
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0220", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0220 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0220");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0220 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0230
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0230
+ * @tc.desc 验证圆角矩形遮罩超出RenderNode的大小
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0230", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0230 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0230");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0230 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0240
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0240
+ * @tc.desc 验证圆角矩形遮罩小于RenderNode的
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0240", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0240 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0240");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0240 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0250
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0250
+ * @tc.desc 验证设置圆形遮罩
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0250", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0250 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0250");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0250 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0260
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0260
+ * @tc.desc 验证圆形遮罩超出RenderNode的大小
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0260", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0260 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0260");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0260 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0270
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0270
+ * @tc.desc 验证圆形遮罩小于RenderNode的大小
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0270", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0270 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0270");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0270 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0280
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0280
+ * @tc.desc 验证左侧边为75vp,顶部为0,右侧为250vp,底部为100vp的椭回形遮罩
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0280", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0280 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0280");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0280 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0290
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0290
+ * @tc.desc 验证椭圆形遮罩超RenderNode的大小
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0290", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0290 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0290");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0290 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0300
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0300
+ * @tc.desc 验证椭圆形遮罩小于RenderNode的大
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0300", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0300 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0300");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0300 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0310
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0310
+ * @tc.desc 验证设置自定义遮罩
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0310", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0310 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0310");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0310 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0320
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0320
+ * @tc.desc 验证自定义遮罩超出RenderNode的大小
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0320", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0320 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0320");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0320 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0330
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0330
+ * @tc.desc 验证自定义遮罩小于RenderNode的大小
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0330", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0330 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0330");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0330 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0340
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0340
+ * @tc.desc 验证设置遮罩颜色(ARGB格式)
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0340", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0340 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0340");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0340 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0350
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0350
+ * @tc.desc 验证RenderNode完全消失(red为异常值,相当于设置一个不显示颜色的遮罩)
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0350", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0350 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0350");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0350 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0360
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0360
+ * @tc.desc 验证设置遮罩边框颜色(ARGB格式)
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0360", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0360 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0360");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0360 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0370
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0370
+ * @tc.desc 验证遮罩边框下面的RenderNode完全消失()red为异常值,相当于设置一个不显示颜色的遮罩边框)
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0370", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0370 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0370");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0370 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0380
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0380
+ * @tc.desc 验证遮罩边框宽度设为24
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0380", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0380 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0380");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0380 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0390
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0390
+ * @tc.desc 验证遮罩的边框宽度为0,即无边框
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0390", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0390 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0390");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0390 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0400
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0400
+ * @tc.desc 验证遮罩的边框宽度为-10,即无边框
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0400", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0400 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0400");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0400 finish.");
+ done();
+ });
+
+ /*
+ * @tc.number SUB_ACE_UI_MOTION_ANIMATION_MASK_0410
+ * @tc.name SUB_ACE_UI_MOTION_ANIMATION_MASK_0410
+ * @tc.desc 验证生成一个矩形遮罩,中间为镂空
+ */
+ it("SUB_ACE_UI_MOTION_ANIMATION_MASK_0410", 0, async (done: Function) => {
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0410 start.");
+ Settings.createWindow("testability/pages/UiMotionAnimationMask/UiMotionAnimationMask0410");
+ await Utils.sleep(2000);
+ let driver: Driver = Driver.create();
+ let button001 = await driver.findComponent(ON.id("Button001"));
+ await button001.click();
+ await Utils.sleep(2000)
+ let button003 = await driver.findComponent(ON.id("Button003"));
+ await button003.click();
+ await Utils.sleep(2000)
+ let button002 = await driver.findComponent(ON.id("Button002"));
+ await button002.click();
+ await Utils.sleep(2000)
+ windowSnap.snapShot();
+ await Utils.sleep(1000);
+ Logger.info("TEST", "SUB_ACE_UI_MOTION_ANIMATION_MASK_0410 finish.");
+ done();
+ });
+ })
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Utils.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Utils.ets
index 7f06aa4d872061e0682441fd8f47b33730bc78c1..d50a34c0eacfbdafee0f89058c75a2e74023c75a 100644
--- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Utils.ets
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Utils.ets
@@ -13,9 +13,15 @@
* limitations under the License.
*/
-import {Driver , ON} from '@ohos.UiTest'
+import { Driver, ON } from '@ohos.UiTest'
+import { abilityAccessCtrl, common, Permissions } from '@kit.AbilityKit';
+import { BusinessError, pasteboard } from '@kit.BasicServicesKit';
+import bundleManager from '@ohos.bundle.bundleManager';
+import Settings from './Settings';
+import { KeyCode } from '@kit.InputKit';
export default class Utils {
+ static permission_state: boolean = true;
static async sleep(time : number) :Promise {
const result:string = await new Promise((resolve:Function)=>{
@@ -39,7 +45,70 @@ export default class Utils {
}
+ static async checkPermission(callback: (isGranted: boolean) => void) {
+ const permissions: Array = ['ohos.permission.READ_PASTEBOARD'];
+ let grantStatus: abilityAccessCtrl.GrantStatus = await Utils.checkAccessToken(permissions[0]);
+ if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) {
+ callback(true)
+ } else {
+ callback(false)
+ }
+ }
+
+ static async checkAccessToken(permission: Permissions): Promise {
+ let atManager: abilityAccessCtrl.AtManager = abilityAccessCtrl.createAtManager();
+ let grantStatus: abilityAccessCtrl.GrantStatus = abilityAccessCtrl.GrantStatus.PERMISSION_DENIED;
+ // ȡӦó accessTokenID
+ let tokenId: number = 0;
+ try {
+ let bundleInfo: bundleManager.BundleInfo =
+ await bundleManager.getBundleInfoForSelf(bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION);
+ let appInfo: bundleManager.ApplicationInfo = bundleInfo.appInfo;
+ tokenId = appInfo.accessTokenId;
+ } catch (error) {
+ let err: BusinessError = error as BusinessError;
+ console.error(`Failed to get bundle info for self. Code is ${err.code}, message is ${err.message}`);
+ }
+ // УӦǷȨ
+ try {
+ grantStatus = await atManager.checkAccessToken(tokenId, permission);
+ } catch (error) {
+ let err: BusinessError = error as BusinessError;
+ console.error(`Failed to check access token. Code is ${err.code}, message is ${err.message}`);
+ }
+ return grantStatus;
+ }
+ static async reqPermissionsFromUser(permissions: Array, context: common.UIAbilityContext,
+ callback: (isGrant: boolean) => void) {
+ let atManager = abilityAccessCtrl.createAtManager();
+ // requestPermissionsFromUserжȨȨ״̬Ƿ
+ atManager.requestPermissionsFromUser(context, permissions).then((data) => {
+ let grantStatus: Array = data.authResults;
+ if (grantStatus[0] === 0) {
+ callback(true)
+ } else {
+ // ûܾȨʾûȨܷʵǰҳĹܣûϵͳдӦȨ
+ callback(false)
+ }
+ }).catch((err: String) => {
+ })
+ }
+
+ /**
+ * The application switches to the desktop and back to the application
+ *
+ * @param driver
+ */
+ static async homeAndBack(driver: Driver) {
+ let currentWindow = await Settings.windowClass;
+ if (currentWindow) {
+ await currentWindow.hide();
+ await driver.triggerKey(KeyCode.KEYCODE_HOME);
+ await Utils.sleep(2000);
+ await currentWindow.showWindow();
+ }
+ }
}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ed302166979e8e9932a1b10d5cdc1f914502bc82
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0010.ets
@@ -0,0 +1,116 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext, typeNode } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ public childList: Array = new Array();
+ private childrenCount: number = 0;
+ public text1: string = '';
+ public text2: string = '';
+ public text3: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.uiContext = uiContext;
+ this.rootNode = new FrameNode(uiContext);
+
+ let col = typeNode.createNode(uiContext, 'Column');
+ col.initialize()
+ .margin(10);
+ this.rootNode.appendChild(col);
+
+ let text = typeNode.createNode(uiContext, 'Text');
+ text.initialize('FrameNode的第二个子节点')
+ .margin(10)
+ .fontColor(Color.Pink);
+ this.rootNode.appendChild(text);
+
+ for (let i = 0; i < 10; i++) {
+ let t = typeNode.createNode(uiContext, 'Text');
+ t.initialize('1')
+ .margin(5)
+ .fontColor(Color.Orange)
+ col.appendChild(t);
+ }
+
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text1 = `FrameNode 子节点数量: ${this.rootNode!.getChildrenCount()}`;
+ }
+
+ searchFrameNodeFirstChild() {
+ this.text2 = `FrameNode 第一个子节点的子节点数量: ${this.rootNode!.getFirstChild()?.getChildrenCount()}`;
+ }
+
+ searchFrameNodeLastChild() {
+ this.text3 = `FrameNode 第二个子节点是: ${this.rootNode!.getChild(1)}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0010 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State text1: string = '';
+ @State text2: string = '';
+ @State text3: string = '';
+
+ onTextChange() {
+ this.text1 = this.myNodeController.text1;
+ this.text2 = this.myNodeController.text2;
+ this.text3 = this.myNodeController.text3;
+ }
+
+ build() {
+ Column() {
+ Button("getChild")
+ .id('ActionEventCommonEventFrameNode0010')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.myNodeController.searchFrameNodeFirstChild();
+ this.myNodeController.searchFrameNodeLastChild();
+ this.onTextChange();
+ })
+ Text(`${this.text1}`).margin(20).fontSize(30)
+ Text(`${this.text2}`).margin(20).fontSize(30)
+ Text(`${this.text3}`).margin(20).fontSize(30)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(500)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6bc5ab0c0f505a099ce2a3152924c159d3cc2aa2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0020.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.uiContext = uiContext;
+ this.rootNode = new FrameNode(uiContext);
+ return this.rootNode;
+ }
+
+ appendChildDump(): string {
+ let childNode = new FrameNode(this.uiContext!);
+ this.rootNode!.appendChild(childNode);
+ let inspectorInfo = this.rootNode?.getInspectorInfo();
+ return JSON.stringify(inspectorInfo);
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0020 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State text: string = '';
+
+ build() {
+ Column() {
+ Button("appendChild")
+ .id('ActionEventCommonEventFrameNode0020')
+ .width(300)
+ .onClick(() => {
+ this.text = this.myNodeController.appendChildDump();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..527210767bc7aeea1044b9716137ab338be06933
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0030.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, typeNode, FrameNode, UIContext } from '@kit.ArkUI';
+import { BusinessError } from '@kit.BasicServicesKit';
+
+class MyNodeController extends NodeController {
+ public rootNode: FrameNode | null = null;
+ public frameNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.uiContext = uiContext;
+ this.rootNode = new FrameNode(uiContext);
+ this.rootNode.commonAttribute.width("50%").height(600).backgroundColor(Color.Blue)
+ this.frameNode = new FrameNode(uiContext);
+ this.frameNode.commonAttribute.width("100%").height(600).backgroundColor(Color.Green)
+ this.rootNode.appendChild(this.frameNode);
+ return this.rootNode;
+ }
+
+ insertChildAfter(): string {
+ let errorStr: string = '';
+ try {
+ let textNode = typeNode.createNode(this.uiContext, "Text")
+ textNode.attribute.width(200)
+ .height(200)
+ .borderWidth(1)
+ .borderColor(Color.Black)
+ .backgroundColor(0xAFEEEE)
+ this.frameNode?.insertChildAfter(textNode, this.frameNode);
+ } catch (e) {
+ errorStr = "异常信息: " + (e as BusinessError).code + " : " + (e as BusinessError).message;
+ }
+ return errorStr
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0030 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State text: string = '';
+
+ build() {
+ Column() {
+ Button("insertChildAfter")
+ .id('ActionEventCommonEventFrameNode0030')
+ .width(300)
+ .onClick(() => {
+ this.text = this.myNodeController.insertChildAfter();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..57d713b4b9be8117dd0fa05b43dda07dc380091d
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0050.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 2; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.rootNode.insertChildAfter(childNode,this.frameNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ if (this.rootNode!.getRenderNode()) {
+ console.log(`getChildNumber: ${this.rootNode!.getChildrenCount()}`);
+ this.text = `getChildNumber: ${this.rootNode!.getChildrenCount()}`;
+ } else {
+ console.log("can not getChildNumber");
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0050 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0050')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..96de51a1c528050a2925f8e9272661078c443bc9
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0060.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ if (this.rootNode!.getFirstChild() !== null && this.rootNode!.getFirstChild()!.getParent() === this.rootNode) {
+ console.log("getFirstChild result:success.");
+ this.text = "getFirstChild result:success.";
+ } else {
+ console.log("getFirstChild result: fail.");
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0060 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0060')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..fd1d10eed6c4aedd4177263b230e2e21fe29d624
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0070.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.frameNode?.getChild(5)?.getNextSibling()?.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ async searchFrameNode() {
+ if (this.frameNode!.getChild(5)!.getNextSibling()?.getChild(5)) {
+ console.log(" getChild result: success.");
+ this.text = " getChild result: success."
+ } else {
+ console.log(" getChild result: fail.");
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0070 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0070')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..a1dd2acf0d9824fe9e196e50c95e7f6261e370af
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0080.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ if (this.frameNode!.getChild(5) === this.frameNode!.getChild(4)!.getNextSibling()) {
+ console.log("getNextSibling result:success.");
+ this.text = "getNextSibling result:success.";
+ } else {
+ console.log("getNextSibling result:fail.");
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0080 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0080')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f3da8251dcb3c1a681035f780cc521085939afee
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0090.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ if (this.frameNode!.getChild(3) === this.frameNode!.getChild(4)!.getPreviousSibling()) {
+ console.log("getPreviousSibling result:success.");
+ this.text = "getPreviousSibling result:success.";
+ } else {
+ console.log("getPreviousSibling result:fail.");
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0090 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0090')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d0d2e3365abe924885e5e475ad94a0c2d8dbfd49
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0100.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ if (this.frameNode!.getFirstChild()!.getParent() === this.frameNode) {
+ console.log(" getParent result : success ")
+ this.text = " getParent result : success "
+ } else {
+ console.log(" getParent result : fail.");
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0100 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0100')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1808962d1d4e1702532fd1111ac1b04310a480f5
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0110.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = 'arrive the true rootNode: '+this.rootNode!.getParent()?.getParent()?.getParent()?.getParent();
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0110 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0110')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d09f76cd2ee7d61363a1a9652c59c674d8e0fb8c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0120.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 { NodeController, FrameNode, BuilderNode, RenderNode, typeNode } from '@kit.ArkUI';
+
+class NodeController0120 extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+ private isModifiable: boolean | undefined = false;
+ private modifiableString: string ="check getParentwhether is modifiable : ";
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ let searchedNode = typeNode.createNode(uiContext, "Search");
+ this.rootNode.appendChild(searchedNode);
+ let node = typeNode.createNode(uiContext, "Button");
+ node.initialize('getChildNumber')
+ .fontSize(10)
+ .margin(30)
+ .width(200)
+ .height(50)
+ .id('ButtonTest1')
+ .onClick(() => {
+ this.isModifiable = searchedNode.isModifiable()
+ let node2 = typeNode.createNode(uiContext, "Text");
+ node2.initialize(this.modifiableString + this.isModifiable)
+ .fontSize(20)
+ .margin(30)
+ .id('ButtonTest2')
+ .position({ x: -10, y: -100 })
+ .width(600);
+ this.rootNode?.appendChild(node2);
+ });
+ this.rootNode.appendChild(node);
+ return this.rootNode;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommoneventFrameNode0120 {
+ private mNodeController135: NodeController0120 = new NodeController0120();
+
+ build() {
+ Column() {
+ NodeContainer(this.mNodeController135)
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..602295a42e663a9922a32093fe8c0a810f1da06b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0130.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 { BuilderNode,NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Text('This is a BuilderNode.')
+ .fontSize(16)
+ .fontWeight(FontWeight.Bold)
+ }
+ .width('100%')
+ .backgroundColor(Color.Gray)
+ }
+
+ aboutToAppear() {
+ console.log('aboutToAppear');
+ }
+
+ aboutToDisappear() {
+ console.log('aboutToDisappear');
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 100 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+ const rootRenderNode = this.rootNode!.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.backgroundColor = 0xff00ff00;
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+ return this.rootNode;
+ }
+
+ getRenderNode(): string {
+ let resultStr: string = '';
+ if (this.rootNode!.getParent()!.getRenderNode() === null) {
+ resultStr += "cant not get renderNode from ArkTs Node";
+ }
+ if (this.rootNode?.getRenderNode()) {
+ resultStr += ' can get renderNode from FrameNode';
+ }
+ if (this.builderNode?.getFrameNode()?.getRenderNode()) {
+ resultStr += ' can get renderNode from BuilderNode';
+ }
+ return resultStr;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0130 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State text: string = '';
+
+ build() {
+ Column() {
+ Button("GetRenderNode")
+ .id('ActionEventCommonEventFrameNode0130')
+ .width(300)
+ .onClick(() => {
+ this.text = this.myNodeController.getRenderNode();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..9f3b8a0a4517c044c4af47a531e3c0817916380c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0140.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 { NodeController, FrameNode, BuilderNode, RenderNode, typeNode } from '@kit.ArkUI';
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Search()
+ .backgroundColor(Color.Pink)
+ .width(150).height(150)
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class NodeController0140 extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+ private isModifiable: boolean | undefined = true;
+ private modifiableString: string = "check getParentwhether is modifiable : ";
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 200 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+ const rootRenderNode = this.rootNode.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.backgroundColor = 0xffff0000;
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+ let node = typeNode.createNode(uiContext, "Button");
+ node.initialize('点击')
+ .fontSize(20)
+ .margin(30)
+ .width(200)
+ .height(100)
+ .id('ButtonTest1')
+ .onClick(() => {
+ this.isModifiable = this.builderNode?.getFrameNode()?.isModifiable()
+ console.log(this.modifiableString + this.isModifiable);
+ let node2 = typeNode.createNode(uiContext, "Text");
+ node2.initialize(this.modifiableString + this.isModifiable)
+ .fontSize(20)
+ .margin(30)
+ .id('ButtonTest2')
+ .position({ x: -150, y: -100 })
+ .width(600);
+ this.rootNode?.appendChild(node2);
+ });
+ this.rootNode.appendChild(node);
+
+ return this.rootNode;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommoneventFrameNode0140 {
+ private mNodeController135: NodeController0140 = new NodeController0140();
+
+ build() {
+ Column() {
+ NodeContainer(this.mNodeController135)
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4bc4e40013700d2c5738c17ab006ff3331eebbb2
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0150.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 { NodeController, FrameNode, BuilderNode, RenderNode, typeNode } from '@kit.ArkUI';
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Search()
+ .backgroundColor(Color.Pink)
+ .width(150).height(150)
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class NodeController0150 extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+ private isModifiable: boolean | undefined = true;
+ private modifiableString: string = "check getParentwhether is modifiable : ";
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 200 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+ const rootRenderNode = this.rootNode.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.backgroundColor = 0xffff0000;
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+ let node = typeNode.createNode(uiContext, "Button");
+ node.initialize('点击')
+ .fontSize(20)
+ .margin(30)
+ .width(200)
+ .height(100)
+ .id('ButtonTest1')
+ .onClick(() => {
+ try {
+ let node3 = typeNode.createNode(uiContext, "Button");
+ node3.initialize('点击')
+ this.builderNode?.getFrameNode()?.appendChild(node3);
+ } catch (e) {
+ let node2 = typeNode.createNode(uiContext, "Text");
+ node2.initialize(e.code+":"+e.message)
+ .fontSize(20)
+ .margin(30)
+ .id('ButtonTest2')
+ .position({ x: -150, y: -100 })
+ .width(600);
+ this.rootNode?.appendChild(node2);
+ }
+
+ });
+ this.rootNode.appendChild(node);
+
+ return this.rootNode;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommoneventFrameNode0150 {
+ private mNodeController135: NodeController0150 = new NodeController0150();
+
+ build() {
+ Column() {
+ NodeContainer(this.mNodeController135)
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0160.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0e2ca8be8e1eb293e54dda55cdba3dfe12043a30
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0160.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 { NodeController, FrameNode, BuilderNode, RenderNode, typeNode } from '@kit.ArkUI';
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Search()
+ .backgroundColor(Color.Pink)
+ .width(150).height(150)
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class NodeController0160 extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+ private isModifiable: boolean | undefined = true;
+ private modifiableString: string = "check getParentwhether is modifiable : ";
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 200 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+ const rootRenderNode = this.rootNode.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.backgroundColor = 0xffff0000;
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+ let node = typeNode.createNode(uiContext, "Button");
+ node.initialize('点击')
+ .fontSize(20)
+ .margin(30)
+ .width(200)
+ .height(100)
+ .id('ButtonTest1')
+ .onClick(() => {
+ try {
+ let node3 = typeNode.createNode(uiContext, "Button");
+ node3.initialize('点击')
+ this.builderNode?.getFrameNode()?.insertChildAfter(node3,null);
+ } catch (e) {
+ let node2 = typeNode.createNode(uiContext, "Text");
+ node2.initialize(e.code+":"+e.message)
+ .fontSize(20)
+ .margin(30)
+ .id('ButtonTest2')
+ .position({ x: -150, y: -100 })
+ .width(600);
+ this.rootNode?.appendChild(node2);
+ }
+
+ });
+ this.rootNode.appendChild(node);
+
+ return this.rootNode;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommoneventFrameNode0160 {
+ private mNodeController135: NodeController0160 = new NodeController0160();
+
+ build() {
+ Column() {
+ NodeContainer(this.mNodeController135)
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..35bab11636895986ba18af58a02c734b5e6f9ad8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0170.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 { NodeController, FrameNode, BuilderNode, RenderNode, typeNode } from '@kit.ArkUI';
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Search()
+ .backgroundColor(Color.Pink)
+ .width(150).height(150)
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class NodeController0170 extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+ private isModifiable: boolean | undefined = true;
+ private modifiableString: string = "check getParentwhether is modifiable : ";
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 200 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+ const rootRenderNode = this.rootNode.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.backgroundColor = 0xffff0000;
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+ let node = typeNode.createNode(uiContext, "Button");
+ node.initialize('点击')
+ .fontSize(20)
+ .margin(30)
+ .width(200)
+ .height(100)
+ .id('ButtonTest1')
+ .onClick(() => {
+ try {
+ let node3 = typeNode.createNode(uiContext, "Button");
+ node3.initialize('点击')
+ this.builderNode?.getFrameNode()?.removeChild(node3);
+ } catch (e) {
+ let node2 = typeNode.createNode(uiContext, "Text");
+ node2.initialize(e.code+":"+e.message)
+ .fontSize(20)
+ .margin(30)
+ .id('ButtonTest2')
+ .position({ x: -150, y: -100 })
+ .width(600);
+ this.rootNode?.appendChild(node2);
+ }
+
+ });
+ this.rootNode.appendChild(node);
+
+ return this.rootNode;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommoneventFrameNode0170 {
+ private mNodeController135: NodeController0170 = new NodeController0170();
+
+ build() {
+ Column() {
+ NodeContainer(this.mNodeController135)
+ }.width('100%').height('100%').justifyContent(FlexAlign.Center)
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0ce27a3a71eb184df493be7ecc11ad6320c2c24c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0180.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+import { BusinessError } from '@kit.BasicServicesKit';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ const rootRenderNode = this.rootNode.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.backgroundColor = 0xffff0000;
+ rootRenderNode.size = { width: 400, height: 400 };
+ }
+ return this.rootNode;
+ }
+
+ throwError() {
+ try {
+ this.rootNode!.getParent()!.clearChildren();
+ } catch (err) {
+ console.log("异常信息: "+(err as BusinessError).code + " : " + (err as BusinessError).message);
+ this.text = "异常信息: "+(err as BusinessError).code + " : " + (err as BusinessError).message;
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0180 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+
+ Column() {
+ NodeContainer(this.myNodeController)
+ Text(`${this.text}`).margin(20)
+ Button("getChildNumber &&operation about search")
+ .id('ActionEventCommonEventFrameNode0180')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.throwError();
+ this.onTextChange();
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6e6482df86eb5176925846842661f0db036e81dd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0190.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ if (this.rootNode!.getChildrenCount()) {
+ console.log(`getChildNumber:${this.rootNode!.getChildrenCount()}`);
+ this.text = `getChildNumber:${this.rootNode!.getChildrenCount()}`;
+ } else {
+ console.log("can not getChildNumber");
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0190 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0190')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3ff4c5a1bfda068baff3b7ca336eaf13f6a80282
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0200.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ if (this.frameNode!.getFirstChild() !== null) {
+ console.log("nodeContainerNode getFirstChild result: Success.");
+ this.text = "nodeContainerNode getFirstChild result: success.";
+ } else {
+ console.log("nodeContainerNode getFirstChild result: fail.");
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0210 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0200')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..32cccc32d8930052a6b20eb8610e6f9147859a0c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0210.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ if (this.frameNode!.getChild(0)) {
+ console.log("nodeContainerNode getChild result: success.");
+ this.text = "nodeContainerNode getChild result: success.";
+ } else {
+ console.log("nodeContainerNode getChild result: fail.");
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0210 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0210')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..944d1cb9646f0373b451d69444e8fd4b80d47208
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0220.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ if (this.frameNode!.getChild(0)!.getNextSibling()) {
+ console.log("nodeContainerNode getNextSibling result:success.");
+ this.text = "nodeContainerNode getNextSibling result:success.";
+ } else {
+ console.log("nodeContainerNode getNextSibling result:fail.");
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0220 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0220')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7fe7fc990e5110232ff7a1a1a62948155659ce4b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0230.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ if (this.frameNode!.getChild(1)!.getPreviousSibling()) {
+ console.log("nodeContainerNode getPreviousSibling result:success.");
+ this.text = "nodeContainerNode getPreviousSibling result:success.";
+ } else {
+ console.log("nodeContainerNode getPreviousSibling result:fail.");
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0230 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0230')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d99350f91f0e7bacafc5bae904909d5ac0ff2d31
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0240.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 { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ async searchFrameNode() {
+ if (this.rootNode!.getParent()) {
+ console.log(" nodeContainerNode getParent result: success.");
+ this.text = " nodeContainerNode getParent result: success."
+ } else {
+ console.log(" nodeContainerNode getParent result: fail.");
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0240 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0240')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..30095d390b8f124c9e0ef69a4a1335209e7fecec
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0250.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = 'arrive the true rootNode: '+this.rootNode!.getParent()?.getParent()?.getParent()?.getParent();
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0250 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getChildNumber && operation about search")
+ .id('ActionEventCommonEventFrameNode0250')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b60270ac5fdf61a3e2693553f3a5724fee89fe35
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0260.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 { BuilderNode,NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Text('This is a BuilderNode.')
+ .fontSize(16)
+ .fontWeight(FontWeight.Bold)
+ }
+ .width('100%')
+ .backgroundColor(Color.Gray)
+ }
+
+ aboutToAppear() {
+ console.log('aboutToAppear');
+ }
+
+ aboutToDisappear() {
+ console.log('aboutToDisappear');
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class MyNodeController extends NodeController {
+ public rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 100 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+ const rootRenderNode = this.rootNode!.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.backgroundColor = 0xff00ff00;
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode():string {
+ let resultStr: string = '';
+ if (this.rootNode!.getParent()!.getRenderNode() === null) {
+ resultStr += "cant not get renderNode from ArkTs Node";
+ }
+ if (this.rootNode?.getParent()?.getFirstChild()?.getRenderNode()) {
+ resultStr += ' can get renderNode from FrameNode';
+ }
+ if (this.rootNode?.getParent()?.getFirstChild()?.getFirstChild()?.getRenderNode()) {
+ resultStr += ' can get renderNode from BuilderNode';
+ }
+ return resultStr;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0260 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State text: string = '';
+
+ build() {
+ Column() {
+ Button("RenderNode")
+ .id('ActionEventCommonEventFrameNode0260')
+ .width(300)
+ .onClick(() => {
+ this.text = this.myNodeController.searchFrameNode();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0270.ets
new file mode 100644
index 0000000000000000000000000000000000000000..767fbfae053e26ff6ddc15b8f79452db83ab04dd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0270.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 { FrameNode, NodeController, BuilderNode } from "@kit.ArkUI";
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Text('This is a BuilderNode.')
+ .fontSize(16)
+ .fontWeight(FontWeight.Bold)
+ }
+ .width('100%')
+ .backgroundColor(Color.Gray)
+ }
+
+ aboutToAppear() {
+ console.log('aboutToAppear');
+ }
+
+ aboutToDisappear() {
+ console.log('aboutToDisappear');
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+ public ChildrenCount: number = 0;
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 100 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+
+ const rootRenderNode = this.rootNode!.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.backgroundColor = 0xff00ff00;
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+ return this.rootNode;
+ }
+
+ isRootNodeChildEqualsBuilderNodeFrameNode(): boolean {
+ let equals: boolean = this.rootNode?.getChild(1) == this.builderNode?.getFrameNode();
+ console.log("this rootNode getChild(1)==this.builderNode getFrameNode()" + equals);
+ return equals
+ }
+
+ isBuilderNodeFrameNodeModifiable(): boolean | undefined {
+ let modifiable: boolean | undefined = this.builderNode?.getFrameNode()?.isModifiable();
+ console.log("this.builderNode?.getFrameNode()?.isModifiable()" + modifiable);
+ return modifiable;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0270 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State equals: boolean = false;
+ @State modifiable: boolean|undefined =false;
+
+ build() {
+ Column({ space: 4 }) {
+ NodeContainer(this.myNodeController)
+ Text(`this rootNode getChild(1)==this.builderNode getFrameNode():${this.equals}`)
+ Text(`this.builderNode?.getFrameNode()?.isModifiable():${this.modifiable}`)
+ Button('getBuilderNode')
+ .id('ActionEventCommonEventFrameNode0270')
+ .onClick(() => {
+ this.equals = this.myNodeController.isRootNodeChildEqualsBuilderNodeFrameNode();
+ this.modifiable = this.myNodeController.isBuilderNodeFrameNodeModifiable();
+ })
+ .width('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0280.ets
new file mode 100644
index 0000000000000000000000000000000000000000..03c2756316d0f749d460ef8874f8e91194389284
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0280.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 { FrameNode, NodeController, BuilderNode } from "@kit.ArkUI";
+import { NodeContent, typeNode } from '@ohos.arkui.node';
+import { BusinessError } from '@kit.BasicServicesKit';
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Text('This is a BuilderNode.')
+ .fontSize(16)
+ .fontWeight(FontWeight.Bold)
+ }
+ .width('100%')
+ .backgroundColor(Color.Gray)
+ }
+
+ aboutToAppear() {
+ console.log('aboutToAppear');
+ }
+
+ aboutToDisappear() {
+ console.log('aboutToDisappear');
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+ public ChildrenCount: number = 0;
+ private uiContext: UIContext | null = null;
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.uiContext = uiContext;
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 100 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+
+ const rootRenderNode = this.rootNode!.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.backgroundColor = 0xff00ff00;
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+ return this.rootNode;
+ }
+
+ builderNodeAppendChild(): string {
+ let errorStr: string = '';
+ try {
+ let textNode = typeNode.createNode(this.uiContext, "Text")
+ this.builderNode?.getFrameNode()?.appendChild(textNode);
+ } catch (e) {
+ errorStr = "异常信息: "+(e as BusinessError).code + " : " + (e as BusinessError).message;
+ }
+ return errorStr
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0280 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State errorStr: string = '';
+
+ build() {
+ Column({ space: 4 }) {
+ NodeContainer(this.myNodeController)
+ Text(`${this.errorStr}`)
+ Button('checkError in BuilderNode')
+ .id('ActionEventCommonEventFrameNode0280')
+ .onClick(() => {
+ this.errorStr = this.myNodeController.builderNodeAppendChild();
+ })
+ .width('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0290.ets
new file mode 100644
index 0000000000000000000000000000000000000000..0835bfbf81b36a5e80aa9bca8d7dbd78f65b2b42
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0290.ets
@@ -0,0 +1,118 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { BuilderNode, NodeController, typeNode, FrameNode, UIContext } from '@kit.ArkUI';
+import { BusinessError } from '@kit.BasicServicesKit';
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Text('This is a BuilderNode.')
+ .fontSize(16)
+ .fontWeight(FontWeight.Bold)
+ }
+ .width('100%')
+ .backgroundColor(Color.Gray)
+ }
+
+ aboutToAppear() {
+ console.log('aboutToAppear');
+ }
+
+ aboutToDisappear() {
+ console.log('aboutToDisappear');
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class MyNodeController extends NodeController {
+ public rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+ private uiContext: UIContext | null = null;
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.uiContext = uiContext;
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 100 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+ const rootRenderNode = this.rootNode!.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.backgroundColor = 0xff00ff00;
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+ return this.rootNode;
+ }
+
+ insertChildAfter(): string {
+ let errorStr: string = '';
+ try {
+ let textInputNode = typeNode.createNode(this.uiContext, "TextInput")
+ textInputNode.attribute.width(200)
+ .height(200)
+ .borderWidth(1)
+ .borderColor(Color.Black)
+ .backgroundColor(0xAFEEEE)
+ this.builderNode?.getFrameNode()?.insertChildAfter(textInputNode, this.builderNode.getFrameNode());
+ } catch (e) {
+ errorStr = "异常信息: " + (e as BusinessError).code + " : " + (e as BusinessError).message;
+ }
+ return errorStr
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0290 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State text: string = '';
+
+ build() {
+ Column() {
+ Button("checkError in BuilderNode")
+ .id('ActionEventCommonEventFrameNode0290')
+ .width(300)
+ .onClick(() => {
+ this.text = this.myNodeController.insertChildAfter();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0300.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4b0c46b0fc9d903b457453301ebab3e031607bc0
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0300.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 { RenderNode, FrameNode, NodeController, BuilderNode } from "@kit.ArkUI";
+import { BusinessError } from '@kit.BasicServicesKit';
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Text('This is a BuilderNode.')
+ .fontSize(16)
+ .fontWeight(FontWeight.Bold)
+ }
+ .width('100%')
+ .backgroundColor(Color.Gray)
+ }
+
+ aboutToAppear() {
+ console.error('aboutToAppear');
+ }
+
+ aboutToDisappear() {
+ console.error('aboutToDisappear');
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 100 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+
+ const rootRenderNode = this.rootNode!.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.backgroundColor = 0xff00ff00;
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+
+ return this.rootNode;
+ }
+
+ throwError() {
+ try {
+ this.rootNode!.getParent()!.removeChild(this.builderNode!.getFrameNode());
+ } catch (err) {
+ console.log("异常信息: "+(err as BusinessError).code + " : " + (err as BusinessError).message);
+ this.text = "异常信息: "+(err as BusinessError).code + " : " + (err as BusinessError).message;
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0300 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column({ space: 4 }) {
+ NodeContainer(this.myNodeController)
+ Text(`${this.text}`).margin(20)
+ Button('checkError in BuilderNode')
+ .id('ActionEventCommonEventFrameNode0300')
+ .onClick(() => {
+ this.myNodeController.throwError();
+ this.onTextChange();
+ })
+ .width('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0310.ets
new file mode 100644
index 0000000000000000000000000000000000000000..148477cf0fa0e1628df97bf0aa2b42fd5d484ece
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0310.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 { RenderNode, FrameNode, NodeController, BuilderNode } from "@kit.ArkUI";
+import { BusinessError } from '@kit.BasicServicesKit';
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Text('This is a BuilderNode.')
+ .fontSize(16)
+ .fontWeight(FontWeight.Bold)
+ }
+ .width('100%')
+ .backgroundColor(Color.Gray)
+ }
+
+ aboutToAppear() {
+ console.error('aboutToAppear');
+ }
+
+ aboutToDisappear() {
+ console.error('aboutToDisappear');
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 100 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+
+ const rootRenderNode = this.rootNode!.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.backgroundColor = 0xff00ff00;
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+
+ return this.rootNode;
+ }
+
+ throwError() {
+ try {
+ this.rootNode!.getParent()!.clearChildren();
+ } catch (err) {
+ console.log("异常信息: "+(err as BusinessError).code + " : " + (err as BusinessError).message);
+ this.text = "异常信息: "+(err as BusinessError).code + " : " + (err as BusinessError).message;
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0310 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column({ space: 4 }) {
+ NodeContainer(this.myNodeController)
+ Text(`${this.text}`).margin(20)
+ Button('checkError in BuilderNode')
+ .id('ActionEventCommonEventFrameNode0310')
+ .onClick(() => {
+ this.myNodeController.throwError();
+ this.onTextChange();
+ })
+ .width('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0320.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8ee1b168a658da7f69efee2c5ff1125e0a357b97
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0320.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { FrameNode, NodeController, BuilderNode } from "@kit.ArkUI";
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Text('This is a BuilderNode.')
+ .fontSize(16)
+ .fontWeight(FontWeight.Bold)
+ }
+ .width('100%')
+ .backgroundColor(Color.Gray)
+ }
+
+ aboutToAppear() {
+ console.error('aboutToAppear');
+ }
+
+ aboutToDisappear() {
+ console.error('aboutToDisappear');
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+ public ChildrenCount:number = 0;
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 100 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+
+ const rootRenderNode = this.rootNode!.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.backgroundColor = 0xff00ff00;
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+
+ return this.rootNode;
+ }
+
+ getChildNumber() {
+ this.ChildrenCount = this.rootNode!.getChildrenCount();
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0320 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State count:number = 0;
+
+ build() {
+ Column({ space: 4 }) {
+ NodeContainer(this.myNodeController)
+ Text(`getChildNumber:${this.count}`)
+ Button('getChildNumber')
+ .id('ActionEventCommonEventFrameNode0320')
+ .onClick(() => {
+ this.myNodeController.getChildNumber();
+ this.count = this.myNodeController.ChildrenCount;
+ })
+ .width('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0360.ets
new file mode 100644
index 0000000000000000000000000000000000000000..75de5ebdff4a297cb5e166fd37574deae91e0314
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0360.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 { NodeController, FrameNode, BuilderNode } from '@kit.ArkUI';
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Text('This is a BuilderNode.')
+ .fontSize(16)
+ .fontWeight(FontWeight.Bold)
+ }
+ .width('100%')
+ .backgroundColor(Color.Gray)
+ }
+
+ aboutToAppear() {
+ console.error('aboutToAppear');
+ }
+
+ aboutToDisappear() {
+ console.error('aboutToDisappear');
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 100 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+
+ const rootRenderNode = this.rootNode.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.backgroundColor = 0xff00ff00;
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+
+ return this.rootNode;
+ }
+
+ disposeFrameNode() {
+ if (this.rootNode !== null && this.builderNode !== null) {
+ this.rootNode.removeChild(this.builderNode.getFrameNode());
+ this.builderNode.dispose();
+
+ this.rootNode.dispose();
+ }
+ }
+
+ removeBuilderNode() {
+ const rootRenderNode = this.rootNode!.getRenderNode();
+ if (rootRenderNode !== null && this.builderNode !== null && this.builderNode.getFrameNode() !== null) {
+ rootRenderNode.removeChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0360 {
+ private myNodeController: MyNodeController = new MyNodeController();
+
+ build() {
+ Column({ space: 4 }) {
+ NodeContainer(this.myNodeController)
+ Button('FrameNode dispose')
+ .id('ActionEventCommonEventFrameNode0360')
+ .onClick(() => {
+ this.myNodeController.disposeFrameNode();
+ })
+ .width('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0370.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e7cf6a8ce6712c9f381f65fdad631db7646d8e43
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0370.ets
@@ -0,0 +1,79 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController , FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ return this.rootNode;
+ }
+
+ getRenderNode():string {
+ if (this.rootNode?.getParent()!.getRenderNode()) {
+ return '';
+ } else {
+ console.log("can not get renderNode from ArkTs Node");
+ return "can not get renderNode from ArkTs Node";
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0370 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("GetRenderNode")
+ .id('ActionEventCommonEventFrameNode0370')
+ .width(300)
+ .onClick(() => {
+ this.text = this.myNodeController.getRenderNode();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0380.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1238243c233bf828b8a594f3b142c8be310a16ea
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0380.ets
@@ -0,0 +1,78 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ return this.rootNode;
+ }
+
+ getRenderNode():string {
+ if (this.rootNode!.getRenderNode()) {
+ return"can get renderNode from FrameNode";
+ } else {
+ return "";
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0380 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getRenderNode")
+ .id('ActionEventCommonEventFrameNode0380')
+ .width(300)
+ .onClick(() => {
+ this.text = this.myNodeController.getRenderNode();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0390.ets
new file mode 100644
index 0000000000000000000000000000000000000000..d71ee50ec88ba88dd15ace7463e32f4d37c7e318
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0390.ets
@@ -0,0 +1,107 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, BuilderNode, FrameNode, UIContext } from '@kit.ArkUI';
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Text('This is a BuilderNode.')
+ .fontSize(16)
+ .fontWeight(FontWeight.Bold)
+ }
+ .width('100%')
+ .backgroundColor(Color.Gray)
+ }
+
+ aboutToAppear() {
+ console.error('aboutToAppear');
+ }
+
+ aboutToDisappear() {
+ console.error('aboutToDisappear');
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class MyNodeController extends NodeController {
+ private builderNode: BuilderNode<[]> | null = null;
+ private rootNode: FrameNode | null = null;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 100 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+ return this.rootNode;
+ }
+
+ getRenderNode(): string {
+ if (this.builderNode?.getFrameNode()?.getRenderNode()) {
+ return "can get renderNode from BuilderNode";
+ } else {
+ return "";
+ }
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0390 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("获取RenderNode")
+ .id('ActionEventCommonEventFrameNode0390')
+ .width(300)
+ .onClick(() => {
+ this.text = this.myNodeController.getRenderNode();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0400.ets
new file mode 100644
index 0000000000000000000000000000000000000000..552b624eb475f0e26074592ef6fbb46c47d6886e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode0400.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 { FrameNode, NodeController, BuilderNode } from "@kit.ArkUI";
+import { NodeContent, typeNode } from '@ohos.arkui.node';
+import { BusinessError } from '@kit.BasicServicesKit';
+
+@Component
+struct TestComponent {
+ build() {
+ Column() {
+ Text('This is a BuilderNode.')
+ .fontSize(16)
+ .fontWeight(FontWeight.Bold)
+ }
+ .width('100%')
+ .backgroundColor(Color.Gray)
+ }
+
+ aboutToAppear() {
+ console.log('aboutToAppear');
+ }
+
+ aboutToDisappear() {
+ console.log('aboutToDisappear');
+ }
+}
+
+@Builder
+function buildComponent() {
+ TestComponent()
+}
+
+class MyNodeController extends NodeController {
+ private rootNode: FrameNode | null = null;
+ private builderNode: BuilderNode<[]> | null = null;
+ public ChildrenCount: number = 0;
+ private uiContext: UIContext | null = null;
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.uiContext = uiContext;
+ this.rootNode = new FrameNode(uiContext);
+ this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 200, height: 100 } });
+ this.builderNode.build(new WrappedBuilder(buildComponent));
+
+ const rootRenderNode = this.rootNode!.getRenderNode();
+ if (rootRenderNode !== null) {
+ rootRenderNode.size = { width: 200, height: 200 };
+ rootRenderNode.backgroundColor = 0xff00ff00;
+ rootRenderNode.appendChild(this.builderNode!.getFrameNode()!.getRenderNode());
+ }
+ return this.rootNode;
+ }
+
+ builderNodeAppendChild(): string {
+ let errorStr: string = '';
+ try {
+ let textNode = typeNode.createNode(this.uiContext, "Text");
+ this.builderNode?.getFrameNode()?.appendChild(textNode);
+ } catch (e) {
+ errorStr = "异常信息: "+(e as BusinessError).code + " : " + (e as BusinessError).message;
+ }
+ return errorStr
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode0400 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State errorStr: string = '';
+
+ build() {
+ Column({ space: 4 }) {
+ NodeContainer(this.myNodeController)
+ Text(`${this.errorStr}`)
+ Button('checkError in ArkTsNode')
+ .id('ActionEventCommonEventFrameNode0400')
+ .onClick(() => {
+ this.errorStr = this.myNodeController.builderNodeAppendChild();
+ })
+ .width('100%')
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4000.ets
new file mode 100644
index 0000000000000000000000000000000000000000..5934402e409bd7abe4955584b7aab21f7bdb682c
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4000.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getPositionToWindow result:${JSON.stringify(this.rootNode!.getPositionToWindow())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4000 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getPositionToWindow")
+ .id('ActionEventCommonEventFrameNode4000')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4010.ets
new file mode 100644
index 0000000000000000000000000000000000000000..43a5af57828dd0e738985f1e346499ac3d0215d1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4010.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getPositionToParent result:${JSON.stringify(this.rootNode!.getPositionToParent())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4010 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getPositionToParent")
+ .id('ActionEventCommonEventFrameNode4010')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4020.ets
new file mode 100644
index 0000000000000000000000000000000000000000..03281f111c76d44f3d4de8cfc60ff51ce7c3160f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4020.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getPositionToScreen result:${JSON.stringify(this.rootNode!.getPositionToScreen())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4020 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getPositionToParent")
+ .id('ActionEventCommonEventFrameNode4020')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4030.ets
new file mode 100644
index 0000000000000000000000000000000000000000..c054b7159001ae77cf91112062203db274cd029b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4030.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getPositionToParentWithTransform result:${JSON.stringify(this.rootNode!.getPositionToParentWithTransform())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4030 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getPositionToParentWithTransform")
+ .id('ActionEventCommonEventFrameNode4030')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4040.ets
new file mode 100644
index 0000000000000000000000000000000000000000..81a69f393d62f5040f1c9296e3a0247c9e22a93f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4040.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getPositionToWindowWithTransformresult:${JSON.stringify(this.rootNode!.getPositionToWindowWithTransform())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4040 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getPositionToWindowWithTransform")
+ .id('ActionEventCommonEventFrameNode4040')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4050.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7c849a0d079c0d76e993377979f07ab7c9f10167
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4050.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getPositionToScreenWithTransform:${JSON.stringify(this.rootNode!.getPositionToScreenWithTransform())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4050 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getPositionToScreenWithTransform")
+ .id('ActionEventCommonEventFrameNode4050')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4060.ets
new file mode 100644
index 0000000000000000000000000000000000000000..ba8b39832ddd6fba3d03a6f9e106d0503a0762c8
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4060.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getMeasuredSize result:${JSON.stringify(this.rootNode!.getMeasuredSize())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4060 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getMeasuredSize")
+ .id('ActionEventCommonEventFrameNode4060')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4070.ets
new file mode 100644
index 0000000000000000000000000000000000000000..54e17768e3ccf0fb86bca699cb2b4a1c4e9fb75e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4070.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getLayoutPosition result:${JSON.stringify(this.rootNode!.getLayoutPosition())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4070 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getPositionToScreenWithTransform")
+ .id('ActionEventCommonEventFrameNode4070')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4080.ets
new file mode 100644
index 0000000000000000000000000000000000000000..f3b18993aeba6b125b094252c2cd8fbf511f56dd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4080.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getUserConfigBorderWidth result:${JSON.stringify(this.rootNode!.getUserConfigBorderWidth())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4080 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getUserConfigPadding")
+ .id('ActionEventCommonEventFrameNode4080')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4090.ets
new file mode 100644
index 0000000000000000000000000000000000000000..3cc04642284169a8a910179151e6eeaf698fd3c1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4090.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getUserConfigPadding result:${JSON.stringify(this.rootNode!.getUserConfigPadding())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4090 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getUserConfigPadding")
+ .id('ActionEventCommonEventFrameNode4090')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4100.ets
new file mode 100644
index 0000000000000000000000000000000000000000..89d282dca0459283184f9c054482de35dc9ba347
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4100.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getUserConfigMargin result:${JSON.stringify(this.rootNode!.getUserConfigMargin())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4100 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getPositionToScreenWithTransform")
+ .id('ActionEventCommonEventFrameNode4100')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4110.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7d01b266d5a9abe9f0cead3ca8274003d7faaaf4
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4110.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getUserConfigSize result:${JSON.stringify(this.rootNode!.getUserConfigSize())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4110 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getUserConfigSize")
+ .id('ActionEventCommonEventFrameNode4110')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4120.ets
new file mode 100644
index 0000000000000000000000000000000000000000..df7049c0e35f403126be069cdd0677febb315ac3
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4120.ets
@@ -0,0 +1,89 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ this.rootNode.commonAttribute.id('ActionEventCommonEventFrameNode4120')
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getId result: ${this.rootNode!.getId()}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4120 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getUserConfigSize")
+ .id('ActionEventCommonEventFrameNode4120')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4130.ets
new file mode 100644
index 0000000000000000000000000000000000000000..175be2f7f89c89168a9caa3966852e3afbf99f97
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4130.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getUniqueID result:${JSON.stringify(this.rootNode!.getUniqueId())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4130 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getUserConfigSize")
+ .id('ActionEventCommonEventFrameNode4130')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4140.ets
new file mode 100644
index 0000000000000000000000000000000000000000..2fe0e5fe56b6cba6b7cc511814d920bfc70e42dd
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4140.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getNodeType result:${JSON.stringify(this.rootNode!.getNodeType())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4140 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getUserConfigSize")
+ .id('ActionEventCommonEventFrameNode4140')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4150.ets
new file mode 100644
index 0000000000000000000000000000000000000000..74edd3e8b93fcf148633179b0b12c1a1d2eab65f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4150.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getOpacity result:${JSON.stringify(this.rootNode!.getOpacity())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4150 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getOpacity")
+ .id('ActionEventCommonEventFrameNode4150')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4170.ets
new file mode 100644
index 0000000000000000000000000000000000000000..6dfb69e62e31bc2a34bbb193281e75f1aa04084f
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4170.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `isClipToFrame result:${JSON.stringify(this.rootNode!.isClipToFrame())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4170 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("isClipToFrame")
+ .id('ActionEventCommonEventFrameNode4170')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4180.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7818c46ba61ebd3436e716f170aee66946b17cb1
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4180.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `isAttached result:${JSON.stringify(this.rootNode!.isAttached())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4180 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("isAttached")
+ .id('ActionEventCommonEventFrameNode4180')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4190.ets
new file mode 100644
index 0000000000000000000000000000000000000000..7503e8eca9886898cafafc1f140ad5b236e8b708
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4190.ets
@@ -0,0 +1,88 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the 'License')
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList: Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ public text: string = '';
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+
+ searchFrameNode() {
+ this.text = `getInspectorlnfo result:${JSON.stringify(this.rootNode!.getInspectorInfo())}`;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4190 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State index: number = 0;
+ @State text: string = '';
+
+ onTextChange() {
+ this.text = this.myNodeController.text;
+ }
+
+ build() {
+ Column() {
+ Button("getInspectorInfo")
+ .id('ActionEventCommonEventFrameNode4190')
+ .width(300)
+ .onClick(() => {
+ this.myNodeController.searchFrameNode();
+ this.onTextChange();
+ })
+ Text(`${this.text}`).margin(20)
+ Column() {
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center)
+ .borderRadius(10)
+ .backgroundColor(0xFFFFFF)
+ .width('100%')
+ .fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({
+ left: 35,
+ right: 35,
+ top: 35,
+ bottom: 35
+ })
+ .width("100%")
+ .height("100%")
+ }
+}
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4200.ets
new file mode 100644
index 0000000000000000000000000000000000000000..79c473c3b2ec2fedbfbc93259d5ee259c4bffb1a
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4200.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.
+ */
+
+import { NodeController, FrameNode, UIContext } from '@kit.ArkUI';
+
+const TEST_TAG : string = "FrameNode"
+class MyNodeController extends NodeController {
+ public frameNode: FrameNode | null = null;
+ public childList:Array = new Array();
+ private rootNode: FrameNode | null = null;
+ private uiContext: UIContext | null = null;
+ private childrenCount: number = 0;
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new FrameNode(uiContext);
+ this.childrenCount = this.childrenCount + 1;
+ this.uiContext = uiContext;
+ this.frameNode = new FrameNode(uiContext);
+ this.rootNode.appendChild(this.frameNode);
+ for (let i = 0; i < 10; i++) {
+ let childNode = new FrameNode(uiContext);
+ this.childList.push(childNode);
+ this.frameNode.appendChild(childNode);
+ }
+ return this.rootNode;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4200 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State text : string = '';
+ @State index : number = 0;
+
+ onTextChange(text:string) {
+ this.text = text
+ }
+ build() {
+ Column() {
+ Text(this.text).margin(20)
+ Button("getCustomProperty")
+ .margin(20)
+ .width(300)
+ .onClick(()=>{
+ const uiContext: UIContext = this.getUIContext();
+ if (uiContext) {
+ const node: FrameNode | null = uiContext.getFrameNodeById("Test_Button") || null;
+ if (node) {
+ const key = 'customProperty' + 1;
+ const property = node.getCustomProperty(key);
+ console.log(TEST_TAG + key, JSON.stringify(property));
+ this.onTextChange(`${JSON.stringify(property)}`)
+ }
+ }
+ })
+ .id('Test_Button')
+ .customProperty('customProperty1', {
+ 'number': 10,
+ 'string': 'this is a string',
+ 'bool': true,
+ 'object': {
+ 'name': 'name',
+ 'value': 100
+ }
+ })
+ .customProperty('customProperty2', {})
+ .customProperty('customProperty2', undefined)
+ Column(){
+ Text("This is a NodeContainer.")
+ .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF)
+ .width('100%').fontSize(16)
+ NodeContainer(this.myNodeController)
+ .borderWidth(1)
+ .width(300)
+ .height(100)
+ }
+ }
+ .padding({ left: 35, right: 35, top: 35, bottom: 35 })
+ .width("100%")
+ .height("100%")
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4210.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e517ac633f831db72ce77dd9c5166c8f584f34ea
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4210.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 { NodeController, FrameNode, LayoutConstraint } from '@kit.ArkUI';
+import { drawing } from '@kit.ArkGraphics2D';
+
+function GetChildLayoutConstraint(constraint: LayoutConstraint, child: FrameNode): LayoutConstraint {
+ const size = child.getUserConfigSize();
+ const width = Math.max(
+ Math.min(constraint.maxSize.width, size.width.value),
+ constraint.minSize.width
+ );
+ const height = Math.max(
+ Math.min(constraint.maxSize.height, size.height.value),
+ constraint.minSize.height
+ );
+ const finalSize: Size = { width, height };
+ const res: LayoutConstraint = {
+ maxSize: finalSize,
+ minSize: finalSize,
+ percentReference: finalSize
+ };
+
+ return res;
+}
+
+class MyFrameNode extends FrameNode {
+ public width: number = 10;
+ private space: number = 1;
+
+ onMeasure(constraint: LayoutConstraint): void {
+ let sizeRes: Size = { width: 100, height: 100 };
+ for (let i = 0; i < this.getChildrenCount(); i++) {
+ let child = this.getChild(i);
+ if (child) {
+ let childConstraint = GetChildLayoutConstraint(constraint, child);
+ child.measure(childConstraint);
+ let size = child.getMeasuredSize();
+ sizeRes.height += size.height + this.space;
+ sizeRes.width = Math.max(sizeRes.width, size.width);
+ }
+ }
+ this.setMeasuredSize(sizeRes);
+ console.info('sally onMeasure result')
+ AppStorage.setOrCreate('onMeasureLog', 'onMeasure result');
+ }
+
+ onDraw(context: DrawContext) {
+ const canvas = context.canvas;
+ const pen = new drawing.Pen();
+ pen.setStrokeWidth(5);
+ pen.setColor({
+ alpha: 255,
+ red: 255,
+ green: 0,
+ blue: 0
+ });
+ canvas.attachPen(pen);
+ canvas.drawRect({
+ left: 0,
+ right: this.width,
+ top: 0,
+ bottom: this.width
+ });
+ canvas.detachPen();
+ }
+
+ addWidth() {
+ this.width += 10;
+ }
+}
+
+class MyNodeController extends NodeController {
+ public rootNode: MyFrameNode | null = null;
+
+ makeNode(context: UIContext): FrameNode | null {
+ this.rootNode = new MyFrameNode(context);
+ this.rootNode?.commonAttribute?.size({ width: 100, height: 100 }).backgroundColor(Color.Green);
+ return this.rootNode;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4210 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @State log: string = ''
+ @StorageProp('onMeasureLog') onMeasureLog: string = ''
+
+ build() {
+ Column({ space: 4 }) {
+ NodeContainer(this.myNodeController)
+
+ Text(this.onMeasureLog)
+ .width('100%')
+ .margin({ top: 10, left: 20 })
+ .fontSize(16)
+ }
+ }
+}
\ No newline at end of file
diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4220.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e600f3ca8dfcb54d1476d7b556f3231359571a8e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4220.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 { UIContext, DrawContext, FrameNode, NodeController, LayoutConstraint, Size, Position } from '@kit.ArkUI';
+import { drawing } from '@kit.ArkGraphics2D';
+
+function GetChildLayoutConstraint(constraint: LayoutConstraint, child: FrameNode): LayoutConstraint {
+ const size = child.getUserConfigSize();
+ const width = Math.max(
+ Math.min(constraint.maxSize.width, size.width.value),
+ constraint.minSize.width
+ );
+ const height = Math.max(
+ Math.min(constraint.maxSize.height, size.height.value),
+ constraint.minSize.height
+ );
+ const finalSize: Size = { width, height };
+ const res: LayoutConstraint = {
+ maxSize: finalSize,
+ minSize: finalSize,
+ percentReference: finalSize
+ };
+
+ return res;
+}
+
+class MyFrameNode extends FrameNode {
+ public width: number = 10;
+ private space: number = 1;
+
+ onMeasure(constraint: LayoutConstraint): void {
+ let sizeRes: Size = { width: 100, height: 100 };
+ for (let i = 0;i < this.getChildrenCount();i++) {
+ let child = this.getChild(i);
+ if (child) {
+ let childConstraint = GetChildLayoutConstraint(constraint, child);
+ child.measure(childConstraint);
+ let size = child.getMeasuredSize();
+ sizeRes.height += size.height + this.space;
+ sizeRes.width = Math.max(sizeRes.width, size.width);
+ }
+ }
+ this.setMeasuredSize(sizeRes);
+ }
+
+ onLayout(position: Position): void {
+ let y = 0;
+ for (let i = 0;i < this.getChildrenCount();i++) {
+ let child = this.getChild(i);
+ if (child) {
+ child.layout({
+ x: 20,
+ y: y
+ });
+ y += child.getMeasuredSize().height + this.space;
+ }
+ }
+ this.setLayoutPosition(position);
+ console.info('sally onLayout success')
+ AppStorage.setOrCreate('onLayoutLog', 'onLayout success');
+ }
+
+ onDraw(context: DrawContext) {
+ const canvas = context.canvas;
+ const pen = new drawing.Pen();
+ pen.setStrokeWidth(5);
+ pen.setColor({ alpha: 255, red: 255, green: 0, blue: 0 });
+ canvas.attachPen(pen);
+ canvas.drawRect({ left: 0, right: this.width, top: 0, bottom: this.width });
+ canvas.detachPen();
+ }
+
+ addWidth() {
+ this.width += 10;
+ }
+}
+
+class MyNodeController extends NodeController {
+ public rootNode: MyFrameNode | null = null;
+
+ makeNode(context: UIContext): FrameNode | null {
+ this.rootNode = new MyFrameNode(context);
+ this.rootNode?.commonAttribute?.size({ width: 100, height: 100 }).backgroundColor(Color.Green);
+ return this.rootNode;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4220 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @StorageProp('onLayoutLog') onLayoutLog: string = ''
+
+ build() {
+ Row() {
+ Column() {
+ NodeContainer(this.myNodeController)
+ .width('100%')
+ .height(100)
+ .backgroundColor('#FFF0F0F0')
+
+ Text(this.onLayoutLog)
+ .width('100%')
+ .margin({ top: 10, left: 20 })
+ .fontSize(16)
+ }
+ .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/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4230.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b09a01b46271b168ae09ace57cdd62145dc28b5b
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4230.ets
@@ -0,0 +1,156 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { UIContext, DrawContext, FrameNode, NodeController, LayoutConstraint, Size, Position } from '@kit.ArkUI';
+import { drawing } from '@kit.ArkGraphics2D';
+
+function GetChildLayoutConstraint(constraint: LayoutConstraint, child: FrameNode): LayoutConstraint {
+ const size = child.getUserConfigSize();
+ const width = Math.max(
+ Math.min(constraint.maxSize.width, size.width.value),
+ constraint.minSize.width
+ );
+ const height = Math.max(
+ Math.min(constraint.maxSize.height, size.height.value),
+ constraint.minSize.height
+ );
+ const finalSize: Size = { width, height };
+ const res: LayoutConstraint = {
+ maxSize: finalSize,
+ minSize: finalSize,
+ percentReference: finalSize
+ };
+
+ return res;
+}
+
+class MyFrameNode extends FrameNode {
+ public width: number = 10;
+ private space: number = 1;
+
+ onMeasure(constraint: LayoutConstraint): void {
+ let sizeRes: Size = { width: 100, height: 100 };
+ for (let i = 0; i < this.getChildrenCount(); i++) {
+ let child = this.getChild(i);
+ if (child) {
+ let childConstraint = GetChildLayoutConstraint(constraint, child);
+ child.measure(childConstraint);
+ let size = child.getMeasuredSize();
+ sizeRes.height += size.height + this.space;
+ sizeRes.width = Math.max(sizeRes.width, size.width);
+ }
+ }
+ this.setMeasuredSize(sizeRes);
+ console.info('sally setMeasuredSize success')
+ AppStorage.setOrCreate('setMeasuredSizeLog', 'setMeasuredSize success');
+ }
+
+ onLayout(position: Position): void {
+ let y = 0;
+ for (let i = 0; i < this.getChildrenCount(); i++) {
+ let child = this.getChild(i);
+ if (child) {
+ child.layout({
+ x: 20,
+ y: y
+ });
+ y += child.getMeasuredSize().height + this.space;
+ }
+ }
+ this.setLayoutPosition(position);
+ }
+
+ onDraw(context: DrawContext) {
+ const canvas = context.canvas;
+ const pen = new drawing.Pen();
+ pen.setStrokeWidth(5);
+ pen.setColor({
+ alpha: 255,
+ red: 255,
+ green: 0,
+ blue: 0
+ });
+ canvas.attachPen(pen);
+ canvas.drawRect({
+ left: 0,
+ right: this.width,
+ top: 0,
+ bottom: this.width
+ });
+ canvas.detachPen();
+ }
+
+ addWidth() {
+ this.width += 10;
+ }
+}
+
+class MyNodeController extends NodeController {
+ public rootNode: MyFrameNode | null = null;
+
+ makeNode(context: UIContext): FrameNode | null {
+ this.rootNode = new MyFrameNode(context);
+ this.rootNode?.commonAttribute?.size({ width: 100, height: 100 }).backgroundColor(Color.Green);
+ return this.rootNode;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4230 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @StorageProp('setMeasuredSizeLog') setMeasuredSizeLog: string = ''
+
+ build() {
+ Row() {
+ Column() {
+ NodeContainer(this.myNodeController)
+ .width('100%')
+ .height(100)
+ .backgroundColor('#FFF0F0F0')
+ Button('setMeasuredSize1')
+ .id('setMeasuredSize1')
+ .onClick(() => {
+ const finalSize: Size = { width: 200, height: 300 };
+ const res: LayoutConstraint = {
+ maxSize: finalSize,
+ minSize: finalSize,
+ percentReference: finalSize
+ };
+ this.myNodeController?.rootNode?.onMeasure(res);
+ })
+ Button('setMeasuredSize2')
+ .id('setMeasuredSize2')
+ .onClick(() => {
+ const finalSize: Size = { width: 100, height: 200 };
+ const res: LayoutConstraint = {
+ maxSize: finalSize,
+ minSize: finalSize,
+ percentReference: finalSize
+ };
+ this.myNodeController?.rootNode?.onMeasure(res);
+ })
+
+ Text(this.setMeasuredSizeLog)
+ .width('100%')
+ .margin({ top: 10, left: 20 })
+ .fontSize(16)
+ }
+ .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/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4240.ets
new file mode 100644
index 0000000000000000000000000000000000000000..1202c0ab935e9c2e30dc4ec1042357df96906c9e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4240.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.
+ */
+import { UIContext, DrawContext, FrameNode, NodeController, Position, RenderNode } from '@kit.ArkUI';
+import { drawing } from '@kit.ArkGraphics2D';
+
+class MyRenderNode extends RenderNode {
+ draw(context: DrawContext) {
+ let canvas = context.canvas;
+
+ const brush = new drawing.Brush();
+ brush.setColor({
+ alpha: 255,
+ red: 0,
+ green: 74,
+ blue: 175
+ });
+ const font = new drawing.Font();
+ font.setSize(25);
+ const textBlob = drawing.TextBlob.makeFromString('Hello RenderNode',
+ font,
+ drawing.TextEncoding.TEXT_ENCODING_UTF8);
+ canvas.attachBrush(brush);
+ canvas.drawRect({
+ left: 20,
+ right: 260,
+ top: 0,
+ bottom: 60
+ });
+
+ brush.setColor({
+ alpha: 255,
+ red: 23,
+ green: 169,
+ blue: 141
+ });
+ canvas.attachBrush(brush);
+ canvas.drawTextBlob(textBlob, 20, 20);
+ canvas.detachBrush();
+ }
+}
+
+class MyFrameNode extends FrameNode {
+ public width: number = 10;
+ private space: number = 1;
+
+ onLayout(position: Position): void {
+ let y = 0;
+ for (let i = 0; i < this.getChildrenCount(); i++) {
+ let child = this.getChild(i);
+ if (child) {
+ child.layout({
+ x: 20,
+ y: y
+ });
+ y += child.getMeasuredSize().height + this.space;
+ }
+ }
+ this.setLayoutPosition(position);
+ console.info('sally setLayoutPosition success')
+ AppStorage.setOrCreate('setLayoutPositionLog', 'setLayoutPosition success');
+ }
+
+ onDraw(context: DrawContext) {
+ const canvas = context.canvas;
+ const pen = new drawing.Pen();
+ pen.setStrokeWidth(5);
+ pen.setColor({
+ alpha: 255,
+ red: 255,
+ green: 0,
+ blue: 0
+ });
+ canvas.attachPen(pen);
+ canvas.drawRect({
+ left: 20,
+ right: 500,
+ top: 0,
+ bottom: 100
+ });
+ canvas.detachPen();
+ }
+
+ addWidth() {
+ this.width += 10;
+ }
+}
+
+class MyNodeController extends NodeController {
+ public rootNode: MyFrameNode | null = null;
+
+ makeNode(uiContext: UIContext): FrameNode | null {
+ this.rootNode = new MyFrameNode(uiContext);
+
+ const rootRenderNode = this.rootNode.getRenderNode();
+ if (rootRenderNode !== null) {
+ const renderNode = new MyRenderNode();
+ renderNode.size = { width: 500, height: 500 }
+ rootRenderNode.appendChild(renderNode);
+ }
+
+ return this.rootNode;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4240 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @StorageProp('setLayoutPositionLog') setLayoutPositionLog: string = ''
+
+ build() {
+ Row() {
+ Column() {
+ NodeContainer(this.myNodeController)
+ .width('100%')
+ .height(100)
+ .backgroundColor('#FFF0F0F0')
+
+ Button('setLayoutPosition1')
+ .id('setLayoutPosition1')
+ .onClick(() => {
+ this.myNodeController?.rootNode?.onLayout({x:100,y:200})
+ })
+ Button('setLayoutPosition2')
+ .id('setLayoutPosition2')
+ .onClick(() => {
+ this.myNodeController?.rootNode?.onLayout({x:300,y:100})
+ })
+
+ Text(this.setLayoutPositionLog)
+ .width('100%')
+ .margin({ top: 10, left: 20 })
+ .fontSize(16)
+ }
+ .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/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4250.ets
new file mode 100644
index 0000000000000000000000000000000000000000..dee48acbc393c1714d2238438ef9fc7037e95504
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4250.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 { UIContext, DrawContext, FrameNode, NodeController, LayoutConstraint, Size, Position } from '@kit.ArkUI';
+import { drawing } from '@kit.ArkGraphics2D';
+
+function GetChildLayoutConstraint(constraint: LayoutConstraint, child: FrameNode): LayoutConstraint {
+ const size = child.getUserConfigSize();
+ const width = Math.max(
+ Math.min(constraint.maxSize.width, size.width.value),
+ constraint.minSize.width
+ );
+ const height = Math.max(
+ Math.min(constraint.maxSize.height, size.height.value),
+ constraint.minSize.height
+ );
+ const finalSize: Size = { width, height };
+ const res: LayoutConstraint = {
+ maxSize: finalSize,
+ minSize: finalSize,
+ percentReference: finalSize
+ };
+
+ return res;
+}
+
+class MyFrameNode extends FrameNode {
+ public width: number = 10;
+ private space: number = 1;
+
+ onMeasure(constraint: LayoutConstraint): void {
+ let sizeRes: Size = { width: 100, height: 100 };
+ for (let i = 0; i < this.getChildrenCount(); i++) {
+ let child = this.getChild(i);
+ if (child) {
+ let childConstraint = GetChildLayoutConstraint(constraint, child);
+ child.measure(childConstraint);
+ let size = child.getMeasuredSize();
+ sizeRes.height += size.height + this.space;
+ sizeRes.width = Math.max(sizeRes.width, size.width);
+ }
+ }
+ console.info('sally measure success')
+ AppStorage.setOrCreate('measureLog', 'measure result '+JSON.stringify(sizeRes));
+ this.setMeasuredSize(sizeRes);
+ }
+
+ onLayout(position: Position): void {
+ let y = 0;
+ for (let i = 0; i < this.getChildrenCount(); i++) {
+ let child = this.getChild(i);
+ if (child) {
+ child.layout({
+ x: 20,
+ y: y
+ });
+ y += child.getMeasuredSize().height + this.space;
+ }
+ }
+ this.setLayoutPosition(position);
+ }
+
+ onDraw(context: DrawContext) {
+ const canvas = context.canvas;
+ const pen = new drawing.Pen();
+ pen.setStrokeWidth(5);
+ pen.setColor({
+ alpha: 255,
+ red: 255,
+ green: 0,
+ blue: 0
+ });
+ canvas.attachPen(pen);
+ canvas.drawRect({
+ left: 0,
+ right: this.width,
+ top: 0,
+ bottom: this.width
+ });
+ canvas.detachPen();
+ }
+
+ addWidth() {
+ this.width += 10;
+ }
+}
+
+class MyNodeController extends NodeController {
+ public rootNode: MyFrameNode | null = null;
+
+ makeNode(context: UIContext): FrameNode | null {
+ this.rootNode = new MyFrameNode(context);
+ this.rootNode?.commonAttribute?.size({ width: 100, height: 100 }).backgroundColor(Color.Green);
+ return this.rootNode;
+ }
+}
+
+@Entry
+@Component
+struct ActionEventCommonEventFrameNode4250 {
+ private myNodeController: MyNodeController = new MyNodeController();
+ @StorageProp('measureLog') measureLog: string = ''
+ build() {
+ Row() {
+ Column() {
+ NodeContainer(this.myNodeController)
+ .width('100%')
+ .height(100)
+ .backgroundColor('#FFF0F0F0')
+ Button('measure')
+ .id('measure')
+ .onClick(() => {
+ const finalSize: Size = { width:200, height:300 };
+ const res: LayoutConstraint = {
+ maxSize: finalSize,
+ minSize: finalSize,
+ percentReference: finalSize
+ };
+ this.myNodeController?.rootNode?.measure(res)
+ })
+
+ Text(this.measureLog)
+ .width('100%')
+ .margin({ top: 10, left: 20 })
+ .fontSize(16)
+ }
+ .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/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4260.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e26ca3776b80735b5370d18bef5b90529002712e
--- /dev/null
+++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventFrameNode/ActionEventCommonEventFrameNode4260.ets
@@ -0,0 +1,155 @@
+/*
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { UIContext, DrawContext, FrameNode, NodeController, LayoutConstraint, Size, Position,
+ ComponentContent } from '@kit.ArkUI';
+import { drawing } from '@kit.ArkGraphics2D';
+
+function GetChildLayoutConstraint(constraint: LayoutConstraint, child: FrameNode): LayoutConstraint {
+ const size = child.getUserConfigSize();
+ const width = Math.max(
+ Math.min(constraint.maxSize.width, size.width.value),
+ constraint.minSize.width
+ );
+ const height = Math.max(
+ Math.min(constraint.maxSize.height, size.height.value),
+ constraint.minSize.height
+ );
+ const finalSize: Size = { width, height };
+ const res: LayoutConstraint = {
+ maxSize: finalSize,
+ minSize: finalSize,
+ percentReference: finalSize
+ };
+
+ return res;
+}
+
+class MyFrameNode extends FrameNode {
+ public width: number = 10;
+ private space: number = 1;
+
+ onMeasure(constraint: LayoutConstraint): void {
+ let sizeRes: Size = { width: 100, height: 100 };
+ for (let i = 0; i < this.getChildrenCount(); i++) {
+ let child = this.getChild(i);
+ if (child) {
+ let childConstraint = GetChildLayoutConstraint(constraint, child);
+ child.measure(childConstraint);
+ let size = child.getMeasuredSize();
+ sizeRes.height += size.height + this.space;
+ sizeRes.width = Math.max(sizeRes.width, size.width);
+ }
+ }
+ console.info('sally measure success')
+ AppStorage.setOrCreate('measureLog', 'measure result ' + JSON.stringify(sizeRes));
+ this.setMeasuredSize(sizeRes);
+ }
+
+ onLayout(position: Position): void {
+ let y = 0;
+ for (let i = 0; i < this.getChildrenCount(); i++) {
+ let child = this.getChild(i);
+ if (child) {
+ child.layout({
+ x: 20,
+ y: y
+ });
+ y += child.getMeasuredSize().height + this.space;
+ console.info('sally layout result ')
+ AppStorage.setOrCreate('layoutLog', 'layout result ');
+ }
+ }
+ this.setLayoutPosition(position);
+ }
+
+ onDraw(context: DrawContext) {
+ const canvas = context.canvas;
+ const pen = new drawing.Pen();
+ pen.setStrokeWidth(5);
+ pen.setColor({
+ alpha: 255,
+ red: 255,
+ green: 0,
+ blue: 0
+ });
+ canvas.attachPen(pen);
+ canvas.drawRect({
+ left: 0,
+ right: this.width,
+ top: 0,
+ bottom: this.width
+ });
+ canvas.detachPen();
+ }
+
+ addWidth() {
+ this.width += 10;
+ }
+}
+
+@Builder
+function buildText() {
+ Column() {
+ Text('hello word')
+ .width(50)
+ .height(50)
+ .backgroundColor(Color.Yellow)
+ }
+}
+
+class MyNodeController extends NodeController {
+ public rootNode: MyFrameNode | null = null;
+
+ makeNode(context: UIContext): FrameNode | null {
+ this.rootNode = new MyFrameNode(context);
+ this.rootNode?.commonAttribute?.size({ width: 100, height: 100 }).backgroundColor(Color.Green);
+ let component = new ComponentContent