diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/blue_icon.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/blue_icon.png new file mode 100755 index 0000000000000000000000000000000000000000..7ffc1e042e0d89e68a11f9c4da22a6723fcc4061 Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/blue_icon.png differ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/gray_icon.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/gray_icon.png new file mode 100755 index 0000000000000000000000000000000000000000..e3c7e3edad919318b24b03ee163c2cf4a8b057e1 Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/gray_icon.png differ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/red_icon.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/red_icon.png new file mode 100755 index 0000000000000000000000000000000000000000..c9a1d747c6d6b548914d80450e6aaf1890909c36 Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/red_icon.png differ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..52493784e614354181c58a17160e27e228aa75b3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement.test.ets @@ -0,0 +1,82 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { afterEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON } from '@ohos.UiTest' + +export default function ActionEventCommonEventDragRecipientCopyMoveReplacement() { + + describe('ActionEventCommonEventDragRecipientCopyMoveReplacement', () => { + 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_DRAG_RECIPIENT-COPY-MOVE_0050 + * @tc.name: SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0050 + * @tc.desc: 接收方设置allowDrop允许类型与发起方的数据类型不一致 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT_COPY_MOVE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0050 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0050"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let image = await driver.findComponent(ON.id('CommonEventDragRecipientCopyMove_image')); + let list = await driver.findComponent(ON.id('CommonEventDragRecipientCopyMove_list')); + await image.dragTo(list); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0050 finish.`); + done(); + }) + + /** + * @tc.number: SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0030 + * @tc.name: SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0030 + * @tc.desc: 接收方设置allowDrop允许类型与发起方的数据类型一致 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT_COPY_MOVE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0030 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0030"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let image = await driver.findComponent(ON.id('CommonEventDragRecipientCopyMove0030_image')); + let list = await driver.findComponent(ON.id('CommonEventDragRecipientCopyMove0030_list')); + await image.dragTo(list); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0030 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventTouchAttributeTest/ActionEventCommonEventTouchAttribute.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventTouchAttributeTest/ActionEventCommonEventTouchAttribute.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..4bce61edebc588b0f78d1eb4636246cb52afe83b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventTouchAttributeTest/ActionEventCommonEventTouchAttribute.test.ets @@ -0,0 +1,258 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { afterEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON } from '@ohos.UiTest' + +export default function ActionEventCommonEventTouchAttribute() { + + describe('ActionEventCommonEventTouchAttribute', () => { + 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_TOUCH_ATTRIBUTE_0020 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0020 + * @tc.desc globalPosition:PositionX:Length(number)--左边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0020 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0020_onTouch')) + let rect = await onTouch.getBounds(); + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(rect.left + 1, point.y); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0020 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0030 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0030 + * @tc.desc globalPosition:PositionX:Length(number)--右边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0030 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0030_onTouch')) + let rect = await onTouch.getBounds(); + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(rect.right - 1, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0030 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0040 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0040 + * @tc.desc globalPosition:PositionX:Length(number)--中间 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0040 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0040_onTouch')) + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(point.x, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0040 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0050 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0050 + * @tc.desc globalPosition:PositionY:Length(number)--左边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0050 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0050_onTouch')) + let rect = await onTouch.getBounds(); + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(rect.left + 1, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0050 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0060 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0060 + * @tc.desc globalPosition:PositionX:Length(number)--右边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0060 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0060_onTouch')) + let point = await onTouch.getBoundsCenter(); + let rect = await onTouch.getBounds(); + await Utils.sleep(1000) + await driver.click(rect.right - 1, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0060 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0070 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0070 + * @tc.desc globalPosition:PositionX:Length(number)--中间 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0070 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0070"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0070_onTouch')) + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(point.x, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0070 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0160 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0160 + * @tc.desc PositionX:Length(number)--左边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0160 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0160_onTouch')) + let rect = await onTouch.getBounds(); + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(rect.left + 1, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0160 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0170 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0170 + * @tc.desc PositionX:Length(number)--右边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0170 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0170_onTouch')) + let point = await onTouch.getBoundsCenter(); + let rect = await onTouch.getBounds(); + await Utils.sleep(1000) + await driver.click(rect.right - 1, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0170 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0180 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0180 + * @tc.desc PositionX:Length(number)--中间 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0180 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0180_onTouch')) + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(point.x, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0180 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0190 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0190 + * @tc.desc PositionY:Length(number)--左边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0190 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0190"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0190_onTouch')) + let rect = await onTouch.getBounds(); + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(rect.left + 1, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0190 finish.`); + done(); + }); + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textAreaActionEventCommon.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textAreaActionEventCommon.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..99dd08f576a404caf415fb89fe8ab1b5f4a3cf2c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textAreaActionEventCommon.test.ets @@ -0,0 +1,300 @@ +/** + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 windowSnap from '../model/snapShot' +import Utils from '../model/Utils'; +import { Driver, ON } from "@kit.TestKit"; +import { KeyCode } from "@kit.InputKit"; +import Settings from "../model/Settings"; +import Logger from "../model/Logger"; + +export default function textAreaActionEventCommon() { + describe('textAreaActionEventCommon', () => { + 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() + }) + let commonPath = "testability/pages/CommoneventUnifyadd/textAreaActionEventCommon"; + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0120 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0120 + * @tc.desc TextArea组件三击选词能力 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0120', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0120] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pAreaText = await driver.findComponent(ON.id('key_textArea_action_event_common_001')) + await pAreaText.click(); + await Utils.sleep(50); + await pAreaText.click(); + await Utils.sleep(50); + await pAreaText.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0130 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0130 + * @tc.desc TextArea组件光标移动能力"Ctrl+End" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0130', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0130] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_END) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0130] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0140 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0140 + * @tc.desc TextArea组件光标移动能力"Ctrl+Home" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0140', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0140] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + getInspectorTree() + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_HOME) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0140] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0150 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0150 + * @tc.desc TextArea组件光标移动能力"Ctrl+←" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0150', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0150] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_LEFT) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0150] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0160 + * @tc.SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0160 + * @tc.desc TextArea组件光标移动能力"Ctrl+↑" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0160', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0160] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_UP) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0160] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0170 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0170 + * @tc.desc TextArea组件光标移动能力"Ctrl+→ + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0170', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0170] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_HOME) + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0170] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0180 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0180 + * @tc.desc TextArea组件光标移动能力"Ctrl+↓" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0180', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0180] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_HOME) + await Utils.sleep(1500) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_DOWN) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0180] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0190 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0190 + * @tc.desc TextArea组件双击选词能力 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0190', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0190] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pAreaText = await driver.findComponent(ON.id('key_textArea_action_event_common_001')) + await pAreaText.click(); + await Utils.sleep(100) + await pAreaText.click(); + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0190] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0200 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0200 + * @tc.desc TextArea组件快捷键"Ctrl+Ins" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0200', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0200] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pAreaText = await driver.findComponent(ON.id('key_textArea_action_event_common_001')) + await pAreaText.click(); + await Utils.sleep(10) + await pAreaText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_INSERT) + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0200] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0210 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0210 + * @tc.desc TextArea组件快捷键"Shift+Ins" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0210', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0210] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pAreaText = await driver.findComponent(ON.id('key_textArea_action_event_common_001')) + await pAreaText.click(); + await Utils.sleep(10) + await pAreaText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_INSERT) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_END) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_INSERT) + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0210] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0220 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0220 + * @tc.desc TextArea组件选词能力"Ctrl+Shift+<- + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0220', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0220] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pAreaText = await driver.findComponent(ON.id('key_textArea_action_event_common_001')) + await pAreaText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_LEFT) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_LEFT) + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0220] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0230 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0230 + * @tc.desc TextArea组件选词能力"Ctrl+Shift+-> + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0230', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0230] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pAreaText = await driver.findComponent(ON.id('key_textArea_action_event_common_001')) + await pAreaText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0230] END'); + done(); + }); + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textInputActionEventCommon.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textInputActionEventCommon.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..bba5f4997692f4c2eb4f89dce2e1bffea6db94d7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textInputActionEventCommon.test.ets @@ -0,0 +1,319 @@ +/** + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 windowSnap from '../model/snapShot' +import Utils from '../model/Utils'; +import { Driver, ON } from "@kit.TestKit"; +import { KeyCode } from "@kit.InputKit"; +import Settings from "../model/Settings"; +import Logger from "../model/Logger"; + +export default function textInputActionEventCommon() { + describe('textInputActionEventCommon', () => { + 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() + }) + let commonPath="testability/pages/CommoneventUnifyadd/textInputActionEventCommon" + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0240 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0240 + * @tc.desc TextInput组件三击选词能力 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0240', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0240] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pInputText = await driver.findComponent(ON.id('key_textInput_action_event_common_001')) + await pInputText.click(); + await Utils.sleep(50); + await pInputText.click(); + await Utils.sleep(50); + await pInputText.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0250 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0250 + * @tc.desc TextInput组件光标移动能力"Ctrl+End" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0250', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0250] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_END) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0250] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0260 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0260 + * @tc.desc TextInput组件光标移动能力"Ctrl+Home" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0260', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0260] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + getInspectorTree() + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_HOME) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0260] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0270 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0270 + * @tc.desc TextInput组件光标移动能力"Ctrl+←" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0270', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0270] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_LEFT) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0270] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0280 + * @tc.nameSUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0280 + * @tc.desc TextInput组件光标移动能力"Ctrl+↑" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0280', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0280] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_UP) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0280] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0290 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0290 + * @tc.desc TextInput组件光标移动能力"Ctrl+→ + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0290', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0290] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_HOME) + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0290] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0300 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0300 + * @tc.desc TextInput组件光标移动能力"Ctrl+↓" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0300', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0300] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_HOME) + await Utils.sleep(1500) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_DOWN) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0300] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0310 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0310 + * @tc.desc TextInput组件双击选词能力 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0310', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0310] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pInputText = await driver.findComponent(ON.id('key_textInput_action_event_common_001')) + await pInputText.click(); + await Utils.sleep(100) + await pInputText.click(); + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0310] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0320 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0320 + * @tc.desc TextInput组件快捷键"Ctrl+Ins" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0320', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0320] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pInputText = await driver.findComponent(ON.id('key_textInput_action_event_common_001')) + await pInputText.click(); + await Utils.sleep(10) + await pInputText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_INSERT) + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0320] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0330 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0330 + * @tc.desc TextInput组件快捷键"Shift+Ins" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0330', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0330] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pInputText = await driver.findComponent(ON.id('key_textInput_action_event_common_001')) + await pInputText.click(); + await Utils.sleep(10) + await pInputText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_INSERT) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_END) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_INSERT) + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0320] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0340 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0340 + * @tc.desc TextInput组件选词能力"Ctrl+Shift+<- + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0340', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0340] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pInputText = await driver.findComponent(ON.id('key_textInput_action_event_common_001')) + await pInputText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_LEFT) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_LEFT) + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0340] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0350 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0350 + * @tc.desc TextInput组件选词能力"Ctrl+Shift+-> + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0350', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0350] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pInputText = await driver.findComponent(ON.id('key_textInput_action_event_common_001')) + await pInputText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0350] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0360 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0360 + * @tc.desc TouchObject事件增加屏幕绝对坐标 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0360', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0360] START'); + Settings.createWindow("testability/pages/CommoneventUnifyadd/touchObjectActionEventCommon"); + await Utils.sleep(2000); + let driver = Driver.create(); + let touchObject = await driver.findComponent(ON.id('touch_object_button')) + await touchObject.click(); + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0360] END'); + done(); + }); + }) +} \ No newline at end of file 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..6bfbaa3981988bc6c6e01d286a2431db14f14e11 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/List.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/List.test.ets @@ -150,6 +150,33 @@ import UIComponentPopupBoxToastStyleInterface001 import UIComponentPopupBoxFullDialogInterface001 from './UIComponentPopupBoxFullDialogInterfaceTest/UIComponentPopupBoxFullDialogInterface001.test'; +import UIAttributesBackgroundInterface from './UIAttributesBackgroundInterfaceTest/UIAttributesBackgroundInterface.test'; +import UIAttributesFloatingLayerOverlay from './UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay.test'; +import UIAttributesBackgroundInterface1 from './UIAttributesBcakgroundInterface/UIAttributesBackgroundInterface.test'; +import SetOnVisibleAreaApproximateChangeTest from './SetOnVisibleAreaApproximateChangeTest/SetOnVisibleAreaApproximateChange.test'; +import UIAttributesBackgroundSelfDrawing + from './UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing.test'; +import UIAttributesStateStylesInterface from './UIAttributesStateStylesInterfaceTest/UIAttributesStateStylesInterface.test'; +import UIAttributesSelectedStyle from './UIAttributesSelectedStyleTest/UIAttributesSelectedStyle.test'; +import ActionEventCommonEventTouchAttribute from './ActionEventCommonEventTouchAttributeTest/ActionEventCommonEventTouchAttribute.test'; +import textAreaActionEventCommon from './CommoneventUnifyadd/textAreaActionEventCommon.test' +import textInputActionEventCommon from './CommoneventUnifyadd/textInputActionEventCommon.test' +import UiAttributesAttributeUpdaterModifier + from './UiAttributesAttributeUpdaterModifierTest/UiAttributesAttributeUpdaterModifier.test' +import UiComponentAreaChange from './UiComponentAreaChange/UiComponentAreaChange.test' +import SubAceActionGestureJudge from './SubAceActionGestureJudgeTest/SubAceActionGestureJudge.test'; +import SubAceActionEventCommonEventInterface from './SubAceActionEventCommonEventInterfaceTest/SubAceActionEventCommonEventInterface.test'; +import SubAceActionGestureOnChildTouch from './SubAceActionGestureOnChildTouchTest/SubAceActionGestureOnChildTouch.test'; + +import TouchEventDockPointerEventReplacement + from './TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement.test'; +import UIComponentAreachangeTest001 from './UIComponentAreachangeTest/UIComponentAreachangeTest001.test'; +import UIComponentMediaImageMaskTest001 from './UIComponentMediaImageMaskTest/UIComponentMediaImageMaskTest001.test'; +import SUBEventShortcutInterActionTest001 from './SUBEventShortcutInterAction/SUBEventShortcutInterActionTest001.test'; +import ActionEventCommonEventDragRecipientCopyMoveReplacement from './ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement.test'; +import StatusManagerRefresh01 from './StatusManagerRefreshTest/StatusManagerRefresh01.test'; +import StatusManagerRefresh02 from './StatusManagerRefreshTest/StatusManagerRefresh02.test'; + export default function testsuite() { ComponentTextRicheditorFontfeatures(); ComponentTextRicheditorCustomColors(); @@ -239,6 +266,30 @@ export default function testsuite() { UIComponentPopupBoxAttribute(); UIComponentPopupBoxPromptToastSequence(); UIComponentPopupBoxSpecificationsPopup(); + + UIAttributesBackgroundInterface(); + UIAttributesBackgroundInterface1(); + SetOnVisibleAreaApproximateChangeTest(); + UIAttributesBackgroundSelfDrawing(); + UIAttributesFloatingLayerOverlay(); + UIAttributesStateStylesInterface(); + UIAttributesSelectedStyle(); + ActionEventCommonEventTouchAttribute(); + textAreaActionEventCommon(); + textInputActionEventCommon(); + UiAttributesAttributeUpdaterModifier(); + UiComponentAreaChange(); + SubAceActionGestureJudge(); + SubAceActionEventCommonEventInterface(); + SubAceActionGestureOnChildTouch(); + + TouchEventDockPointerEventReplacement(); + UIComponentAreachangeTest001(); + UIComponentMediaImageMaskTest001(); + SUBEventShortcutInterActionTest001(); + ActionEventCommonEventDragRecipientCopyMoveReplacement(); + StatusManagerRefresh01(); + StatusManagerRefresh02(); } diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SUBEventShortcutInterAction/SUBEventShortcutInterActionTest001.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SUBEventShortcutInterAction/SUBEventShortcutInterActionTest001.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..53de33f5eecce771df4aae82a2cb101ff4d85b04 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SUBEventShortcutInterAction/SUBEventShortcutInterActionTest001.test.ets @@ -0,0 +1,101 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { 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 SUBEventShortcutInterActionTest001() { + + describe('SUBEventShortcutInterActionTest001', () => { + 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_SHORTCUT_INTERACTION_0170 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0170 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0170 start.`); + Settings.createWindow("testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(2072, 2001) + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0170 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0180 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0180 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0180 start.`); + Settings.createWindow("testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0180"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('SUBEventShortcutInterAction0180_button_01')); + await Utils.sleep(500); + await driver.triggerCombineKeys(2072, 2001) + await Utils.sleep(1000); + await driver.triggerCombineKeys(2072, 2002) + await Utils.sleep(1000); + await button.click() + await Utils.sleep(1000); + await driver.triggerCombineKeys(2072, 2001) + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0180 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SetOnVisibleAreaApproximateChangeTest/SetOnVisibleAreaApproximateChange.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SetOnVisibleAreaApproximateChangeTest/SetOnVisibleAreaApproximateChange.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..ef0d74638e093a33d3fa8d3d7c6eb3cf5ec4e864 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SetOnVisibleAreaApproximateChangeTest/SetOnVisibleAreaApproximateChange.test.ets @@ -0,0 +1,315 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 '@ohos.UiTest' + +export default function SetOnVisibleAreaApproximateChangeTest() { + + describe('SetOnVisibleAreaApproximateChangeTest', () => { + 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_AREACHANGE_0210 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0210 + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0210 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0210"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + + let button1 = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0210_button1')); + await button1.click(); + await Utils.sleep(1000); + + let button2 = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0210_button2')); + await button2.click(); + await Utils.sleep(1000); + + let button3 = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0210_button3')); + await button3.click(); + await Utils.sleep(1000); + + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0210 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0190 + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0190 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0190"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let button = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0190_button')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(500) + await driver.drag(400, 100, 50, 100, 500) + await Utils.sleep(1000) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0190 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0200 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0200 + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0200 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0200"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let button = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0200_button')); + let tab1 = await driver.findComponent(ON.text('tab1')); + let tab2 = await driver.findComponent(ON.text('tab2')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(500) + await tab2.click() + await Utils.sleep(500) + await tab1.click() + await Utils.sleep(1000) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0200 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0140 + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0140 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + + let button3 = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0140_button3')); + await button3.click(); + await Utils.sleep(1000); + + let button1 = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0140_button1')); + await button1.click(); + await Utils.sleep(1000); + + let button2 = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0140_button2')); + await button2.click(); + await Utils.sleep(1000); + + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0140 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0250 + * @tc.desc frameNode textInput + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0250 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0250"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let textInput = await driver.findComponent(ON.id('textInput_node0250')); + await Utils.sleep(1000) + await textInput.click() + await Utils.sleep(500) + await driver.pressBack() + await Utils.sleep(500) + await driver.pressBack() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0250 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0260 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0260 + * @tc.desc frameNode textInput + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0260 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0260"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let textInput = await driver.findComponent(ON.id('textInput_node0260')); + await Utils.sleep(1000) + await textInput.click() + await Utils.sleep(500) + await driver.pressBack() + await Utils.sleep(500) + await driver.pressBack() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0260 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0230 + * @tc.desc frameNode textInput + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0230 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0230"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0230_button')); + await Utils.sleep(1000) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0230 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0320 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0320 + * @tc.desc frameNode scroll + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0320 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0320"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button = await driver.findComponent(ON.text('scroll')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0320 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0300 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0300 + * @tc.desc frameNode text + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0300 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button = await driver.findComponent(ON.text('scroll')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0300 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0330 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0330 + * @tc.desc frameNode text + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0330 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button = await driver.findComponent(ON.text('scroll')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0330 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0090 + * @tc.desc frameNode text + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0090 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000) + await Utils.homeAndBack(driver) + await Utils.sleep(4000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0090 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0100 + * @tc.desc frameNode text + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0100 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000) + await Utils.lockAndUnlock(driver) + await Utils.sleep(4000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0100 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh01.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh01.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..31a74c539726a53cce63f17bc90f8f926a288a39 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh01.test.ets @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { 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' +import { KeyCode } from '@kit.InputKit' + +export default function StatusManagerRefresh01() { + + describe('StatusManagerRefresh01', () => { + 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_ACTION_EVENT_COMMONEVENT_UNIFYADD_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD 0080 start.`); + Settings.createWindow("testability/pages/StatusManagerRefresh/StatusManagerRefresh01"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.triggerKey(KeyCode.KEYCODE_TAB); + await Utils.sleep(1000); + await driver.triggerKey(KeyCode.KEYCODE_F5); + await Utils.sleep(1000); + let text1 = await driver.findComponent(ON.id('Refresh1')); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0080] text1', text1); + let textContentStr = await text1.getText(); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0080] textContentStr', textContentStr); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0080 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh02.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh02.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..8acad1026e779bb1d40e8bd248bddf30bc5dd4bf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh02.test.ets @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { 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' +import { KeyCode } from '@kit.InputKit' + +export default function StatusManagerRefresh02() { + + describe('StatusManagerRefresh02', () => { + 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_ACTION_EVENT_COMMONEVENT_UNIFYADD_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0070 start.`); + Settings.createWindow("testability/pages/StatusManagerRefresh/StatusManagerRefresh02"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.triggerKey(KeyCode.KEYCODE_TAB); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_R); + let text1 = await driver.findComponent(ON.id('Refresh2')); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0070] text1', text1); + let textContentStr = await text1.getText(); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0070] textContentStr', textContentStr); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0070 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionEventCommonEventInterfaceTest/SubAceActionEventCommonEventInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionEventCommonEventInterfaceTest/SubAceActionEventCommonEventInterface.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..953bb84c14cd2845525a5d21dd9b5501ba04f3f0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionEventCommonEventInterfaceTest/SubAceActionEventCommonEventInterface.test.ets @@ -0,0 +1,276 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + +import { Component, Driver, ON } from '@ohos.UiTest' + +export default function SubAceActionEventCommonEventInterface() { + + describe('SubAceActionEventCommonEventInterface', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0010 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0010 + * @tc.desc ETS侧接口设置父组件的拦截结果为NONE(3),子组件的拦截结果为NONE + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0010"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let stack1: Component = await driver.findComponent(ON.id('stack1')); + await Utils.sleep(300) + let bounds1=await stack1.getBounds() + await Utils.sleep(200); + await driver.click(bounds1.left+10,bounds1.top+10) + await Utils.sleep(500); + let stack2: Component = await driver.findComponent(ON.id('stack2')); + await Utils.sleep(300); + let bounds2=await stack2.getBounds() + await Utils.sleep(200); + await driver.click(bounds2.left+10,bounds2.top+10) + await Utils.sleep(500); + let stack3: Component = await driver.findComponent(ON.id('stack3')); + await Utils.sleep(300); + let bounds3=await stack3.getBounds() + await Utils.sleep(200); + await driver.click(bounds3.left+10,bounds3.top+10) + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(200); + await button.click() + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(15000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0050 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0050 + * @tc.desc ETS侧接口设置父组件的拦截结果为Transparent + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0050 start.`); + Settings.createWindow("testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0050"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let stack1: Component = await driver.findComponent(ON.id('stack1')); + await Utils.sleep(300) + let bounds1=await stack1.getBounds() + await Utils.sleep(200); + await driver.click(bounds1.left+10,bounds1.top+10) + await Utils.sleep(500); + let stack2: Component = await driver.findComponent(ON.id('stack2')); + await Utils.sleep(300); + let bounds2=await stack2.getBounds() + await Utils.sleep(200); + await driver.click(bounds2.left+10,bounds2.top+10) + await Utils.sleep(500); + let stack3: Component = await driver.findComponent(ON.id('stack3')); + await Utils.sleep(300); + let bounds3=await stack3.getBounds() + await Utils.sleep(200); + await driver.click(bounds3.left+10,bounds3.top+10) + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(200); + await button.click() + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(15000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0090 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0090 + * @tc.desc ETS侧接口设置父组件的拦截结果为NONE(3),子组件的拦截结果为NONE + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0090 start.`); + Settings.createWindow("testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0090"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let stack1: Component = await driver.findComponent(ON.id('stack1')); + await Utils.sleep(300) + let bounds1=await stack1.getBounds() + await Utils.sleep(200); + await driver.click(bounds1.left+10,bounds1.top+10) + await Utils.sleep(500); + let stack2: Component = await driver.findComponent(ON.id('stack2')); + await Utils.sleep(300); + let bounds2=await stack2.getBounds() + await Utils.sleep(200); + await driver.click(bounds2.left+10,bounds2.top+10) + await Utils.sleep(500); + let stack3: Component = await driver.findComponent(ON.id('stack3')); + await Utils.sleep(300); + let bounds3=await stack3.getBounds() + await Utils.sleep(200); + await driver.click(bounds3.left+10,bounds3.top+10) + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(200); + await button.click() + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(15000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0140 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0140 + * @tc.desc ETS侧接口设置一个子组件的拦截结果为NONE,另一个子子组件的拦截结果为Block + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0140 start.`); + Settings.createWindow("testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let stack1: Component = await driver.findComponent(ON.id('stack1')); + await Utils.sleep(300) + let bounds1=await stack1.getBounds() + await Utils.sleep(200); + await driver.click(bounds1.left+10,bounds1.top+10) + await Utils.sleep(500); + let stack2: Component = await driver.findComponent(ON.id('stack2')); + await Utils.sleep(300); + let bounds2=await stack2.getBounds() + await Utils.sleep(200); + await driver.click(bounds2.left+10,bounds2.top+10) + await Utils.sleep(500); + let stack3: Component = await driver.findComponent(ON.id('stack3')); + await Utils.sleep(300); + let bounds3=await stack3.getBounds() + await Utils.sleep(200); + await driver.click(bounds3.left+10,bounds3.top+10) + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(200); + await button.click() + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(15000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0140 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0160 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0160 + * @tc.desc ETS侧接口设置一个子组件的拦截结果为NONE,另一个子子组件的拦截结果为Default + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0160 start.`); + Settings.createWindow("testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0160"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let stack1: Component = await driver.findComponent(ON.id('stack1')); + await Utils.sleep(300) + let bounds1=await stack1.getBounds() + await Utils.sleep(200); + await driver.click(bounds1.left+10,bounds1.top+10) + await Utils.sleep(500); + let stack2: Component = await driver.findComponent(ON.id('stack2')); + await Utils.sleep(300); + let bounds2=await stack2.getBounds() + await Utils.sleep(200); + await driver.click(bounds2.left+10,bounds2.top+10) + await Utils.sleep(500); + let stack3: Component = await driver.findComponent(ON.id('stack3')); + await Utils.sleep(300); + let bounds3=await stack3.getBounds() + await Utils.sleep(200); + await driver.click(bounds3.left+10,bounds3.top+10) + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(200); + await button.click() + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(15000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0190 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0190 + * @tc.desc ETS侧接口设置一个子组件的拦截结果为NONE,另一个子子组件的拦截结果为Default + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0190 start.`); + Settings.createWindow("testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0190"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let stack1: Component = await driver.findComponent(ON.id('stack1')); + await Utils.sleep(300) + let bounds1=await stack1.getBounds() + await Utils.sleep(200); + await driver.click(bounds1.left+10,bounds1.top+10) + await Utils.sleep(500); + let stack2: Component = await driver.findComponent(ON.id('stack2')); + await Utils.sleep(300); + let bounds2=await stack2.getBounds() + await Utils.sleep(200); + await driver.click(bounds2.left+10,bounds2.top+10) + await Utils.sleep(500); + let stack3: Component = await driver.findComponent(ON.id('stack3')); + await Utils.sleep(300); + let bounds3=await stack3.getBounds() + await Utils.sleep(200); + await driver.click(bounds3.left+10,bounds3.top+10) + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(200); + await button.click() + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(15000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0190 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureJudgeTest/SubAceActionGestureJudge.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureJudgeTest/SubAceActionGestureJudge.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..c858abf64eb6a14ddce87dfa0529c3855e326b80 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureJudgeTest/SubAceActionGestureJudge.test.ets @@ -0,0 +1,134 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { 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' + +export default function SubAceActionGestureJudge() { + + describe('SubAceActionGestureJudge', () => { + 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_GESTURE_JUDGE_0240 + * @tc.name SUB_ACE_ACTION_GESTURE_JUDGE_0240 + * @tc.desc 事件自定义手势判定能力,组件绑定手势互斥组合 + */ + it('SUB_ACE_ACTION_GESTURE_JUDGE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0240 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0240"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let column: Component = await driver.findComponent(ON.id('column')); + await Utils.sleep(300) + await column.click() + await Utils.sleep(50) + await column.click() + await Utils.sleep(1000) + await column.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0240 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_GESTURE_JUDGE_0250 + * @tc.name SUB_ACE_ACTION_GESTURE_JUDGE_0250 + * @tc.desc 事件自定义手势判定能力,组件绑定手势并行组合 + */ + it('SUB_ACE_ACTION_GESTURE_JUDGE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0250 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0250"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let column: Component = await driver.findComponent(ON.id('column')); + await Utils.sleep(300) + await column.click() + await Utils.sleep(50) + await column.click() + await Utils.sleep(1000) + await column.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0250 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_GESTURE_JUDGE_0100 + * @tc.name SUB_ACE_ACTION_GESTURE_JUDGE_0100 + * @tc.desc 事件自定义手势判定能力,判定点击事件是否为系统手势 + */ + it('SUB_ACE_ACTION_GESTURE_JUDGE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0100 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0100"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let column: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(300) + await column.click() + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0100 finish.`); + done(); + }) + + + /* + * @tc.number SUB_ACE_ACTION_GESTURE_JUDGE_0260 + * @tc.name SUB_ACE_ACTION_GESTURE_JUDGE_0260 + * @tc.desc 事件自定义手势判定能力,button设置onclick事件,判定点击事件成功后响应事件 + */ + it('SUB_ACE_ACTION_GESTURE_JUDGE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0260 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0260"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let column: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(300) + await column.click() + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0260 finish.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureOnChildTouchTest/SubAceActionGestureOnChildTouch.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureOnChildTouchTest/SubAceActionGestureOnChildTouch.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..7de8640afdd7ef70e0f8dd3ede668f325ee9b80c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureOnChildTouchTest/SubAceActionGestureOnChildTouch.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, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + +import { Component, Driver, ON } from '@ohos.UiTest' + +export default function SubAceActionGestureOnChildTouch() { + + describe('SubAceActionGestureOnChildTouch', () => { + 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_GESTURE_ON-CHILD-TOUCH_0030 + * @tc.name SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 + * @tc.desc ETS侧接口设置父组件的拦截结果为Transparent + */ + it('SUB_ACE_ACTION_GESTURE_ON_CHILD_TOUCH_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let root: Component = await driver.findComponent(ON.id('root')); + await Utils.sleep(300) + let bounds1 = await root.getBounds() + await Utils.sleep(200); + await driver.swipe(bounds1.left + 10, bounds1.top +150, bounds1.left + 10, bounds1.top + 20, 2000) + + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 + * @tc.name SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 + * @tc.desc ETS侧接口设置父组件的拦截结果为Transparent + */ + it('SUB_ACE_ACTION_GESTURE_ON_CHILD_TOUCH_0030_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let root: Component = await driver.findComponent(ON.id('root')); + await Utils.sleep(300) + let bounds1 = await root.getBounds() + await Utils.sleep(200); + await driver.swipe(bounds1.left + 10, bounds1.top +100, bounds1.left + 10, bounds1.top + 20, 2000) + + let MyList: Component = await driver.findComponent(ON.id('MyList')); + await Utils.sleep(300) + await MyList.scrollToBottom(3000) + await Utils.sleep(2000) + + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 + * @tc.name SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 + * @tc.desc ETS侧接口设置父组件的拦截结果为Transparent + */ + it('SUB_ACE_ACTION_GESTURE_ON_CHILD_TOUCH_0030_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let root: Component = await driver.findComponent(ON.id('root')); + await Utils.sleep(300) + let bounds1 = await root.getBounds() + await Utils.sleep(200); + await driver.swipe(bounds1.left + 10, bounds1.top +100, bounds1.left + 10, bounds1.top + 20, 2000) + + let MyList: Component = await driver.findComponent(ON.id('MyList')); + await Utils.sleep(300) + await MyList.scrollToBottom(3000) + await Utils.sleep(1000) + + let text: Component = await driver.findComponent(ON.id('text')); + await Utils.sleep(200) + await text.click() + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..7a2df74f0b6f8ddda09c4f2239bc873935bda34a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement.test.ets @@ -0,0 +1,456 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 '@ohos.UiTest' + +export default function TouchEventDockPointerEventReplacement() { + + describe('TouchEventDockPointerEventReplacement', () => { + 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_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0010 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0010 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0010 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0010"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let tapClick = await driver.findComponent(ON.id('tapClick')); + await tapClick.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0010 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0020 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0020 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0020 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0020"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let show = await driver.findComponent(ON.id('change')); + await show.doubleClick(); + await Utils.sleep(500); + let tapClick = await driver.findComponent(ON.id('tapClick')); + await tapClick.doubleClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0020 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0030 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0030 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0030 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0030"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let show = await driver.findComponent(ON.id('change')); + await show.click(); + await Utils.sleep(500); + let tapClick = await driver.findComponent(ON.id('tapClick')); + await tapClick.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0030 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0150 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0150 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0150 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0150"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let pinchOut = await driver.findComponent(ON.id('pinchOut')); + await Utils.sleep(500); + await pinchOut.pinchOut(1.5); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0150 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0160 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0160 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0160 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0160"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let pinchOut = await driver.findComponent(ON.id('pinchOut')); + await Utils.sleep(500); + await pinchOut.pinchOut(1.5); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0160 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0040 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0040 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0040 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0040"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let longPress = await driver.findComponent(ON.id('longPress')); + await Utils.sleep(500); + await longPress.longClick(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0040 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0050 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0050 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0050 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0050"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let longPress = await driver.findComponent(ON.id('longPress')); + await Utils.sleep(500); + await longPress.click(); + await Utils.sleep(500); + await longPress.longClick(); + await Utils.sleep(500); + await longPress.longClick(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0050 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0060 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0060 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0060 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0060"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let longPress = await driver.findComponent(ON.id('longPress')); + await Utils.sleep(500); + await longPress.click(); + await Utils.sleep(500); + await longPress.longClick(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0060 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0200 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0200 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0200 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0200"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let longPress = await driver.findComponent(ON.id('longPress')); + await longPress.longClick(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0200 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0070 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0070 + * @tc.desc PanDirection.All + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ EVENT_DOCK_POINTER_EVENT_ANDROID_0070 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0070"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_all')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0070_text')) + let rect = await text.getBounds(); + let pointer = await text.getBoundsCenter(); + Logger.info('qjq', `left: ${rect.left}, top: ${rect.top}, right: ${rect.right}, bottom: ${rect.bottom},`); + await driver.drag(rect.right - 1, pointer.y, rect.right + 50, pointer.y + 50); + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ EVENT_DOCK_POINTER_EVENT_ANDROID_0070 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0100 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0100 + * @tc.desc PanDirection.Left + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0100 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0100"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_left')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0100_text')) + let rect = await text.getBounds(); + let pointer = await text.getBoundsCenter(); + Logger.info('qjq', `left: ${rect.left}, top: ${rect.top}, right: ${rect.right}, bottom: ${rect.bottom},`); + await driver.drag(rect.right - 1, pointer.y, rect.right - 50, pointer.y); + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0100 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0080 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0080 + * @tc.desc PanDirection.Horizontal + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0080 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0080"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_horizontal')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0080_text')) + let rect = await text.getBounds(); + let pointer = await text.getBoundsCenter(); + Logger.info('qjq', `left: ${rect.left}, top: ${rect.top}, right: ${rect.right}, bottom: ${rect.bottom},`); + await driver.drag(rect.right - 1, pointer.y, rect.right + 50, pointer.y); + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0080 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0090 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0090 + * @tc.desc PanDirection.Vertical + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0090 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0090"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_vertical')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0090_text')) + let pointer = await text.getBoundsCenter(); + await driver.drag(pointer.x, pointer.y, pointer.x, pointer.y + 50); + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0090 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0140 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0140 + * @tc.desc PanDirection.None + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0140 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0140"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_none')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0140_text')) + let rect = await text.getBounds(); + let pointer = await text.getBoundsCenter(); + Logger.info('qjq', `left: ${rect.left}, top: ${rect.top}, right: ${rect.right}, bottom: ${rect.bottom},`); + await driver.drag(rect.right - 1, pointer.y, rect.right + 200, pointer.y); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0140 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0110 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0110 + * @tc.desc PanDirection.Right + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0110 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0110"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_right')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0110_text')) + let rect = await text.getBounds(); + let pointer = await text.getBoundsCenter(); + Logger.info('qjq', `left: ${rect.left}, top: ${rect.top}, right: ${rect.right}, bottom: ${rect.bottom},`); + await driver.drag(rect.right - 1, pointer.y, rect.right + 50, pointer.y); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0110 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0120 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0120 + * @tc.desc PanDirection.Up + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0120 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0120"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_up')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0120_text')) + let pointer = await text.getBoundsCenter(); + await driver.drag(pointer.x, pointer.y, pointer.x, pointer.y - 50); + await Utils.sleep(2000) + await windowSnap.snapShot(); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0120 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0130 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0130 + * @tc.desc PanDirection.Down + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0130 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0130"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_down')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0130_text')) + let rect = await text.getBounds(); + let pointer = await text.getBoundsCenter(); + Logger.info('qjq', `left: ${rect.left}, top: ${rect.top}, right: ${rect.right}, bottom: ${rect.bottom},`); + await driver.drag(pointer.x, pointer.y, pointer.x, pointer.y + 50); + await Utils.sleep(2000) + await windowSnap.snapShot(); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0130 finish.`); + done(); + }) + + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0210 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0210 + * @tc.desc list中加入拖动测试 + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0210 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0210"); + await Utils.sleep(1000); + let driver = Driver.create(); + let swiper = await driver.findComponent(ON.id('TouchEventDockPointerEvent0210_swiper')) + let list = await driver.findComponent(ON.id('TouchEventDockPointerEvent0210_list')) + let pointer = await list.getBoundsCenter(); + let swiperPointer = await swiper.getBoundsCenter(); + let rect = await swiper.getBounds(); + await list.scrollToBottom(1000); + await driver.fling({ + x: rect.right, y: swiperPointer.y + }, { + x: 0, y: swiperPointer.y + }, 5, 600); + await driver.swipe(pointer.x, pointer.y, pointer.x - 200, pointer.y); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0210 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundInterfaceTest/UIAttributesBackgroundInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundInterfaceTest/UIAttributesBackgroundInterface.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..828261ae097093d28ae0d81290df76fa483d8855 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundInterfaceTest/UIAttributesBackgroundInterface.test.ets @@ -0,0 +1,2575 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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,MouseButton } from '@ohos.UiTest' + +export default function UIAttributesBackgroundInterfce() { + + describe('UIAttributesBackgroundInterface', () => { + 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_ATTRIBUTES_BCAKGROUND_INTERFACE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0110 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0120 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0120"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0120 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0130 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0160 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0160"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0160 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0170 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0170 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0180 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0180 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0190 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0190 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0200 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0200 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0210 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0210"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0210 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0220 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0220"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0220 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0230 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0230"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0230 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0240 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0240"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0240 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0250 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0250 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0260 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0260 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0270 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0270"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0270 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0280 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0280 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0290 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0290 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0300 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0300 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0310 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0310"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0310 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0320 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0320 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0330 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0330 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0340 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0340 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0350 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0350"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0350 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0380 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0380"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0380 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0390 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0390"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0390 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0400 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0400 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0410 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0410 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0420 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0420 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0430 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0430 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0440 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0440"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0440 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0450 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0450 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0460 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0460 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0470 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0470"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0470 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0480 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0480 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0490 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0490 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0500 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0500"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0500 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0510 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0510"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0510 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0520 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0520 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0540 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0540 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0550 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0550"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0550 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0560 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0560"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0560 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0580 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0580"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0580 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0590 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0590"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0590 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0600 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0600 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0610 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0610 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0630 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0630 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0660 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0660 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0670 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0670"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0670 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0680 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0680"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0680 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0690 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0690 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0700 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0700"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0700 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0710 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0710 + * @tc.desc set backgroundImagePosition start + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0710 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface071"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0710 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0720 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0720 + * @tc.desc set backgroundImagePosition top + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0720 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface072"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0720 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0730 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0730 + * @tc.desc set backgroundImagePosition topEnd + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0730', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0730 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0730 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0740 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0740 + * @tc.desc set backgroundImagePosition topStart + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0740 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface074"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0740 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0750 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0750 + * @tc.desc set backgroundImagePosition {x:280px, y:280px} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0750 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0750 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0760 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0760 + * @tc.desc set backgroundImagePosition {x:280px, y:90%} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0760 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0760 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0770 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0770 + * @tc.desc set backgroundImagePosition {x:200, y:100} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0770', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0770 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface077"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0770 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0780 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0780 + * @tc.desc set backgroundImagePosition {x:33fp} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0780 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0780 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0790 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0790 + * @tc.desc set backgroundImagePosition {x: $r("app.integer.integer_1"), y: 100} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0790 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface079"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0790 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0800 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0800 + * @tc.desc set backgroundImagePosition {x:200, y:-100} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0800 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface080"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0800 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0810 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0810 + * @tc.desc set backgroundImagePosition {} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0810 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0810 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0830 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0830 + * @tc.desc set background image position exception parameter(11112) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0830 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface083"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0830 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0850 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0850 + * @tc.desc set backgroundImageSize exception parameter(11112) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0850', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0850 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface085"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0850 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0870 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0870 + * @tc.desc set backgroundImageSize { width: -434, height: "280px" } + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0870 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface087"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0870 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0880 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0880 + * @tc.desc set backgroundImageSize greater than the parent layout + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0880', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0880 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface088"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0880 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0890 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0890 + * @tc.desc set backgroundImageSize { width: "280px", height: "280px" } + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0890', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0890 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0890 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0900 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0900 + * @tc.desc set backgroundImageSize { width: "280px", height: "90%" } + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0900 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface090"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0900 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0910 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0910 + * @tc.desc set backgroundImageSize { width: 200, height: 100 } + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0910', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0910 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0910 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0920 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0920 + * @tc.desc set backgroundImageSize { width: 333 } + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0920', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0920 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0920 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0930 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0930 + * @tc.desc set backgroundImageSize {} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0930', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0930 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0930 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0940 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0940 + * @tc.desc set backgroundImageSize ImageSize.Auto + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0940', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0940 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0940 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0950 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0950 + * @tc.desc set backgroundImageSize ImageSize.Contain + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0950', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0950 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface095"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0950 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0960 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0960 + * @tc.desc set backgroundImageSize ImageSize.Cover + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0960', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0960 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface096"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0960 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0970 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0970 + * @tc.desc set backgroundImageSize ImageSize.Cover + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0970 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface097"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0970 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0980 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0980 + * @tc.desc not set backgroundImagePosition + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0980 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0980 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1000 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1000 + * @tc.desc set not exit resource + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1000', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1000 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1000 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1030 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1030 + * @tc.desc default no repeat + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1030 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface103"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1030 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1040 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1040 + * @tc.desc set ImageRepeat.NoRepeat + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1040 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface104"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1040 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1050 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1050 + * @tc.desc set ImageRepeat.X + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1050 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1050 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1060 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1060 + * @tc.desc set ImageRepeat.XY + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1060 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface106"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1060 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1070 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1070 + * @tc.desc set ImageRepeat.Y + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1070 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1070 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1080 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1080 + * @tc.desc no repeat + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1080 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface108"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1080 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1090 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1090 + * @tc.desc set svg image + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1090 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface109"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1090 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1100 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1100 + * @tc.desc set backgroundColor Color.Black + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1100 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1100 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1110 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1110 + * @tc.desc set backgroundColor Color.Black + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1110 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1110 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1120 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1120 + * @tc.desc set backgroundColor Color.Brown + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1120 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface112"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1120 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1130 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1130 + * @tc.desc set backgroundColor Color.Gray + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1130 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface113"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1130 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1140 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1140 + * @tc.desc set backgroundColor Color.Green + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1140 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1140 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1150 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1150 + * @tc.desc set backgroundColor Color.Grey + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1150 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1150 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1160 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1160 + * @tc.desc set backgroundColor Color.Orange + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1160 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1160 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1170 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1170 + * @tc.desc set backgroundColor Color.Pink + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1170 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1170 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1180 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1180 + * @tc.desc set backgroundColor Color.Red + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1180 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1180 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1190 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1190 + * @tc.desc set backgroundColor Color.Transparent + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1190 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1190 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1200 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1200 + * @tc.desc set backgroundColor Color.White + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1200 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1200 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1210 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1210 + * @tc.desc set backgroundColor Color.Yellow + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1210 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface121"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1210 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1220 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1220 + * @tc.desc set backgroundColor 0x0000ff + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1220 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1220 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1230 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1230 + * @tc.desc set backgroundColor $r("app.color.blue“) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1230 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface123"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1230 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1240 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1240 + * @tc.desc set backgroundColor rgba(0,0,255,1.000) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1240 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface124"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1240 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1250 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1250 + * @tc.desc set backgroundColor rgb(0,0,255) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1250 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1250 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1270 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1270 + * @tc.desc set backgroundColor $r("app.string.module_desc") + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1270 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface127"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1270 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1280 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1280 + * @tc.desc set backgroundColor "dsfsdfsf" + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1280 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface128"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1280 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1300 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1300 + * @tc.desc set linearGradient + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1300 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface130"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1300 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1310 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1310 + * @tc.desc set linearGradient and repeating:true + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1310 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface131"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1310 finish.`); + done() + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0230 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0230"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0230 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0220 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0220"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0220 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0240 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0240"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0240 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0110"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0110 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0130"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0130 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0120 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0120"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0120 finish.`); + done(); + }) + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0140 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0140"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0140 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0150 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0150"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0150 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0180 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0180"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0180 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0210 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0210"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0210 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0170 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0170"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0170 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0200 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0200"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0200 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0160 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0160"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0160 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0190 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0190"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0190 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0010"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0010 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0020"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0020 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0030 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0030"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0030 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0040 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0040"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0040 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0050"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0050 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0060 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0060"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0060 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0070"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0070 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0080"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0080 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0090 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0090"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0090 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0100"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0100 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0250 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0250"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0250 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0260 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0260"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0260 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0130"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0130 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0120 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0120"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0120 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0150 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0150"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0150 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0110"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0110 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0140 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0140"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0140 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0180 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0180"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0180 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0170 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0170"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0170 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0200 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0200"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0200 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0160 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0160"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0160 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0190 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0190"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0190 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0080"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0080 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0070"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0070 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0100"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0100 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0060 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0060"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0060 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0090 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0090"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0090 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0230 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0230"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0230 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0220 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0220"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0220 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0250 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0250"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0250 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0210 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0210"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0210 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0240 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0240"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0240 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0030 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0030"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0030 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0020"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0020 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0050"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0050 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0010"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0010 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0040 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0040"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0040 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0260 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0260"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0260 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0270 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0270"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0270 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0010"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0010 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0020"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0020 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0030 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0030 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0040 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0040"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0040 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0050"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0050 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0060 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0060 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0070 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0080"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0080 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0090 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0090"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0090 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0100 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0010', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010") + + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0020', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0030', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0040', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0050', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0060', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0070', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0070") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0080', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0090', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0100', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0100") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0110', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0120', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0130', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0130") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0140', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0150', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0160', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0180', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0240', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0250', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0250") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0260', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260") + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('CalendarPicker')); + button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0270', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0280', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeButton')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0290', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeImagePath')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0300', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0300") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeTextGroundColor')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0310', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('overlayButton')); + let text: Component = await driver.findComponent(ON.id('ceshitext')); + await button.dragTo(text); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0320', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('nieheButton')); + await button.pinchOut(3.0); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0330', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('xuanzhuanButton')); + button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0340', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0340") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('huadongButton')); + button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0350', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0350") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('dianjiButton')); + button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0360', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0360") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let button: Component = await driver.findComponent(ON.id('changanButton')); + await Utils.sleep(200); + await button.longClick() + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0370', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('shouzhiButton')); + button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0380', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0380") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + driver.mouseClick({x:249,y:300},MouseButton.MOUSE_BUTTON_LEFT) + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0390', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0390") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let sonButton: Component = await driver.findComponent(ON.id('sonButton')); + let fatherButton:Component = await driver.findComponent(ON.id('fatherButton')); + await Utils.sleep(500); + let moveText:Component=await driver.findComponent(ON.id('moveText')); + let moveText1:Component=await driver.findComponent(ON.id('moveText1')); + // await Utils.sleep(500); + // await sonButton.dragTo(moveText); + // await Utils.sleep(500); + // await fatherButton.dragTo(moveText) + await Utils.sleep(500); + await sonButton.dragTo(moveText1); + await Utils.sleep(500); + await fatherButton.dragTo(moveText1) + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0400', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let sonButton: Component = await driver.findComponent(ON.id('sonButton')); + await Utils.sleep(100); + let fatherButton:Component = await driver.findComponent(ON.id('fatherButton')); + await Utils.sleep(100); + await sonButton.pinchOut(1.5) + await fatherButton.pinchOut(2.0) + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0410', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let sonButton: Component = await driver.findComponent(ON.id('sonButton')); + sonButton.click() + + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0420', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let sonButton: Component = await driver.findComponent(ON.id('sonButton')); + sonButton.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0430', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0430") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let sonButton: Component = await driver.findComponent(ON.id('sonButton')); + sonButton.click() + await Utils.sleep(1000); + let fatherButton: Component = await driver.findComponent(ON.id('fatherButton')); + fatherButton.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0440', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0440") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let sonButton: Component = await driver.findComponent(ON.id('sonButton')); + let fatherButton: Component = await driver.findComponent(ON.id('fatherButton')); + sonButton.longClick() + await Utils.sleep(3000); + fatherButton.longClick() + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0450', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeTextColor')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0460', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeTextColor0460')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0470', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0470") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeTextColor')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0480', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480") + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0490', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeTextColor')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0500', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0510', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0520', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0530', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0530") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0550', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0550") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0530 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0530 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0570 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0570 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0620 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0620 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0540', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('UB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0170', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..6e3aad00fcf75e2871750f847fb463e1be8c2507 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing.test.ets @@ -0,0 +1,313 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + + +import { Component, DisplayRotation, 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 UIAttributesBackgroundSelfDrawing() { + + describe('UIAttributesBackgroundSelfDrawing', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0010 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0010 + * @tc.desc 在background自绘制组件中不设置背景图在组件中显示位置,使用默认值 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0020 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0020 + * @tc.desc 在background自绘制组件中不设置背景图在组件中显示位置,使用默认值 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0020"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0030 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0030 + * @tc.desc 在background自绘制组件中宿主尺寸超出组件大小 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0030 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0030"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0050 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0050 + * @tc.desc 在background自绘制组件中自定义builder使用外部状态变量作为条件判 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0060 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0060 + * @tc.desc 在background自绘制组件中自定义builder使用外部状态变量作为条件判断,根组件button作为背景色 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0060 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0060"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0060 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0070 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0070 + * @tc.desc 在background自绘制组件中自定义builder使用外部状态变量作为条件判断,根组件progress作为背景色 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0080 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0080 + * @tc.desc 在background自绘制组件中自定义背景设置响应事件 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0080"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIAttributesBackgroundSelfDrawing0080')); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0080 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0090 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0090 + * @tc.desc 在background自绘制组件中设置背景图在根组件与子组件同时设置背景图 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0090 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0100 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0100 + * @tc.desc 在background自绘制组件中设置背景图片为本地图片,图片类型为jpg + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0100"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0110 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0110 + * @tc.desc 在background自绘制组件中设置背景图片为本地图片,图片类型为svg,加 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0110 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0120 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0120 + * @tc.desc 在background自绘制组件中设置背景图片为网络图片,图片类型为png + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0120 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0120"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0130 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0130 + * @tc.desc 在background自绘制组件中设置背景图,根组件设置对齐方式,子组件没有 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0150 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0150 + * @tc.desc 在background自绘制能力中CustomBuider填写,Alignment不填写 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0150 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0160 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0160 + * @tc.desc 在background自绘制能力中CustomBuider填写,Alignment填写 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0160 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0170 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0170 + * @tc.desc 在background自绘制能力中,背景颜色、背景图片、渐变背景同时进行设置 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0170 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0170"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0170 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0180 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0180 + * @tc.desc 在background自绘制组件中进行横竖屏切换 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0180 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0180"); + await Utils.sleep(1000); + let driver = Driver.create(); + await driver.setDisplayRotationEnabled(true); + await Utils.sleep(1000); + await driver.setDisplayRotation(DisplayRotation.ROTATION_90); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + await driver.setDisplayRotation(DisplayRotation.ROTATION_0); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0180 finish.`); + done(); + }) + + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBcakgroundInterface/UIAttributesBackgroundInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBcakgroundInterface/UIAttributesBackgroundInterface.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..fe91d44ed37553eb0cb9a3f8245a4341e9bc352e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBcakgroundInterface/UIAttributesBackgroundInterface.test.ets @@ -0,0 +1,345 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + + +import { Component, Driver ,ON } from '@ohos.UiTest' + +/* + * UIAttributesBackgroundInterface + * + * 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 UIAttributesBackgroundInterface1() { + + describe('UIAttributesBackgroundInterface1', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1320 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1320 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[0xAEE1E1,0.2],[0xD3E0DC,0.3],[0xFCD1D1,0.6]],设置线性渐变颜色重复着色repeating(默认值false) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1320 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1320"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1320 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1330 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1330 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Pink,0.3],[$r("app.color.pink),0.4],["rgb(255,200,255)",0.6]],color设置string类型、枚举类型 + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1330 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1330"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1330 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1340 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1340 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Pink,0.3],[0xD3EODC,0.4],[Color.Red,0.6]],color设置number类型、枚举 + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1340 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1340 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1350 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1350 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变效果渐变起始角度angle + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1350 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1350 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1360 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1360 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变效果渐变起始角度angle + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1360 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1360 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1370 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1370 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变效果渐变起始角度angle + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1370 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1370"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1370 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1380 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1380 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变效果渐变起始角度angle + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1380 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1380 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1390 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1390 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变效果渐变起始角度angle + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1390 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1390"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1390 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1400 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1400 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变效果渐变起始角度angle + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1400 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1400 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1410 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1410 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向Left以及线性渐变角度90 + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1410 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1410"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1410 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1420 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1420 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型Bottom) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1420 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1420 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1430 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1430 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型LeftBottom) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1430 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1430 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1440 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1440 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型LeftTop) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1440 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1440 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1450 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1450 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型Left) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1450 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1450 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1460 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1460 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型None) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1460 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1460 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1470 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1470 + * @tc.desc 背景设置backgroumd,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型RightBottom) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1470 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1470 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1480 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1480 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型RightTop) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1480 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1480"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1480 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1490 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1490 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型Right) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1490 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1490"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1490 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1500 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1500 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型Top) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1500 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1500 finish.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..ebf70df2865edac77d0177a69fa30be22075be42 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay.test.ets @@ -0,0 +1,464 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + + +import { Component, Driver ,ON } from '@ohos.UiTest' + +/* + * UIAttributesFloatingLayerOverlay + * + * 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 UIAttributesFloatingLayerOverlay() { + + describe('UIAttributesFloatingLayerOverlay', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0010 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0010 + * @tc.desc 设置主控件的遮罩浮层overlay的align值为:上述值手机横屏效果一致 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0010"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0020 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0020 + * @tc.desc 设置主控件的遮罩浮层overlay的offset值为:[0,0} + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0030 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0030 + * @tc.desc 设置主控件的遮罩浮层overlay的offset值为:偏移至超出主控件的范围 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0030 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0030"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0040 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0040 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:10层overlay + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0040 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0040 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0050 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0050 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:2层overlay + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0060 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0060 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:4层overlay + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0060 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0060"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0060 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0070 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0070 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:nenu + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0070"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0080 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0080 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:popup + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0080 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0090 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0090 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:prompt + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0090 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0090"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0090_001')); + await button.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FL0ATINGLAYER_OVERLAY_0100 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FL0ATINGLAYER_OVERLAY_0100 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:promptAction + */ + it('SUB_ACE_UI_ATTRIBUTES_FL0ATINGLAYER_OVERLAY_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FL0ATINGLAYER_OVERLAY_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0100"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0100_001')); + await button.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FL0ATINGLAYER_OVERLAY_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0110 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0110 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:一个白色背景色的文本悬浮在黑色背景色的文本上(子控件文本可以拖拽且小于主控件) + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0110_001')); + const point = await button.getBoundsCenter(); + await driver.drag(point.x,point.y,point.x+100,point.y+100); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0110 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0120 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0120 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:一个白色背景色的文本悬浮在黑色背景色的文本上(子控件文本可以拖拽且小于主控件) + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0120 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0120"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0120_001')); + const point = await button.getBoundsCenter(); + await driver.drag(point.x,point.y,point.x+100,point.y+100); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0130 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0130 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:主控件为text文本,子控件也为text文本、拖拽子控件 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0130"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0130_001')); + const point = await button.getBoundsCenter(); + await driver.drag(point.x,point.y,point.x+100,point.y+100); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0140 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0140 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:主控件为text文本,子控件也为text文本、拖拽子控件2 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0140 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0140_001')); + const point = await button.getBoundsCenter(); + await driver.drag(point.x,point.y,point.x+100,point.y+100); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0140 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0150 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0150 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:主控件为图片,子控件为2个button + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0150 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0150_001')); + await button.click(); + await Utils.sleep(1000); + let button2: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0150_002')); + await button2.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0160 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0160 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:关于Stack容器、overlay位于第一、二层 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0160 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0160"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0160_001')); + await driver.mouseMoveTo(await button.getBoundsCenter()) + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0170 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0170 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:关于Stack容器、overlay位于第一层 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0170 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0170"); + await Utils.sleep(1000); + ON.id('UIAttributesFloatingLayerOverlay0170_001').focused(true) + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0170 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0180 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0180 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:关于Stack容器、overlay位于第二层 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0180 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0180"); + await Utils.sleep(1000); + ON.id('UIAttributesFloatingLayerOverlay0180_001').focused(true) + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0180 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0190 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0190 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:列表选择弹窗 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0190 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0190 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0200 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0200 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:同一页面中,2个不同的主控件各有1层overlay + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0200 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0200 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0210 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0210 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:图片上悬浮一段文本 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0210 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0210 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0220 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0220 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:多层overlay-第一层为button(绑定弹窗popup),第二层为文本showinsobwindow-false + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0220 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0220"); + await Utils.sleep(500); + let driver: Driver = Driver.create() + await Utils.sleep(500); + let button1: Component = await driver.findComponent(ON.id('overlay0220_button_01')); + let button2: Component = await driver.findComponent(ON.id('overlay0220_button_02')); + await Utils.sleep(1000); + await button2.click(); + await Utils.sleep(1000); + await button1.click(); + await Utils.sleep(1000); + await button1.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0220 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0230 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0230 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:多层overlay-第一层为button(绑定弹窗popup),第二层为文本showinsobwindow-true + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0230 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0230"); + await Utils.sleep(500); + let driver: Driver = Driver.create() + await Utils.sleep(500); + let button1: Component = await driver.findComponent(ON.id('overlay0230_button_01')); + await Utils.sleep(1000); + await button1.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0230 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesSelectedStyleTest/UIAttributesSelectedStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesSelectedStyleTest/UIAttributesSelectedStyle.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..a38ecd0bd98efdc11dd400b8a250ff49b18e72fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesSelectedStyleTest/UIAttributesSelectedStyle.test.ets @@ -0,0 +1,394 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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' + +/* + * UIAttributesSelectedStyle + * + * 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 UIAttributesSelectedStyle() { + + describe('UIAttributesSelectedStyle', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0010 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0010 + * @tc.desc : checkbox设置select为true + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0010"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0010 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0020 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0020 + * @tc.desc : checkbox设置select为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0020"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0020 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030 + * @tc.desc : checkbox按钮动态将select的值设置为true后改为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030_1 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0030"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030_1 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030_2 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0030"); + 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('UIAttributesSelectedStyle0030')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030_2 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0040 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0040 + * @tc.desc : checkboxgroup设置select为true + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0040 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0040"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0040 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0050 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0050 + * @tc.desc : checkboxgroup设置select为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0050"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0050 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060 + * @tc.desc : checkboxgroup按钮动态将select的值设置为true后改为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060_1 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0060"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060_1 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060_2 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0060"); + 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('UIAttributesSelectedStyle0060')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060_2 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0070 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0070 + * @tc.desc : radio设置select为true + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0070"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0070 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0080 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0080 + * @tc.desc : radio设置select为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0080 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090 + * @tc.desc : radio按钮动态将select的值设置为true后改为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090_1 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090_1 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090_2 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090"); + 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('UIAttributesSelectedStyle0090')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090_2 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0100 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0100 + * @tc.desc : toggle设置select为true + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0100 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0110 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0110 + * @tc.desc : toggle设置select为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0110 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120 + * @tc.desc : toggle按钮动态将select的值设置为true后改为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120_1 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120_1 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120_2 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120"); + 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('UIAttributesSelectedStyle0120')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120_2 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0130 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0130 + * @tc.desc : menuitem设置select为true + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130"); + 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('UIAttributesSelectedStyle0130')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0130 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0140 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0140 + * @tc.desc : menuitem设置select为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0140 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140"); + 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('UIAttributesSelectedStyle0140')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0140 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150 + * @tc.desc : menuitem按钮动态将select的值设置为true后改为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150_1 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let text: Component = await driver.findComponent(ON.id('UIAttributesSelectedStyle0150_1')); + await driver.delayMs(100); + await text.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150_1 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150_2 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150"); + 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('UIAttributesSelectedStyle0150_2')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + let text: Component = await driver.findComponent(ON.id('UIAttributesSelectedStyle0150_1')); + await driver.delayMs(100); + await text.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150_2 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesStateStylesInterfaceTest/UIAttributesStateStylesInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesStateStylesInterfaceTest/UIAttributesStateStylesInterface.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..f0b6ff8a2b4fe5b6a8b5cbe94423a8e04e754de7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesStateStylesInterfaceTest/UIAttributesStateStylesInterface.test.ets @@ -0,0 +1,446 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { 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' + +/* + * UIAttributesStateStylesInterface + * + * 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 UIAttributesStateStylesInterface() { + + describe('UIAttributesStateStylesInterface', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0010 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0010 + * @tc.desc : button组件设置StateStyles为normal + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0010"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0010 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0020 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0020 + * @tc.desc : button组件不设置StateStyles + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0020"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0020 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0030 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0030 + * @tc.desc : button组件先设置StateStyles为clicked,后设置StateStyles为focused + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0030 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0030"); + 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('UIAttributesStateStylesInterface0030')); + await driver.delayMs(100); + await button.click(); + ON.focused(true); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0030 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0040 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0040 + * @tc.desc : button组件设置StateStyles为clicked + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0040 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0040"); + 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('UIAttributesStateStylesInterface0040')); + await driver.delayMs(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0040 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0050 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0050 + * @tc.desc : button组件设置StateStyles为disabled + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0050"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0050 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0060 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0060 + * @tc.desc : button组件设置StateStyles为focused + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0060 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0060"); + await Utils.sleep(1000); + ON.focused(true); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0060 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0070 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0070 + * @tc.desc : button组件设置StateStyles为pressed + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0070"); + 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('UIAttributesStateStylesInterface0070')); + await driver.delayMs(100); + await button.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0070 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0080 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0080 + * @tc.desc : list组件不设置StateStyles + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0080"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0080 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0090 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0090 + * @tc.desc : list组件先设置StateStyles为clicked,后设置StateStyles为focused + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0090 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0090"); + 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('UIAttributesStateStylesInterface0090')); + await driver.delayMs(100); + await button.click(); + ON.focused(true); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0090 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0100 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0100 + * @tc.desc : list组件设置StateStyles为clicked + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0100"); + 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('UIAttributesStateStylesInterface0100')); + await driver.delayMs(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0100 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0110 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0110 + * @tc.desc : list组件设置StateStyles为disabled + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0110"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0110 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0120 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0120 + * @tc.desc : list组件设置StateStyles为focused + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0120 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0120"); + await Utils.sleep(1000); + ON.focused(true); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0120 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0130 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0130 + * @tc.desc : list组件设置StateStyles为normal + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0130"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0130 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0140 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0140 + * @tc.desc : list组件设置StateStyles为pressed + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0140 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0140"); + 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('UIAttributesStateStylesInterface0140')); + await driver.delayMs(100); + await button.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0140 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0150 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0150 + * @tc.desc : text组件不设置StateStyles + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0150 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0150"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0150 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0160 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0160 + * @tc.desc : text组件先设置StateStyles为clicked,后设置StateStyles为focused + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0160 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0160"); + 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('UIAttributesStateStylesInterface0160')); + await driver.delayMs(100); + await button.click(); + ON.focused(true); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0160 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0170 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0170 + * @tc.desc : text组件设置StateStyles为clicked + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0170 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0170"); + 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('UIAttributesStateStylesInterface0170')); + await driver.delayMs(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0170 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0180 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0180 + * @tc.desc : text组件设置StateStyles为disabled + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0180 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0180"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0180 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0190 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0190 + * @tc.desc : text组件设置StateStyles为focused + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0190 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0190"); + await Utils.sleep(2000); + ON.focused(true); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0190 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0200 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0200 + * @tc.desc : text组件设置StateStyles为normal + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0200 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0200"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0200 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0210 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0210 + * @tc.desc : text组件设置StateStyles为pressed + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0210 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0210"); + 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('UIAttributesStateStylesInterface0210')); + await driver.delayMs(100); + await button.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0210 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAreachangeTest/UIComponentAreachangeTest001.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAreachangeTest/UIComponentAreachangeTest001.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..e90cf4daaa4866208ae280ec4873b174a276e69a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAreachangeTest/UIComponentAreachangeTest001.test.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { 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' + +export default function UIComponentAreachangeTest001() { + + describe('UIComponentAreachangeTest001', () => { + 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(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentMediaImageMaskTest/UIComponentMediaImageMaskTest001.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentMediaImageMaskTest/UIComponentMediaImageMaskTest001.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..a4f7541df627eec542f8c764440d880519e185f4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentMediaImageMaskTest/UIComponentMediaImageMaskTest001.test.ets @@ -0,0 +1,188 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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' + +export default function UIComponentMediaImageMaskTest001() { + + describe('UIComponentMediaImageMaskTest001', () => { + 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_MEDIA_IMAGE_MASK_0010 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0010 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0010 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button: Component = await driver.findComponent(ON.id('mask0010_button_01')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0010 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0020 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0020 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0020 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button: Component = await driver.findComponent(ON.id('mask0020_button_01')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0020 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0050 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0050 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0050 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button: Component = await driver.findComponent(ON.id('mask0050_button_01')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(4000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0050 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0100 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0100 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0100 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + await driver.triggerKey(2049) + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0100 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0110 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0110 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0110 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0110"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button: Component = await driver.findComponent(ON.id('mask0110_button_01')); + await Utils.sleep(1000) + await button.click() + await Utils.sleep(1000) + await button.click() + await Utils.sleep(1000) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0110 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0120 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0120 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0120 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button: Component = await driver.findComponent(ON.id('mask0120_button_01')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0120 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0260 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0260 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0260 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0260"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button: Component = await driver.findComponent(ON.id('mask0260_button_01')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(1000) + await button.click() + await Utils.sleep(1000) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0260 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiAttributesAttributeUpdaterModifierTest/UiAttributesAttributeUpdaterModifier.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiAttributesAttributeUpdaterModifierTest/UiAttributesAttributeUpdaterModifier.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..2061ccb190e9da86cacf45305c15dd4719bc7f16 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiAttributesAttributeUpdaterModifierTest/UiAttributesAttributeUpdaterModifier.test.ets @@ -0,0 +1,3278 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 UiAttributesAttributeUpdaterModifier() { + + describe('UiAttributesAttributeUpdaterModifier', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0010 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0010 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0010 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0010"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0010')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(100); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(600); + await buttonSetColor.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(600); + await buttonSetColor.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0020')); + await Utils.sleep(1000); + await driver.delayMs(100); + setTimeout(() => { + windowSnap.snapShot(); + }, 1000) + await buttonModifier.longClick(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_4 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_4 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_4', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_4 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(600); + await buttonSetColor.click(); + await driver.delayMs(600); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0020')); + await Utils.sleep(1000); + await driver.delayMs(100); + await buttonModifier.longClick(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_4 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(600); + await buttonSetColor.click(); + await driver.delayMs(600); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0020')); + await Utils.sleep(1000); + await driver.delayMs(100); + await buttonModifier.longClick(); + await Utils.sleep(1000); + let buttonAgainColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(600); + await buttonAgainColor.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030"); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0030')); + await driver.delayMs(100); + setTimeout(() => { + windowSnap.snapShot(); + }, 1000) + await buttonModifier.longClick(); + await driver.delayMs(600); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0030')); + await driver.delayMs(100); + await buttonModifier.longClick(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0040')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0040')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(600); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0050')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0050')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(600); + await buttonModifier.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_3 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0050')); + await driver.delayMs(100); + await buttonModifier.doubleClick(); + await driver.delayMs(600); + await Utils.sleep(1000); + await buttonSetColor.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060"); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0060')); + await driver.delayMs(100); + setTimeout(() => { + windowSnap.snapShot(); + }, 1000) + await buttonModifier.longClick(); + await driver.delayMs(1000); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0060')); + await driver.delayMs(100); + await buttonModifier.longClick(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0060')); + await driver.delayMs(100); + await buttonModifier.longClick(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + await buttonSetColor.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090"); + await Utils.sleep(1000); + let driver: Driver =Driver.create(); + await driver.triggerKey(2049); + await Utils.sleep(1000); + await driver.triggerKey(2054); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + await driver.triggerKey(2049); + await driver.delayMs(600); + await driver.triggerKey(2049); + await driver.delayMs(1000); + await driver.triggerKey(2054); + await driver.delayMs(600); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + await driver.triggerKey(2049); + await driver.delayMs(600); + await driver.triggerKey(2049); + await driver.delayMs(600); + await driver.triggerKey(2049); + await driver.delayMs(1000); + await driver.triggerKey(2054); + await driver.delayMs(600); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0120"); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0120"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0120')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(2000); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(100); + await driver.delayMs(100); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(2000); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(100); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(2000); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(100); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(1000); + await driver.delayMs(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(2000); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(100); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(1000); + await driver.delayMs(2000); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await Utils.sleep(100); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(100); + await driver.delayMs(600); + let textInputButton: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0150')); + await driver.delayMs(100); + await textInputButton.click(); + await Utils.sleep(100); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0160 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0160 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0160 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0160"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(100); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_4 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_4 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_4', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_4 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_4 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_5 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_5 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_5', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_5 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_5 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_6 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_6 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_6', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_6 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + let button6: Component = await driver.findComponent(ON.id('6')); + await driver.delayMs(100); + await button6.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_6 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_7 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_7 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_7', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_7 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + let button6: Component = await driver.findComponent(ON.id('6')); + await driver.delayMs(100); + await button6.click(); + await driver.delayMs(600); + let button7: Component = await driver.findComponent(ON.id('7')); + await driver.delayMs(100); + await button7.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_7 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_8 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_8 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_8', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_8 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + let button6: Component = await driver.findComponent(ON.id('6')); + await driver.delayMs(100); + await button6.click(); + await driver.delayMs(600); + let button7: Component = await driver.findComponent(ON.id('7')); + await driver.delayMs(100); + await button7.click(); + await driver.delayMs(600); + let button8: Component = await driver.findComponent(ON.id('8')); + await driver.delayMs(100); + await button8.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_8 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_9 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_9 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_9', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_9 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + let button6: Component = await driver.findComponent(ON.id('6')); + await driver.delayMs(100); + await button6.click(); + await driver.delayMs(600); + let button7: Component = await driver.findComponent(ON.id('7')); + await driver.delayMs(100); + await button7.click(); + await driver.delayMs(600); + let button8: Component = await driver.findComponent(ON.id('8')); + await driver.delayMs(100); + await button8.click(); + await driver.delayMs(600); + let button9: Component = await driver.findComponent(ON.id('9')); + await driver.delayMs(100); + await button9.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_9 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_10 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_10 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_10', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_10 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + let button6: Component = await driver.findComponent(ON.id('6')); + await driver.delayMs(100); + await button6.click(); + await driver.delayMs(600); + let button7: Component = await driver.findComponent(ON.id('7')); + await driver.delayMs(100); + await button7.click(); + await driver.delayMs(600); + let button8: Component = await driver.findComponent(ON.id('8')); + await driver.delayMs(100); + await button8.click(); + await driver.delayMs(600); + let button9: Component = await driver.findComponent(ON.id('9')); + await driver.delayMs(100); + await button9.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button10: Component = await driver.findComponent(ON.id('10')); + await driver.delayMs(100); + await button10.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_10 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + let button6: Component = await driver.findComponent(ON.id('6')); + await driver.delayMs(100); + await button6.click(); + await driver.delayMs(600); + let button7: Component = await driver.findComponent(ON.id('7')); + await driver.delayMs(100); + await button7.click(); + await driver.delayMs(600); + let button8: Component = await driver.findComponent(ON.id('8')); + await driver.delayMs(100); + await button8.click(); + await driver.delayMs(600); + let button9: Component = await driver.findComponent(ON.id('9')); + await driver.delayMs(100); + await button9.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button10: Component = await driver.findComponent(ON.id('10')); + await driver.delayMs(100); + await button10.click(); + await driver.delayMs(600); + let button11: Component = await driver.findComponent(ON.id('11')); + await driver.delayMs(100); + await button11.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0200 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0200 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0200 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0200"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0200 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0210 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0210 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0210 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0210"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + await driver.delayMs(100); + await driver.triggerKey(2049) + await driver.delayMs(1000); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0210')); + await driver.delayMs(100); + await buttonModifier.click(); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0210 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0220 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0220 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0220 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0220"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0220')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0220 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0230 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0230 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0230 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0230"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + await driver.triggerKey(2049); + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0230 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0240 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0240 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0240 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0240"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + await driver.mouseMoveTo({ + x: 30, y: 100 + }) + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0240 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0250 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0250 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0250 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0250"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + await driver.triggerKey(2049); + await driver.delayMs(600); + await driver.triggerKey(3101); + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0250 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0260 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0260 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0260 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0260"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + await driver.mouseMoveTo({ + x: 30, y: 100 + }) + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0260 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0270"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0270"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0270')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0280 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0280 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0280 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0280"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0280')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0280 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320 + * @tc.name SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320 + */ + it('SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await driver.mouseMoveTo({ + x: 100, y: 100 + }) + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + await driver.mouseMoveTo({ + x: 100, y: 120 + }) + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + await driver.mouseMoveTo({ + x: 100, y: 130 + }) + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_1 + * @tc.name SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_1 + */ + it('SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await driver.mouseMoveTo({ + x: 100, y: 100 + }) + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_2 + * @tc.name SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_2 + */ + it('SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await driver.mouseMoveTo({ + x: 100, y: 100 + }) + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + await driver.mouseMoveTo({ + x: 100, y: 120 + }) + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0330"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0330')); + await driver.delayMs(100); + let Column: Component = await driver.findComponent(ON.id('Column')); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await buttonModifier.dragTo(Column); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + await buttonModifier.dragTo(Column); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0330"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0330')); + await driver.delayMs(100); + let Column: Component = await driver.findComponent(ON.id('Column')); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await buttonModifier.dragTo(Column); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(1000); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(1000); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(1000); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(600); + await button3.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0360 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0360 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0360 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0360"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0360 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0370"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0370')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(500); + await buttonModifier.click(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0370"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0370')); + setTimeout(() => { + windowSnap.snapShot(); + }, 250) + await buttonModifier.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0380"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + await driver.triggerKey(2049) + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(1000); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(1000); + await button2.click(); + await driver.delayMs(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0380')); + await driver.delayMs(1000); + await buttonModifier.longClick(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0380"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + await driver.triggerKey(2049) + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(1000); + await button1.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0390 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0390 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0390 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0390"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0390')); + await driver.delayMs(600); + await buttonModifier.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0390 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0400"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0400"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0410"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0410"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0420 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0420 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0420 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0420"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0420 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(600); + await button3.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(600); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(600); + await button4.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(600); + await button3.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(1000); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(600); + await button3.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_2 finish.`); + done(); + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentAreaChange/UiComponentAreaChange.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentAreaChange/UiComponentAreaChange.test.ets new file mode 100755 index 0000000000000000000000000000000000000000..a9628914f1fa3c200ff9dca76a4984a352430438 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentAreaChange/UiComponentAreaChange.test.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 { 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 UiComponentAreaChange() { + + describe('UiComponentAreaChange', () => { + 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_AREACHANGE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0120 + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0120 start.`); + Settings.createWindow("testability/pages/UiComponentAreaChange/UiComponentAreaChange0120"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(1000); + let buttonUiAreaChange: Component = await driver.findComponent(ON.id('UiComponentAreaChange0120')); + await driver.delayMs(600); + await buttonUiAreaChange.click(); + await driver.delayMs(600); + await Utils.sleep(600); + let setOnVisibleAreaApproximateChange: Component = await driver.findComponent(ON.id('setOnVisibleAreaApproximateChange')); + await driver.delayMs(600); + await setOnVisibleAreaApproximateChange.click(); + await driver.delayMs(600); + await Utils.sleep(600); + let deleteButton: Component = await driver.findComponent(ON.id('delete')); + await driver.delayMs(600); + await deleteButton.click(); + await driver.delayMs(1000); + await Utils.sleep(600); + let addButton: Component = await driver.findComponent(ON.id('add')); + await driver.delayMs(600); + await addButton.click(); + await driver.delayMs(300); + await Utils.sleep(300); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0120 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets index c74ae272407cbf707ddcfaaacf42c1e132d5452d..07d1bbd86550255ba5ba7f960dc4ebeded31496f 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets @@ -36,14 +36,14 @@ async function sleep(time: number): Promise { } class Settings { - isPhone: boolean = true; + isPhone: boolean = false; windowClass: window.Window | undefined = undefined windowCreateType: string = "changeWindow"; private static DEFAULT_WIDTH: number = 720; - private static DEFAULT_HEIGHT: number = 1280; + private static DEFAULT_HEIGHT: number = 1412; private static DEFAULT_DPI: number = 240; - private static DEFAULT_OFFSET_X: number = 0; - private static DEFAULT_OFFSET_Y: number = 60; + private static DEFAULT_OFFSET_X: number = 100; + private static DEFAULT_OFFSET_Y: number = 132; private portrait: boolean = true changeWindowPosition(windowClass: window.Window, X: number | undefined, Y: number | undefined) { 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..a8d81700f1b92c6c2c27bd92b4e0993af93ad3dd 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,7 +13,10 @@ * limitations under the License. */ -import {Driver , ON} from '@ohos.UiTest' +import { Driver, ON } from '@ohos.UiTest'; +import { BusinessError, screenLock } from '@kit.BasicServicesKit'; +import Settings from './Settings'; +import { KeyCode } from '@kit.InputKit'; export default class Utils { @@ -40,6 +43,44 @@ export default class Utils { } + /** + * The app breathes and then lights up the screen + * + * @param driver + */ + static async lockAndUnlock(driver: Driver) { + await screenLock.lock((err: BusinessError, data: Boolean) => { + if (err) { + console.error(`Failed to lock the screen, Code: ${err.code}, message: ${err.message}`); + return; + } + console.info(`Succeeded in locking the screen. result: ${data}`); + }); + await Utils.sleep(2000); + await screenLock.unlock((err: BusinessError) => { + if (err) { + console.error(`Failed to unlock the screen, Code: ${err.code}, message: ${err.message}`); + return; + } + console.info(`Succeeded unlocking the screen.`); + }); + await driver.drag(100, 900, 100, 1, 1000); + } + + /** + * 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/TestAbility.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets index 5b2992dcb24394039f4c71907479c34895c1a73a..0a9bbff7cc90fb66275b61913c2620ae14558dc4 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets @@ -59,13 +59,13 @@ export default class TestAbility extends UIAbility { hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageCreate'); GlobalThis.getInstance().setContext("context", this.context) - windowStage.loadContent('testability/pages/Index', (err) => { - if (err.code) { - hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); - return; - } - hilog.info(0x0000, 'testTag', 'Succeeded in loading the content.'); - }); + // windowStage.loadContent('testability/pages/Index', (err) => { + // if (err.code) { + // hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); + // return; + // } + // hilog.info(0x0000, 'testTag', 'Succeeded in loading the content.'); + // }); } onWindowStageDestroy() { diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0030.ets new file mode 100755 index 0000000000000000000000000000000000000000..0b0359cc9962f70e7e57566c99b7baca00109445 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0030.ets @@ -0,0 +1,119 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { unifiedDataChannel, uniformTypeDescriptor } from '@kit.ArkData'; + +@Entry +@Component +struct ActionEventCommonEventDragRecipientCopyMoveReplacement0030 { + @State uri: string = "" + @State blockArr: string[] = [] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image('cat.jpg') + .id('CommonEventDragRecipientCopyMove0030_image') + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string) => { + console.info(`onDragStart enter`) + let image1: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + image1.imageUri = '/resources/base/media/icon.png'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(image1); + let image2: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + image2.imageUri = '/resources/base/media/cat.jpg'; + let data2: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(image2); + event.setData(data) + event.setData(data2) + console.info(`onDragStart enter`) + }) + .onDragEnd((event: DragEvent) => { + console.info(`onDragEnd enter`) + let ret = event.getResult(); + if (ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 }) + + Column() { + Text('释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.blockArr, (item: string, index) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 }) + } + .margin({ left: 30, top: 30 }) + }, (item: string) => item) + } + .id('CommonEventDragRecipientCopyMove0030_list') + .border({ width: 1 }) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDragEnter((event: DragEvent, extraParams?: string) => { + console.info(`onDragEnter enter`) + event.dragBehavior = DragBehavior.COPY; + }) + .onDragMove((event: DragEvent, extraParams?: string) => { + console.info(`onDragMove enter`) + event.dragBehavior = DragBehavior.MOVE; + }) + .onDrop((event: DragEvent, extraParams?: string) => { + console.log("onDrop enter") + event.dragBehavior = DragBehavior.COPY; + let dragData: UnifiedData = (event as DragEvent).getData() as UnifiedData; + if (dragData != undefined) { + let arr: Array = dragData.getRecords(); + if (arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.blockArr.splice(JSON.parse(extraParams as string).insertIndex, 0, this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("100%") + .border({ width: 1 }) + .margin({ left: 12 }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..0769558985317196bc01d483535fbda9fe66bc3d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0050.ets @@ -0,0 +1,110 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { unifiedDataChannel, uniformTypeDescriptor } from '@kit.ArkData'; + +@Entry +@Component +struct ActionEventCommonEventDragRecipientCopyMoveReplacement0050 { + @State uri: string = "" + @State blockArr: string[] = [] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image('cat.jpg') + .id('CommonEventDragRecipientCopyMove_image') + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string) => { + console.info(`onDragStart enter`) + }) + .onDragEnd((event: DragEvent) => { + console.info(`onDragEnd enter`) + let ret = event.getResult(); + if (ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 }) + + Column() { + Text('释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.blockArr, (item: string, index) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 }) + } + .margin({ left: 30, top: 30 }) + }, (item: string) => item) + } + .id('CommonEventDragRecipientCopyMove_list') + .border({ width: 1 }) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDragEnter((event: DragEvent, extraParams?: string) => { + console.info(`onDragEnter enter`) + event.dragBehavior = DragBehavior.COPY; + }) + .onDragMove((event: DragEvent, extraParams?: string) => { + console.info(`onDragMove enter`) + event.dragBehavior = DragBehavior.COPY; + }) + .onDrop((event: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + event.dragBehavior = DragBehavior.COPY; + let dragData: UnifiedData = (event as DragEvent).getData() as UnifiedData; + if (dragData != undefined) { + let arr: Array = dragData.getRecords(); + if (arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.blockArr.splice(JSON.parse(extraParams as string).insertIndex, 0, this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("100%") + .border({ width: 1 }) + .margin({ left: 12 }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020.ets new file mode 100755 index 0000000000000000000000000000000000000000..f92394c3988ef24630449befc38be5dc4f679ff0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct ActionEventCommonEventTouchAttribute0020 { + @State x: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0020_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0020_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030.ets new file mode 100755 index 0000000000000000000000000000000000000000..41df47af077cf8f7e81a5f18506da4558f3bd987 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct ActionEventCommonEventTouchAttribute0030 { + @State x: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0030_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0030_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040.ets new file mode 100755 index 0000000000000000000000000000000000000000..5b57332a9d876b0b7ce69e1f52058467c37b15d7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct ActionEventCommonEventTouchAttribute0040 { + @State x: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0040_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0040_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..2f7cb8e179aa2bcb6a914f688904656aa7a29eb4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct ActionEventCommonEventTouchAttribute0050 { + @State y: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0050_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0050_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060.ets new file mode 100755 index 0000000000000000000000000000000000000000..86548f61fee7a3b0a872f133e6ba64c36df1e0b9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct ActionEventCommonEventTouchAttribute0060 { + @State y: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0060_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0060_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0070.ets new file mode 100755 index 0000000000000000000000000000000000000000..0df7076e10089b359cc41023e821b80d954b455d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0070.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct ActionEventCommonEventTouchAttribute0070 { + @State y: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0070_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0070_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160.ets new file mode 100755 index 0000000000000000000000000000000000000000..1ea886328c5319e12cce75055b2d45d1aecb232d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160.ets @@ -0,0 +1,48 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct ActionEventCommonEventTouchAttribute0160 { + @State x: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0160_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0160_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170.ets new file mode 100755 index 0000000000000000000000000000000000000000..942ebabf1c9a5842c601472721041312f7d7c019 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170.ets @@ -0,0 +1,48 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct ActionEventCommonEventTouchAttribute0170 { + @State x: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0170_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0170_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180.ets new file mode 100755 index 0000000000000000000000000000000000000000..045d53108d949804c75afff965fbffbda2f3b0aa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180.ets @@ -0,0 +1,48 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct ActionEventCommonEventTouchAttribute0180 { + @State x: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0180_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0180_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0190.ets new file mode 100755 index 0000000000000000000000000000000000000000..5d187caddaf34f07ec91b992ba6b240864ca6185 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0190.ets @@ -0,0 +1,48 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct ActionEventCommonEventTouchAttribute0190 { + @State y: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0190_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0190_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.position.x; + this.y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${x}, positionY: ${this.y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textAreaActionEventCommon.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textAreaActionEventCommon.ets new file mode 100755 index 0000000000000000000000000000000000000000..970bc9ba07e1edead7c8de0d4bb8ca60c11066a7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textAreaActionEventCommon.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct textAreaActionEventCommon { + @State screenPostion :string= '' + build() { + Column() { + TextArea({ text: "白日依山尽,黄河入海流。\n欲穷千里目,更上一层楼。" }) + .width('100%') + .key('key_textArea_action_event_common_001') + .onTouch((event: TouchEvent) => { + let touchIndex = event.touches[0]; + this.screenPostion = 'screenX:' + touchIndex.screenX + ';screenY:' + touchIndex.screenY + }) + Text(this.screenPostion ) + .width('100%') + }.height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textInputActionEventCommon.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textInputActionEventCommon.ets new file mode 100755 index 0000000000000000000000000000000000000000..ad629ee4190662c9d42c09d8d3b73d9f112e8c57 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textInputActionEventCommon.ets @@ -0,0 +1,28 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct textInputActionEventCommon { + + build() { + Column() { + TextInput({ text: "白日依山尽,黄河入海流。\n欲穷千里目,更上一层楼。" }) + .width('100%') + .defaultFocus(true) + .key('key_textInput_action_event_common_001') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/touchObjectActionEventCommon.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/touchObjectActionEventCommon.ets new file mode 100755 index 0000000000000000000000000000000000000000..66183752228d0bdc70297f27dd8106112d8e1fce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/touchObjectActionEventCommon.ets @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct touchObjectActionEventCommon { + @State positionStr: string = 'x:0,y:0' + + build() { + Column() { + Text(this.positionStr) + Button('touchObject') + .id('touch_object_button') + .onTouch((event: TouchEvent) => { + this.positionStr = 'x:' + event.touches[0].displayX + ',y:' + event.touches[0].displayY; + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0170.ets new file mode 100755 index 0000000000000000000000000000000000000000..7f2554425f58cf96eb292898122afd9c311ea671 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0170.ets @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct SUBEventShortcutInterAction0170 { + @State message: string = 'Hello World' + + build() { + Row() { + Column({ space: 5 }) { + Text(this.message) + Button("Test short cut 1 + ctrl").onClick((event: ClickEvent) => { + this.message = "I clicked Button 1"; + console.log("I clicked 2"); + }).keyboardShortcut('1', [ModifierKey.CTRL]) + Button("Test short cut 1 + ctrl").onClick((event: ClickEvent) => { + this.message = "I clicked Button 2"; + console.log("I clicked 2"); + }).keyboardShortcut('1', [ModifierKey.CTRL]) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0180.ets new file mode 100755 index 0000000000000000000000000000000000000000..58c79a302ef70a482a998e5c8f7d7af777ba7884 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0180.ets @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct SUBEventShortcutInterAction0180 { + @State message: string = 'Hello World'; + @State keyValue: string = '1'; + @State keyValue1: string = '2'; + + build() { + Row() { + Column({ space: 5 }) { + Text(this.message) + Button("Test short cut 1 + ctrl").onClick((event: ClickEvent) => { + this.message = "I clicked Button 1"; + console.log("I clicked 2"); + }).keyboardShortcut(this.keyValue, [ModifierKey.CTRL]) + Button("Test short cut 2 + ctrl").onClick((event: ClickEvent) => { + this.message = "I clicked Button 2"; + console.log("I clicked 2"); + }).keyboardShortcut(this.keyValue1, [ModifierKey.CTRL]) + + Button('cancel shortcut').onClick(()=>{ + this.keyValue = ''; + this.keyValue1 = ''; + }).id('SUBEventShortcutInterAction0180_button_01') + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0140.ets new file mode 100755 index 0000000000000000000000000000000000000000..54e8fd40d8937d697a7365f83d531be234a7039a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0140.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 { BuilderNode, FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class ParamsAreaApproximateChange0140 { + public zIndexVal: number = -1; + + constructor(zIndexVal: number) { + this.zIndexVal = zIndexVal; + } +} + +@Builder +function stackBuilder(params: ParamsAreaApproximateChange0140) { + Stack() { + Text('上层').backgroundColor(Color.Blue).fontSize(24).width(150).height(150) + .id('SetOnVisibleAreaApproximateChange0140_text1') + Text('下层').backgroundColor(Color.Pink).fontSize(24).width(80).height(80) + .id('SetOnVisibleAreaApproximateChange0140_text2') + .zIndex(params.zIndexVal) + } + .id('SetOnVisibleAreaApproximateChange0140_stack') + .alignContent(Alignment.BottomEnd) +} + +class MyNodeController extends NodeController { + private rootNode: FrameNode | null = null; + private builderNode: BuilderNode<[ParamsAreaApproximateChange0140]> | null = null; + private zIndexVal: number = -1; + public text: string = ''; + + constructor(zIndexVal: number) { + super(); + this.zIndexVal = zIndexVal; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 300, height: 300 } }); + this.builderNode.build(wrapBuilder<[ParamsAreaApproximateChange0140]>(stackBuilder), + new ParamsAreaApproximateChange0140(this.zIndexVal)); + this.addCommonEvent(this.builderNode!.getFrameNode()!.getChild(0)?.getChild(0)!); + this.addCommonEvent(this.builderNode!.getFrameNode()!.getChild(0)?.getChild(1)!); + return this.builderNode.getFrameNode(); + } + + addCommonEvent(frameNode: FrameNode) { + if (frameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + } + + update(zIndexVal: number) { + if (this.builderNode !== null) { + this.builderNode.update(new ParamsAreaApproximateChange0140(zIndexVal)); + } + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0140 { + @State index: number = 0; + @State button1: string = '使下层按钮上浮'; + @State button2: string = '恢复'; + @State button3: string = 'button3'; + @State text1: string = 'test'; + @State text2: string = 'test'; + @State zIndexVal: number = -1; + @State uiContext: UIContext = this.getUIContext(); + @State text1Node: FrameNode | null = null; + @State text2Node: FrameNode | null = null; + private myNodeController: MyNodeController = new MyNodeController(this.zIndexVal); + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('60%') + + Column() { + Text(this.text1).fontColor(Color.Red).fontSize(24).margin({ bottom: 10 }) + Text(this.text2).fontColor(Color.Red).fontSize(24).margin({ bottom: 10 }) + Button(this.button1) + .id('SetOnVisibleAreaApproximateChange0140_button1') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { + this.zIndexVal = 1; + this.myNodeController.update(this.zIndexVal); + }) + Button(this.button2) + .id('SetOnVisibleAreaApproximateChange0140_button2') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { + this.zIndexVal = -1; + this.myNodeController.update(this.zIndexVal); + }) + Button(this.button3) + .id('SetOnVisibleAreaApproximateChange0140_button3') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { + this.text1Node = this.uiContext.getFrameNodeById('SetOnVisibleAreaApproximateChange0140_text1'); + this.text1Node?.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('上层Text setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text1 = '上层Text setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio; + }); + + this.text2Node = this.uiContext.getFrameNodeById('SetOnVisibleAreaApproximateChange0140_text2'); + this.text2Node?.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('下层Text setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text2 = '下层Text setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio; + }); + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0190.ets new file mode 100755 index 0000000000000000000000000000000000000000..04238657be773b352feace7369640021ec998590 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0190.ets @@ -0,0 +1,122 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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, FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class ParamsAreaApproximateChange0190 { + public zIndexVal: number = -1; + + constructor(zIndexVal: number) { + this.zIndexVal = zIndexVal; + } +} + +@Builder +function stackBuilder(params: ParamsAreaApproximateChange0190) { + Swiper() { + Image('blue_icon.png').height(200).width('100%').id('SetOnVisibleAreaApproximateChange0190_image1') + Image('red_icon.png').height(200).width('100%') + Image('gary_icon.png').height(200).width('100%') + } +} + +class MyNodeController extends NodeController { + private rootNode: FrameNode | null = null; + private builderNode: BuilderNode<[ParamsAreaApproximateChange0190]> | null = null; + private zIndexVal: number = -1; + public text: string = ''; + + constructor(zIndexVal: number) { + super(); + this.zIndexVal = zIndexVal; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 300, height: 300 } }); + this.builderNode.build(wrapBuilder<[ParamsAreaApproximateChange0190]>(stackBuilder), + new ParamsAreaApproximateChange0190(this.zIndexVal)); + this.addCommonEvent(this.builderNode!.getFrameNode()!.getChild(0)?.getChild(0)!); + this.addCommonEvent(this.builderNode!.getFrameNode()!.getChild(0)?.getChild(1)!); + return this.builderNode.getFrameNode(); + } + + addCommonEvent(frameNode: FrameNode) { + if (frameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + } + + update(zIndexVal: number) { + if (this.builderNode !== null) { + this.builderNode.update(new ParamsAreaApproximateChange0190(zIndexVal)); + } + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0190 { + @State index: number = 0; + @State button1: string = '使下层按钮上浮'; + @State button2: string = '恢复'; + @State button3: string = 'button3'; + @State text1: string = 'test'; + @State text2: string = 'test'; + @State zIndexVal: number = -1; + @State uiContext: UIContext = this.getUIContext(); + @State text1Node: FrameNode | null = null; + @State text2Node: FrameNode | null = null; + private myNodeController: MyNodeController = new MyNodeController(this.zIndexVal); + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('40%') + + Column() { + Text(this.text1).fontColor(Color.Red).fontSize(15).margin({ bottom: 10 }) + Button(this.button3) + .id('SetOnVisibleAreaApproximateChange0190_button') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { + this.text1Node = this.uiContext.getFrameNodeById('SetOnVisibleAreaApproximateChange0190_image1'); + this.text1Node?.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('第一个 image setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text1 = '第一个 image setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio; + }); + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0200.ets new file mode 100755 index 0000000000000000000000000000000000000000..91172e705fda488cb5d5d6a2aa776857769513b6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0200.ets @@ -0,0 +1,131 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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, FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class ParamsAreaApproximateChange0200 { + public zIndexVal: number = -1; + + constructor(zIndexVal: number) { + this.zIndexVal = zIndexVal; + } +} + +@Builder +function stackBuilder(params: ParamsAreaApproximateChange0200) { + Tabs({ barPosition: BarPosition.End }) { + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Pink) + }.tabBar(BottomTabBarStyle.of($r("sys.media.ohos_app_icon"), "tab1")).id('SetOnVisibleAreaApproximateChange0200_tab1') + + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Green) + }.tabBar(BottomTabBarStyle.of($r("sys.media.ohos_app_icon"), "tab2")) + + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Blue) + }.tabBar(BottomTabBarStyle.of($r("sys.media.ohos_app_icon"), "tab3")) + } + .width('350vp') + .animationDuration(300) + .height('60%') +} + +class MyNodeController extends NodeController { + private rootNode: FrameNode | null = null; + private builderNode: BuilderNode<[ParamsAreaApproximateChange0200]> | null = null; + private zIndexVal: number = -1; + public text: string = ''; + + constructor(zIndexVal: number) { + super(); + this.zIndexVal = zIndexVal; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 300, height: 300 } }); + this.builderNode.build(wrapBuilder<[ParamsAreaApproximateChange0200]>(stackBuilder), + new ParamsAreaApproximateChange0200(this.zIndexVal)); + this.addCommonEvent(this.builderNode!.getFrameNode()!.getChild(0)?.getChild(0)!); + return this.builderNode.getFrameNode(); + } + + addCommonEvent(frameNode: FrameNode) { + if (frameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + } + + update(zIndexVal: number) { + if (this.builderNode !== null) { + this.builderNode.update(new ParamsAreaApproximateChange0200(zIndexVal)); + } + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0200 { + @State index: number = 0; + @State button1: string = '使下层按钮上浮'; + @State button2: string = '恢复'; + @State button3: string = 'get log'; + @State text1: string = 'log'; + @State zIndexVal: number = -1; + @State uiContext: UIContext = this.getUIContext(); + @State text1Node: FrameNode | null = null; + @State text2Node: FrameNode | null = null; + private myNodeController: MyNodeController = new MyNodeController(this.zIndexVal); + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('40%') + + Column() { + Text(this.text1).fontColor(Color.Red).fontSize(15).margin({ bottom: 10 }) + Button(this.button3) + .id('SetOnVisibleAreaApproximateChange0200_button') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { + this.text1Node = this.uiContext.getFrameNodeById('SetOnVisibleAreaApproximateChange0200_tab1'); + this.text1Node?.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('第一个 tab setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text1 = '第一个 tab setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio; + }); + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0210.ets new file mode 100755 index 0000000000000000000000000000000000000000..11f58172484340686dc5f76f8e50c8962b965aab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0210.ets @@ -0,0 +1,151 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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, typeNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public rootNode: FrameNode | null = null; + public scroller: Scroller | null = null; + public text: string = ''; + + constructor(scroller: Scroller) { + super(); + this.scroller = scroller; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.rootNode.commonAttribute + .width('100%') + .height('100%') + + let scroll = typeNode.createNode(uiContext, 'Scroll'); + scroll.initialize(this.scroller) + .scrollable(ScrollDirection.Vertical) + .scrollBar(BarState.On) + .scrollBarColor(Color.Gray) + .scrollBarWidth(10) + .onScroll((xOffset: number, yOffset: number) => { + console.info('Test Row ' + xOffset + ' ' + yOffset) + }) + .onScrollEdge((side: Edge) => { + console.info('Test Row To the edge') + }) + .onScrollStop(() => { + console.info('Test Row Scroll Stop') + }) + .id('SetOnVisibleAreaApproximateChange0210_scroll1') + this.rootNode.appendChild(scroll); + + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('200%') + scroll.appendChild(col); + + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize('Hello') + .fontColor(Color.Blue) + .fontSize(14) + .width(100) + .height(100) + .backgroundColor(Color.Pink) + .id('SetOnVisibleAreaApproximateChange0210_text1') + col.appendChild(text); + + // 设置限制回调间隔的onVisibleAreaChange事件的回调 + this.addCommonEvent(text); + + return this.rootNode; + } + + addCommonEvent(frameNode: FrameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0210 { + @State index: number = 0; + @State button1: string = 'button1'; + @State button2: string = 'button2'; + @State button3: string = 'button3'; + @State text: string = 'test'; + public scroller: Scroller = new Scroller(); + private myNodeController: MyNodeController = new MyNodeController(this.scroller); + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('60%') + + Column() { + Text(this.text).fontColor(Color.Red).fontSize(24).margin({ bottom: 10 }) + Button(this.button1) + .id('SetOnVisibleAreaApproximateChange0210_button1') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { // 点击后下滑指定距离150.0vp + this.scroller.scrollBy(0, 150); + console.log('Test Row currentOffset x : ' + this.scroller.currentOffset().xOffset) + console.log('Test Row currentOffset y : ' + this.scroller.currentOffset().yOffset) + if (this.scroller.currentOffset().yOffset == 150) { + this.button1 = 'text组件完全滚动出屏幕'; + this.text = this.myNodeController.getText(); + } + }) + Button(this.button2) + .id('SetOnVisibleAreaApproximateChange0210_button2') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { // 点击后上滑指定距离75.0vp + this.scroller.scrollBy(0, -75) + console.log('Test Row currentOffset x : ' + this.scroller.currentOffset().xOffset) + console.log('Test Row currentOffset y : ' + this.scroller.currentOffset().yOffset) + if (this.scroller.currentOffset().yOffset == 75) { + this.button2 = 'text组件滑动回屏幕一半'; + this.text = this.myNodeController.getText(); + } + }) + Button(this.button3) + .id('SetOnVisibleAreaApproximateChange0210_button3') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { // 点击后上滑指定距离75.0vp + this.scroller.scrollBy(0, -75) + console.log('Test Row currentOffset x : ' + this.scroller.currentOffset().xOffset) + console.log('Test Row currentOffset y : ' + this.scroller.currentOffset().yOffset) + if (this.scroller.currentOffset().yOffset == 0) { + this.button3 = 'text组件完全滑动回屏幕'; + this.text = this.myNodeController.getText(); + } + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0230.ets new file mode 100755 index 0000000000000000000000000000000000000000..0cb75acf68ceea221dfd5732d5c61d84e6bf0870 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0230.ets @@ -0,0 +1,142 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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, typeNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public rootNode: FrameNode | null = null; + public scroller: Scroller | null = null; + public text: string = ''; + + constructor(scroller: Scroller) { + super(); + this.scroller = scroller; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.rootNode.commonAttribute + .width('100%') + .height('100%') + + let scroll = typeNode.createNode(uiContext, 'Scroll'); + scroll.initialize(this.scroller) + .scrollable(ScrollDirection.Vertical) + .scrollBar(null) + .scrollBarColor(Color.Transparent) + .id('SetOnVisibleAreaApproximateChange0230_scroll1') + this.rootNode.appendChild(scroll); + + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('200%') + scroll.appendChild(col); + + let text = typeNode.createNode(uiContext, 'TextInput'); + text.initialize({ placeholder: '请输入 textInput111' }) + .fontColor(Color.Blue) + .fontSize(14) + .width('100%') + .height(100) + .backgroundColor(Color.Pink) + .id('SetOnVisibleAreaApproximateChange0230_text1') + col.appendChild(text); + let text2 = typeNode.createNode(uiContext, 'TextInput'); + text2.initialize({ placeholder: '请输入 textInput222' }) + .fontColor(Color.Blue) + .fontSize(14) + .width('100%') + .height(100) + .backgroundColor(Color.Pink) + .id('SetOnVisibleAreaApproximateChange0230_text2') + col.appendChild(text2); + let text3 = typeNode.createNode(uiContext, 'TextInput'); + text3.initialize({ placeholder: '请输入 textInput333' }) + .fontColor(Color.Blue) + .fontSize(14) + .width('100%') + .height(100) + .backgroundColor(Color.Pink) + .id('SetOnVisibleAreaApproximateChange0230_text3') + col.appendChild(text3); + + // 设置限制回调间隔的onVisibleAreaChange事件的回调 + this.addCommonEvent(text); + + return this.rootNode; + } + + addCommonEvent(frameNode: FrameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0230 { + @State index: number = 0; + @State button1: string = 'button1'; + @State button2: string = 'button2'; + @State button3: string = 'button3'; + @State text: string = 'test'; + @State uiContext: UIContext = this.getUIContext(); + public scroller: Scroller = new Scroller(); + private myNodeController: MyNodeController = new MyNodeController(this.scroller); + @State text1Node: FrameNode | null = null; + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('40%') + + Column() { + Text(this.text).fontColor(Color.Red).fontSize(15).margin({ bottom: 10 }) + Button(this.button3) + .id('SetOnVisibleAreaApproximateChange0230_button') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { // 点击后上滑指定距离75.0vp + this.scroller.scrollBy(0, 75) + console.log('Test Row currentOffset x : ' + this.scroller.currentOffset().xOffset) + console.log('Test Row currentOffset y : ' + this.scroller.currentOffset().yOffset) + if (this.scroller.currentOffset().yOffset == 0) { + this.button3 = 'text组件完全滑动回屏幕'; + } + this.text1Node = this.uiContext.getFrameNodeById('SetOnVisibleAreaApproximateChange0230_text1'); + this.text1Node?.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('第一个 textInput setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text = '第一个 textInput setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio; + }); + }) + } + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0250.ets new file mode 100755 index 0000000000000000000000000000000000000000..bd0f7e594eeb4615e330623c39175056967465d9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0250.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, typeNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public rootNode: FrameNode | null = null; + public scroller: Scroller | null = null; + public text: string = ''; + + constructor(scroller: Scroller) { + super(); + this.scroller = scroller; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.rootNode.commonAttribute + .width('100%') + .height('100%') + .backgroundColor(Color.White) + let rootCol = typeNode.createNode(uiContext, 'Column'); + rootCol.initialize({ space: 5 }) + .width('100%') + .height('100%') + let col = typeNode.createNode(uiContext, 'Column'); + col?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + this.text = `Node ${col?.getUniqueId()}:${col?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(this.text).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + rootCol.appendChild(text); + }) + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .backgroundImage('red_icon.png') + .backgroundImageSize({ width: '100%', height: '100%' }) + .margin({ top: 5 }); + rootCol.appendChild(col) + let textInput = typeNode.createNode(uiContext, 'TextInput'); + textInput.initialize({ placeholder: '请输入文字' }).width('100%').height('100%').id('textInput_node0250') + col.appendChild(textInput) + this.rootNode.appendChild(rootCol); + + return this.rootNode; + } + + addCommonEvent(frameNode: FrameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0250 { + @State index: number = 0; + @State button1: string = 'button1'; + @State button2: string = 'button2'; + @State button3: string = 'button3'; + @State text: string = 'test'; + @State uiContext: UIContext = this.getUIContext(); + public scroller: Scroller = new Scroller(); + private myNodeController: MyNodeController = new MyNodeController(this.scroller); + @State text1Node: FrameNode | null = null; + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('70%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0260.ets new file mode 100755 index 0000000000000000000000000000000000000000..612e34dc1e98155cf422f9e2ba41179ca21bee91 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0260.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 { FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public rootNode: FrameNode | null = null; + public scroller: Scroller | null = null; + public text: string = ''; + + constructor(scroller: Scroller) { + super(); + this.scroller = scroller; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.rootNode.commonAttribute + .width('100%') + .height('100%') + .backgroundColor(Color.White) + let rootCol = typeNode.createNode(uiContext, 'Column'); + rootCol.initialize({ space: 5 }) + .width('100%') + .height('100%') + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .backgroundImage('red_icon.png') + .backgroundImageSize({ width: '100%', height: '100%' }) + .margin({ top: 5 }); + rootCol.appendChild(col) + let textInput = typeNode.createNode(uiContext, 'TextInput'); + textInput.initialize({ placeholder: '请输入文字' }).width('100%').height('100%').id('textInput_node0260') + col.appendChild(textInput) + textInput?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + this.text = `Node ${textInput?.getUniqueId()}:${textInput?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(this.text).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + rootCol.appendChild(text); + }) + this.rootNode.appendChild(rootCol); + + return this.rootNode; + } + + addCommonEvent(frameNode: FrameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0260 { + @State index: number = 0; + @State uiContext: UIContext = this.getUIContext(); + public scroller: Scroller = new Scroller(); + private myNodeController: MyNodeController = new MyNodeController(this.scroller); + @State text1Node: FrameNode | null = null; + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('70%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300.ets new file mode 100755 index 0000000000000000000000000000000000000000..6fd19b36b1cd2231e0ea821c33b69bd132564160 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300.ets @@ -0,0 +1,120 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public rootNode: FrameNode | null = null; + private scroller: Scroller = new Scroller(); + public text: string = ''; + + constructor(scroller: Scroller) { + super(); + this.scroller = scroller; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.rootNode.commonAttribute + .width('100%') + .height('100%') + .backgroundColor(Color.White) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }) + + let scrollNode = typeNode.createNode(uiContext, "Scroll") + scrollNode.initialize(this.scroller) + .width('100%') + .height(200) + .scrollable(ScrollDirection.Vertical) + .scrollBar(null) + + let scrollCol = typeNode.createNode(uiContext, 'Column'); + scrollCol.initialize({ space: 5 }) + .justifyContent(FlexAlign.Start) + .height(300) + scrollNode.appendChild(scrollCol) + let row = typeNode.createNode(uiContext, 'Row') + row.initialize().width('100%').height(100) + let text = typeNode.createNode(uiContext, 'Text') + text.initialize('this 1').width('100%').height(100).backgroundColor(Color.Pink) + row.appendChild(text) + let row1 = typeNode.createNode(uiContext, 'Row') + row1.initialize().width('100%').height(100) + let text1 = typeNode.createNode(uiContext, 'Text') + text1.initialize('this 2').width('100%').height(100).backgroundColor(Color.Pink) + row1.appendChild(text1) + let row2 = typeNode.createNode(uiContext, 'Row') + row2.initialize().width('100%').height(100) + let text2 = typeNode.createNode(uiContext, 'Text') + text2.initialize('this 3').width('100%').height(100).backgroundColor(Color.Pink) + row2.appendChild(text2) + scrollCol.appendChild(row) + scrollCol.appendChild(row1) + scrollCol.appendChild(row2) + text?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${row?.getUniqueId()}:${row?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + let button = typeNode.createNode(uiContext, 'Button'); + button.initialize('scroll').onClick(() => { + this.scroller.scrollEdge(Edge.Bottom) + }); + col.appendChild(button); + col.appendChild(scrollNode); + this.rootNode.appendChild(col); + + return this.rootNode; + } + + addCommonEvent(frameNode: FrameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0300 { + @State index: number = 0; + @State uiContext: UIContext = this.getUIContext(); + public scroller: Scroller = new Scroller(); + private myNodeController: MyNodeController = new MyNodeController(this.scroller); + @State text1Node: FrameNode | null = null; + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('40%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0320.ets new file mode 100755 index 0000000000000000000000000000000000000000..d59a1ea1309b8c4f6e81b351f419350fa1064461 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0320.ets @@ -0,0 +1,135 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public rootNode: FrameNode | null = null; + private scroller: Scroller = new Scroller(); + public text: string = ''; + + constructor(scroller: Scroller) { + super(); + this.scroller = scroller; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.rootNode.commonAttribute + .width('100%') + .height('100%') + .backgroundColor(Color.White) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }) + // this.node.appendChild(col); + + let stack = typeNode.createNode(uiContext, 'Stack'); + stack.initialize({ alignContent: Alignment.TopStart }) + .width('100%') + .height('100%') + col.appendChild(stack) + + let scrollNode = typeNode.createNode(uiContext, "Scroll") + scrollNode.initialize(this.scroller) + .width('100%') + .height(200) + .scrollable(ScrollDirection.Vertical) + .scrollBar(null) + stack.appendChild(scrollNode) + + let scrollCol = typeNode.createNode(uiContext, 'Column'); + scrollCol.initialize({ space: 5 }) + .justifyContent(FlexAlign.Start) + .height(300) + scrollNode.appendChild(scrollCol) + let row = typeNode.createNode(uiContext, 'Row') + row.initialize().width('100%').height(100) + let text = typeNode.createNode(uiContext, 'Text') + text.initialize('this 1').width('100%').height(100).backgroundColor(Color.Pink) + row.appendChild(text) + let row1 = typeNode.createNode(uiContext, 'Row') + row1.initialize().width('100%').height(100) + let text1 = typeNode.createNode(uiContext, 'Text') + text1.initialize('this 2').width('100%').height(100).backgroundColor(Color.Pink) + row1.appendChild(text1) + let row2 = typeNode.createNode(uiContext, 'Row') + row2.initialize().width('100%').height(100) + let text2 = typeNode.createNode(uiContext, 'Text') + text2.initialize('this 3').width('100%').height(100).backgroundColor(Color.Pink) + row2.appendChild(text2) + scrollCol.appendChild(row) + scrollCol.appendChild(row1) + scrollCol.appendChild(row2) + row?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${row?.getUniqueId()}:${row?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + stack?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${stack?.getUniqueId()}:${stack?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + let button = typeNode.createNode(uiContext, 'Button'); + button.initialize('scroll').onClick(() => { + this.scroller.scrollEdge(Edge.Bottom) + }); + col.appendChild(button); + this.rootNode.appendChild(col); + + return this.rootNode; + } + + addCommonEvent(frameNode: FrameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0320 { + @State index: number = 0; + @State uiContext: UIContext = this.getUIContext(); + public scroller: Scroller = new Scroller(); + private myNodeController: MyNodeController = new MyNodeController(this.scroller); + @State text1Node: FrameNode | null = null; + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('40%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh01.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh01.ets new file mode 100755 index 0000000000000000000000000000000000000000..c37aad794d4d7d2ebbfd6b57f4ffe066f9758790 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh01.ets @@ -0,0 +1,41 @@ +/** + * 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. + */ +@Entry +@Component +struct StatusManagerRefresh01 { + @State isRefreshing: boolean = false + + build() { + Column() { + Refresh({ refreshing: this.isRefreshing, offset: 120, friction: 100 }) { + Button('Refresh1').onClick(() => { + }).width(260) + .height(70) + .fontColor(Color.Black) + .keyboardShortcut(FunctionKey.F5, []) + .onKeyEvent((event: KeyEvent) => { + console.log("Refresh1 event.keyCode: " + JSON.stringify(event)); + }) + } + .id('Refresh1') + .onStateChange((refreshStatus: RefreshStatus) => { + console.info('Refresh onStateChange state is ' + refreshStatus); + }) + .onRefreshing(() => { + console.log('onRefreshing test') + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh02.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh02.ets new file mode 100755 index 0000000000000000000000000000000000000000..d697086746f246c4514772d5df25825d26057c60 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh02.ets @@ -0,0 +1,40 @@ +/** + * 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. + */ +@Entry +@Component +struct StatusManagerRefresh02 { + @State isRefreshing: boolean = false + + build() { + Column() { + Refresh({ refreshing: this.isRefreshing, offset: 120, friction: 100 }) { + Button('Refresh2').onClick(() => { + }).width(260) + .height(70) + .fontColor(Color.Black) + .onKeyEvent((event: KeyEvent) => { + console.log("Refresh2 event.keyCode: " + JSON.stringify(event)); + }) + } + .id('Refresh2') + .onStateChange((refreshStatus: RefreshStatus) => { + console.info('Refresh2 onStateChange state is ' + refreshStatus); + }) + .onRefreshing(() => { + console.log('Refresh2 test') + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0010.ets new file mode 100755 index 0000000000000000000000000000000000000000..963f13a8e8cbeb4f7691bc82e2e068bf66f73d84 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0010.ets @@ -0,0 +1,81 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct SubAceActionEventCommonEventInterface0010 { + @State x: Length | undefined = ''; + @State log: string = '' + + build() { + Column() { + Stack() { + Stack() + .id('stack2') + .width(230) + .height(100) + .backgroundColor(Color.Green) + .onClick(() => { + console.log("event--> stack2 click"); + this.log += 'stack2 click \r\n' + }) + // .onTouchIntercept((event: TouchEvent) => { + // console.log("event--> stack2 OnTouchIntercept + " + JSON.stringify(event)); + // return HitTestMode.None + // }) + + Stack() { + Button("button") + .width(100) + .height(80) + .id('button').onClick(() => { + console.log("event--> button click "); + this.log += 'button click\r\n' + }) + } + .id('stack3') + .width(150) + .height(150) + .backgroundColor(Color.Yellow) + .onClick(() => { + console.log("event--> stack3 click"); + this.log += 'stack3 click \r\n' + }) + // .onTouchIntercept((event: TouchEvent) => { + // console.log("event--> stack3 OnTouchIntercept + " + JSON.stringify(event)); + // return HitTestMode.None + // }) + } + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack1 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.None + }) + .onClick(() => { + console.log("event--> stack1 click"); + this.log += 'stack1 click \r\n' + }) + .width(300) + .height(300) + .backgroundColor(Color.Blue) + .id('stack1') + .margin({ top: 100 }) + + Text(this.log) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..0628a387d67b1eb12be5284a984cd7c3df5bf567 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0050.ets @@ -0,0 +1,72 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct SubAceActionEventCommonEventInterface0050 { + @State x: Length | undefined = ''; + @State log: string = '' + + build() { + Column() { + Stack() { + Stack() + .id('stack2') + .width(230) + .height(100) + .onClick(() => { + console.log("event--> stack2 click "); + this.log += 'stack2 click\r\n' + }) + .backgroundColor(Color.Green) + Stack() { + Button("button") + .width(100) + .height(80) + .id('button').onClick(() => { + console.log("event--> button click "); + this.log += 'button click\r\n' + }) + } + .id('stack3') + .width(150) + .height(150) + .backgroundColor(Color.Yellow) + .onClick(() => { + console.log("event--> stack3 click "); + this.log += 'stack3 click\r\n' + }) + } + .onClick(() => { + console.log("event--> stack1 click"); + this.log += 'stack1 click \r\n' + }) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack1 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.Transparent + }) + .width(300) + .height(300) + .backgroundColor(Color.Blue) + .id('stack1') + .margin({ top: 100 }) + + Text(this.log) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0090.ets new file mode 100755 index 0000000000000000000000000000000000000000..5c587fcdba1bbde53392108d662c9d5e776bb0c2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0090.ets @@ -0,0 +1,80 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct SubAceActionEventCommonEventInterface0090 { + @State x: Length | undefined = ''; + @State log: string = '' + + build() { + Column() { + Stack() { + Stack() + .id('stack2') + .width(230) + .height(100) + .backgroundColor(Color.Green) + .onClick(() => { + console.log("event--> stack2 click"); + this.log += 'stack2 click \r\n' + return HitTestMode.Transparent + }) + + Stack() { + Button("button") + .width(100) + .height(80) + .id('button').onClick(() => { + console.log("event--> button click "); + this.log += 'button click\r\n' + }) + } + .id('stack3') + .width(150) + .height(150) + .backgroundColor(Color.Yellow) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack3 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.None + }) + .onClick(() => { + console.log("event--> stack3 click"); + this.log += 'stack3 click \r\n' + return HitTestMode.Transparent + }) + } + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack2 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.None + }) + .onClick(() => { + console.log("event--> stack1 click"); + this.log += 'stack1 click \r\n' + return HitTestMode.Transparent + }) + .width(300) + .height(300) + .backgroundColor(Color.Blue) + .id('stack1') + .margin({ top: 100 }) + + Text(this.log) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0140.ets new file mode 100755 index 0000000000000000000000000000000000000000..55e6474c65eb4eea0562dd876bce96b3101390c2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0140.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. + */ + +@Entry +@Component +struct SubAceActionEventCommonEventInterface0140 { + @State x: Length | undefined = ''; + @State log: string = '' + + build() { + Column() { + Stack() { + Stack() + .id('stack2') + .width(230) + .height(100) + .backgroundColor(Color.Green) + .onClick(() => { + console.log("event--> stack2 click"); + this.log += 'stack2 click \r\n' + return HitTestMode.Transparent + }) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack2 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.None + }) + Stack() { + Button("button") + .width(100) + .height(80) + .id('button').onClick(() => { + console.log("event--> button click "); + this.log += 'button click\r\n' + }) + } + .id('stack3') + .width(150) + .height(150) + .backgroundColor(Color.Yellow) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack3 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.Block + }) + .onClick(() => { + console.log("event--> stack3 click"); + this.log += 'stack3 click \r\n' + return HitTestMode.Transparent + }) + } + .onClick(() => { + console.log("event--> stack1 click"); + this.log += 'stack1 click \r\n' + return HitTestMode.Transparent + }) + .width(300) + .height(300) + .backgroundColor(Color.Blue) + .id('stack1') + .margin({ top: 100 }) + + Text(this.log) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0160.ets new file mode 100755 index 0000000000000000000000000000000000000000..8763b700bfe0aed7c3eb9f94225bb41498abd679 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0160.ets @@ -0,0 +1,76 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct SubAceActionEventCommonEventInterface0160 { + @State x: Length | undefined = ''; + @State log: string = '' + + build() { + Column() { + Stack() { + Stack() + .id('stack2') + .width(230) + .height(100) + .backgroundColor(Color.Green) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack2 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.None + }) + .onClick(() => { + console.log("event--> stack2 click"); + this.log += 'stack2 click \r\n' + }) + Stack() { + Button("button") + .width(100) + .height(80) + .id('button').onClick(() => { + console.log("event--> button click "); + this.log += 'button click\r\n' + }) + } + .id('stack3') + .width(150) + .height(150) + .backgroundColor(Color.Yellow) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack3 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.Default + }) + .onClick(() => { + console.log("event--> stack3 click"); + this.log += 'stack3 click \r\n' + }) + } + .onClick(() => { + console.log("event--> stack1 click"); + this.log += 'stack1 click \r\n' + }) + .width(300) + .height(300) + .backgroundColor(Color.Blue) + .id('stack1') + .margin({ top: 100 }) + + Text(this.log) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0190.ets new file mode 100755 index 0000000000000000000000000000000000000000..21d483d2ab1b5dd542e1e55a11146d8f6228603e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0190.ets @@ -0,0 +1,80 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct SubAceActionEventCommonEventInterface0190 { + @State x: Length | undefined = ''; + @State log: string = '' + + build() { + Column() { + Stack() { + Stack() + .id('stack2') + .width(230) + .height(100) + .backgroundColor(Color.Green) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack2 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.None + }) + .onClick(() => { + console.log("event--> stack2 click"); + this.log += 'stack2 click \r\n' + }) + Stack() { + Button("button") + .width(100) + .height(80) + .id('button').onClick(() => { + console.log("event--> button click "); + this.log += 'button click\r\n' + }) + } + .id('stack3') + .width(150) + .height(150) + .backgroundColor(Color.Yellow) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack3 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.Transparent + }) + .onClick(() => { + console.log("event--> stack3 click"); + this.log += 'stack3 click \r\n' + }) + } + .onClick(() => { + console.log("event--> stack1 click"); + this.log += 'stack1 click \r\n' + }) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack3 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.Block + }) + .width(300) + .height(300) + .backgroundColor(Color.Blue) + .id('stack1') + .margin({ top: 100 }) + + Text(this.log) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0100.ets new file mode 100755 index 0000000000000000000000000000000000000000..fbc87f110109bb84e9ec45d3bacbce265e0a7d3b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0100.ets @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct SubAceActionGestureJudge0100 { + @State text: string = '' + @State DragText: string = '' + @State ISsYSTEM: string = '' + @State changeValue: string = '' + @State submitValue: string = '' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + controller: SearchController = new SearchController() + + + build() { + Column() { + Button('Click').width(100).height(40) + .onClick((event?: ClickEvent) => { + if(event){ + this.text = 'Click Point:' + '\n windowX:' + event.windowX + '\n windowY:' + event.windowY + + '\n x:' + event.x + '\n y:' + event.y + '\ntarget:' + '\n component globalPos:(' + + event.target.area.globalPosition.x + ',' + event.target.area.globalPosition.y + ')\n width:' + + event.target.area.width + '\n height:' + event.target.area.height + '\ntimestamp' + event.timestamp; + } + }) + .id('button') + .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent) => { + // 自定义判定标准 + if (gestureInfo.type == GestureControl.GestureType.CLICK) { + this.DragText = 'GestureControl.GestureType.CLICK is true' + this.ISsYSTEM = 'isystem is true' + // 返回 REJECT 会使拖动手势失败 + return GestureJudgeResult.CONTINUE; + } else { + this.DragText = 'GestureControl.GestureType.CLICK is false' + // 返回 CONTINUE 将保持系统判定。 + return GestureJudgeResult.REJECT; + } + }) + // Text(this.text).margin(15) + // Text(this.DragText) + Text(this.ISsYSTEM) + }.width('100%').height('100%').backgroundColor('#F1F3F5') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0110.ets new file mode 100755 index 0000000000000000000000000000000000000000..daa2aaee30dc6ec357eb1d6254fbc8bee03588d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0110.ets @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import UDC from '@ohos.data.unifiedDataChannel'; +import json from '@ohos.util.json'; + +@Entry +@Component +struct SubAceActionGestureJudge0110 { + @State DragText: string = '' + @State ISsYSTEM: string = '' + @State changeValue: string = '' + @State submitValue: string = '' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + controller: SearchController = new SearchController() + + + build() { + Column() { + Button('DragStart').margin({left: 40, top: 20}) + .width('100%') + .height(100) + .id('dragStart') + .onDragStart((event)=>{ + let data: UDC.PlainText = new UDC.PlainText(); + data.abstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + + }) + .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent) => { + // 自定义判定标准 + console.log(json.stringify(gestureInfo)) + console.log(json.stringify(event)) + if (gestureInfo.type == GestureControl.GestureType.DRAG) { + this.DragText = 'GestureControl.GestureType.DRAG is true ' + this.ISsYSTEM = 'isystem is true' + // 返回 REJECT 会使拖动手势失败 + return GestureJudgeResult.CONTINUE; + } else { + this.DragText = 'GestureControl.GestureType.DRAG is false' + // 返回 CONTINUE 将保持系统判定。 + return GestureJudgeResult.REJECT; + } + }) + // Text(this.DragText) + Text(this.ISsYSTEM) + }.width('100%').height('100%').backgroundColor('#F1F3F5') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0240.ets new file mode 100755 index 0000000000000000000000000000000000000000..ea6e7471fdb6e6bd5a17a13148b91a212f8810f4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0240.ets @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct SubAceActionGestureJudge0240 { + @State count: number = 0 + @State offsetX: number = 0 + @State offsetY: number = 0 + @State positionX: number = 0 + @State positionY: number = 0 + @State borderStyles: BorderStyle = BorderStyle.Solid + @State text: string = '' + + build() { + Column() { + Column() { + Text('sequence gesture\n' + 'LongPress onAction:' + this.count + '\nPanGesture offset:\nX: ' + this.offsetX + + '\n' + 'Y: ' + this.offsetY) + .fontSize(15) + } + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .height(150) + .width(200) + .id('column') + .padding(20) + .margin(20) + .border({ width: 3, style: this.borderStyles }) + .gesture( + // 以下组合手势为顺序识别,当长按手势事件未正常触发时则不会触发拖动手势事件 + GestureGroup(GestureMode.Parallel, + LongPressGesture({ repeat: true }) + .tag("longPress1") + .onAction((event?: GestureEvent) => { + console.info('LongPress onAction') + this.text += 'LongPress onAction\r\n' + }) + .onActionEnd((event?: GestureEvent) => { + console.info('LongPress onActionEnd') + this.text += 'LongPress onActionEnd\r\n' + }), + TapGesture({ count: 2 }) + .tag("tag1") + .onAction((event?: GestureEvent) => { + if (event) { + console.log('TapGesture onAction') + this.text += 'TapGesture onAction\r\n' + } + }) + ) + + ) + .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent) => { + // 若该手势类型为长按手势,转换为长按手势事件 + if (gestureInfo.type == GestureControl.GestureType.LONG_PRESS_GESTURE) { + let longPressEvent = event as LongPressGestureEvent; + console.log("repeat " + longPressEvent.repeat) + } + // 若该手势类型为拖动手势,转换为拖动手势事件 + if (gestureInfo.type == GestureControl.GestureType.TAP_GESTURE) { + } + // 自定义判定标准 + if (gestureInfo.tag == 'tag1') { + // 返回 REJECT 会使拖动手势失败 + return GestureJudgeResult.CONTINUE; + } else if (gestureInfo.tag == 'longPress1') { + // 返回 CONTINUE 将保持系统判定。 + return GestureJudgeResult.CONTINUE; + } + return GestureJudgeResult.REJECT; + }) + + Text(this.text) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0250.ets new file mode 100755 index 0000000000000000000000000000000000000000..df8bd59be32ccc190424c105c0d32b824ffa9b0f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0250.ets @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct SubAceActionGestureJudge0250 { + @State count: number = 0 + @State offsetX: number = 0 + @State offsetY: number = 0 + @State positionX: number = 0 + @State positionY: number = 0 + @State borderStyles: BorderStyle = BorderStyle.Solid + @State text: string = '' + + build() { + Column() { + Column() { + Text('sequence gesture\n' + 'LongPress onAction:' + this.count + '\nTapGesture offset:\nX: ' + this.offsetX + + '\n' + 'Y: ' + this.offsetY) + .fontSize(15) + } + .id('column') + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .height(150) + .width(200) + .padding(20) + .margin(20) + .border({ width: 3, style: this.borderStyles }) + .gesture( + // 以下组合手势为顺序识别,当长按手势事件未正常触发时则不会触发拖动手势事件 + GestureGroup(GestureMode.Exclusive, + LongPressGesture({ repeat: true }) + .tag("longPress1") + .onAction((event?: GestureEvent) => { + console.info('LongPress onAction') + this.text += 'LongPress onAction\r\n' + }) + .onActionEnd((event?: GestureEvent) => { + console.info('LongPress onActionEnd') + this.text += 'LongPress onActionEnd\r\n' + }), + TapGesture({ count: 1 }) + .tag("tap1") + .onAction((event?: GestureEvent) => { + if (event) { + console.log('TapGesture onAction') + this.text += 'TapGesture onAction\r\n' + } + }) + ) + ) + .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent) => { + // 若该手势类型为长按手势,转换为长按手势事件 + if (gestureInfo.type == GestureControl.GestureType.LONG_PRESS_GESTURE) { + let longPressEvent = event as LongPressGestureEvent; + console.log("repeat " + longPressEvent.repeat) + } + // 若该手势类型为拖动手势,转换为拖动手势事件 + if (gestureInfo.type == GestureControl.GestureType.TAP_GESTURE) { + let TapEvent = event as TapGestureEvent; + console.log("velocity " + TapEvent.target) + } + // 自定义判定标准 + if (gestureInfo.tag == 'tap1') { + // 返回 REJECT 会使拖动手势失败 + return GestureJudgeResult.CONTINUE; + } else if (gestureInfo.tag == 'longPress1') { + // 返回 CONTINUE 将保持系统判定。 + return GestureJudgeResult.CONTINUE; + } + return GestureJudgeResult.REJECT; + }) + + Text(this.text) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0260.ets new file mode 100755 index 0000000000000000000000000000000000000000..31a387c66e57bb91c273c38cf551d120086a0668 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0260.ets @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct SubAceActionGestureJudge0260 { + @State text: string = '' + @State DragText: string = '' + @State ISsYSTEM: string = '' + @State changeValue: string = '' + @State submitValue: string = '' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + controller: SearchController = new SearchController() + + + build() { + Column() { + Button('Click').width(100).height(40) + .onClick((event?: ClickEvent) => { + if(event){ + this.text = 'Click Point:' + '\n windowX:' + event.windowX + '\n windowY:' + event.windowY + + '\n x:' + event.x + '\n y:' + event.y + '\ntarget:' + '\n component globalPos:(' + + event.target.area.globalPosition.x + ',' + event.target.area.globalPosition.y + ')\n width:' + + event.target.area.width + '\n height:' + event.target.area.height + '\ntimestamp' + event.timestamp; + } + }) + .id('button') + .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent) => { + // 自定义判定标准 + if (gestureInfo.type == GestureControl.GestureType.CLICK) { + this.DragText = 'GestureControl.GestureType.CLICK is true' + this.ISsYSTEM = 'isystem is true' + // 返回 REJECT 会使拖动手势失败 + return GestureJudgeResult.CONTINUE; + } else { + this.DragText = 'GestureControl.GestureType.CLICK is false' + // 返回 CONTINUE 将保持系统判定。 + return GestureJudgeResult.REJECT; + } + }) + Text(this.text).margin(15) + Text(this.DragText) + Text(this.ISsYSTEM) + }.width('100%').height('100%').backgroundColor('#F1F3F5') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0280.ets new file mode 100755 index 0000000000000000000000000000000000000000..a8f136d7403ae03cd7457aee94fc010b10651663 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0280.ets @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import UDC from '@ohos.data.unifiedDataChannel'; +import json from '@ohos.util.json'; + +@Entry +@Component +struct SubAceActionGestureJudge0280 { + @State DragText: string = '' + @State ISsYSTEM: string = '' + @State changeValue: string = '' + @State submitValue: string = '' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + controller: SearchController = new SearchController() + + + build() { + Column() { + Button('DragStart').margin({left: 40, top: 20}) + .width('100%') + .height(100) + .id('dragStart') + .onDragStart((event)=>{ + let data: UDC.PlainText = new UDC.PlainText(); + data.abstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + + }) + .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent) => { + // 自定义判定标准 + console.log(json.stringify(gestureInfo)) + console.log(json.stringify(event)) + if (gestureInfo.type == GestureControl.GestureType.DRAG) { + this.DragText = 'GestureControl.GestureType.DRAG is true ' + this.ISsYSTEM = 'isystem is true' + // 返回 REJECT 会使拖动手势失败 + return GestureJudgeResult.CONTINUE; + } else { + this.DragText = 'GestureControl.GestureType.DRAG is false' + // 返回 CONTINUE 将保持系统判定。 + return GestureJudgeResult.REJECT; + } + }) + Text(this.DragText) + // Text(this.ISsYSTEM) + }.width('100%').height('100%').backgroundColor('#F1F3F5') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030.ets new file mode 100755 index 0000000000000000000000000000000000000000..0166e37137462224d59f031761c5ec45074fd8a6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030.ets @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct SubAceActionGestureOnChildTouch0030 { + private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] + @State text: string = 'hello word' + + build() { + Column() { + List({ space: 12, initialIndex: 0 }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Text('Item ' + item) + .width('100%') + .height(56) + .fontSize(16) + .textAlign(TextAlign.Start) + }.borderRadius(24) + .backgroundColor(Color.White) + .padding({ left: 12, right: 12 }) + }, (item: string) => item) + } + .listDirection(Axis.Vertical) + .scrollBar(BarState.Off) + .backgroundColor(Color.Blue) + .edgeEffect(EdgeEffect.Spring) + .onScrollIndex((start: number, end: number) => { + console.info('first' + start) + console.info('last' + end) + }) + .onScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(`onScroll scrollState = ScrollState` + scrollState + `, scrollOffset = ` + scrollOffset) + }) + .width('80%') + .height('60%') + .id('MyList') + + Text(this.text ) + .width(312) + .height(80) + .id('text') + .backgroundColor(Color.Yellow) + .fontSize(18) + .fontWeight(FontWeight.Medium) + .margin({ top: 20 }) + .onClick(() => { + this.text = 'click the Text' + promptAction.showToast({ message: 'you click the Text.', duration: 3000 }) + }) + } + .width('100%') + .height('100%') + .id('root') + .backgroundColor(Color.Orange) + .justifyContent(FlexAlign.End) + .padding({ left: 12, right: 12, bottom: 24 }) + .onChildTouchTest((touchinfo) => { + for (let info of touchinfo) { + if (info.id == 'MyList') { + return { id: info.id, strategy: TouchTestStrategy.FORWARD_COMPETITION } + } + } + return { strategy: TouchTestStrategy.DEFAULT } + }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0070.ets new file mode 100755 index 0000000000000000000000000000000000000000..5e707f25b3df035f73ba63465e5f1c6e6b35caec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0070.ets @@ -0,0 +1,140 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0070 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.All }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + promptAction.showToast({ + message: '拖动方向:All', + duration: 3000, + }); + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0, 2) + '\n' + 'Y: ' + + this.offsetY.toString().substring(0, 2)) + .id('TouchEventDockPointerEvent0070_text') + .margin({ top: 5 }) + .fontSize(12) + .padding(6) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + // this.offsetX = this.positionX + event.offsetX; + // this.offsetY = this.positionY + event.offsetY; + this.offsetX = 30; + this.offsetY = 30; + console.log('PanGesture Offset:\nX: ' + (this.positionX + event.offsetX) + '\n' + 'Y: ' + + (this.positionY + event.offsetY)) + } + }) + .onActionEnd(() => { + this.positionX = 30; + this.positionY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .height(200) + .width(250) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0080.ets new file mode 100755 index 0000000000000000000000000000000000000000..39970d197c664cdaf6e84846afcb1b1148e876db --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0080.ets @@ -0,0 +1,140 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0080 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Horizontal }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + promptAction.showToast({ + message: '拖动方向:Horizontal', + duration: 3000, + }); + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0, 2) + '\n' + 'Y: ' + + this.offsetY.toString().substring(0, 2)) + .id('TouchEventDockPointerEvent0080_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .translate({ x: this.offsetX, y: 0, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + // this.offsetX = event.offsetX + this.positionX; + this.offsetX = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + (event.offsetX + this.positionX)) + } + }) + .onActionEnd(() => { + this.positionX = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .alignItems(HorizontalAlign.Start) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0090.ets new file mode 100755 index 0000000000000000000000000000000000000000..5002ee71a0eb18d48bc77398a4ab73d9b71025ba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0090.ets @@ -0,0 +1,138 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0090 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Vertical }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + promptAction.showToast({ + message: '拖动方向:Vertical', + duration: 3000, + }); + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0,2) + '\n' + 'Y: ' + this.offsetY.toString().substring(0,2)) + .id('TouchEventDockPointerEvent0090_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .translate({ x: 0, y: this.offsetY, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + // this.offsetY = this.positionY + event.offsetY; + this.offsetY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + (this.positionY + event.offsetY)) + } + }) + .onActionEnd(() => { + this.positionY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .height(200) + .width(250) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0100.ets new file mode 100755 index 0000000000000000000000000000000000000000..712df8c40587f389587b58e71be0580fe4b18eba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0100.ets @@ -0,0 +1,139 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0100 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Left }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + promptAction.showToast({ + message: '拖动方向:Left', + duration: 3000, + }); + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0,2) + '\n' + 'Y: ' + this.offsetY.toString().substring(0,2)) + .id('TouchEventDockPointerEvent0100_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .translate({ x: this.offsetX, y: 0, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + // this.offsetX = event.offsetX - this.positionX; + this.offsetX = -30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + (event.offsetX - this.positionX)) + } + }) + .onActionEnd(() => { + this.positionX = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .alignItems(HorizontalAlign.End) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0110.ets new file mode 100755 index 0000000000000000000000000000000000000000..dc75fa808a99254f670ec744d66f04873a40082c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0110.ets @@ -0,0 +1,139 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0110 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Right }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + promptAction.showToast({ + message: '拖动方向:Right', + duration: 3000, + }); + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0,2) + '\n' + 'Y: ' + this.offsetY.toString().substring(0,2)) + .id('TouchEventDockPointerEvent0110_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .translate({ x: this.offsetX, y: 0, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + // this.offsetX = event.offsetX + this.positionX; + this.offsetY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + (event.offsetX + this.positionX)) + } + }) + .onActionEnd(() => { + this.positionX = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .alignItems(HorizontalAlign.Start) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0120.ets new file mode 100755 index 0000000000000000000000000000000000000000..7f2bc2cbee31d333a6e0ddc2aff812540831a93f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0120.ets @@ -0,0 +1,139 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0120 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Horizontal }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + promptAction.showToast({ + message: '拖动方向:Up', + duration: 3000, + }); + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0,2) + '\n' + 'Y: ' + this.offsetY.toString().substring(0,2)) + .id('TouchEventDockPointerEvent0120_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .translate({ x: 0, y: this.offsetY, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + // this.offsetY = event.offsetY - this.positionY; + this.offsetY = -30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + (event.offsetY - this.positionY)) + } + }) + .onActionEnd(() => { + this.positionY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .alignItems(HorizontalAlign.Start) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0130.ets new file mode 100755 index 0000000000000000000000000000000000000000..881c2337ce5c85729c87cbe95c0e8baaa3136b7b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0130.ets @@ -0,0 +1,138 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0130 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Horizontal }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + promptAction.showToast({ + message: '拖动方向:Down', + duration: 3000, + }); + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0,2) + '\n' + 'Y: ' + this.offsetY.toString().substring(0,2)) + .id('TouchEventDockPointerEvent0130_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .translate({ x: 0, y: this.offsetY, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + this.offsetY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + (event.offsetY + this.positionY)) + } + }) + .onActionEnd(() => { + this.positionY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .alignItems(HorizontalAlign.Start) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0140.ets new file mode 100755 index 0000000000000000000000000000000000000000..4f5e0cff5e833c397b044be7fdb707ea406c9837 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0140.ets @@ -0,0 +1,132 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0140 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.None }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + promptAction.showToast({ + message: '拖动方向:None', + duration: 3000, + }); + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + .id('TouchEventDockPointerEvent0140_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + } + .height(200) + .width(250) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0210.ets new file mode 100755 index 0000000000000000000000000000000000000000..1d60194dbe25c4f17ef66e376d356615a0985c09 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0210.ets @@ -0,0 +1,141 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class MyDataSourceEvent0210 implements IDataSource { + private list: number[] = [] + + constructor(list: number[]) { + this.list = list + } + + totalCount(): number { + return this.list.length + } + + getData(index: number): number { + return this.list[index] + } + + registerDataChangeListener(listener: DataChangeListener): void { + } + + unregisterDataChangeListener() { + } +} + +@Entry +@Component +struct TouchEventDockPointerEvent0210 { + @State arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7] + @State enterEndDeleteAreaString: string = "not enterEndDeleteArea" + @State exitEndDeleteAreaString: string = "not exitEndDeleteArea" + private scroller: ListScroller = new ListScroller() + private swiperController: SwiperController = new SwiperController() + private data: MyDataSourceEvent0210 = new MyDataSourceEvent0210([]) + + aboutToAppear(): void { + let list: number[] = [] + for (let i = 1; i <= 5; i++) { + list.push(i); + } + this.data = new MyDataSourceEvent0210(list) + } + + @Builder + itemEnd() { + Row() { + Button('Delete').margin('4vp') + Button('Set').margin('4vp').onClick(() => { + this.scroller.closeAllSwipeActions() + }) + }.padding(4).justifyContent(FlexAlign.SpaceEvenly) + } + + build() { + Column() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item.toString()) + .width('100%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, (item: string) => item) + } + .id('TouchEventDockPointerEvent0210_swiper') + .cachedCount(2) + .index(0) + .autoPlay(false) + .interval(4000) + .indicator(Indicator.digit()// 设置数字导航点样式 + .top(200) + .fontColor(Color.Gray) + .selectedFontColor(Color.Gray) + .digitFont({ size: 20, weight: FontWeight.Bold }) + .selectedDigitFont({ size: 20, weight: FontWeight.Normal })) + .loop(true) + .duration(1000) + .itemSpace(0) + .displayArrow(true, false) + + Column() { + List({ space: 10, scroller: this.scroller }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Text('ListItem' + item) + .width('100%') + .height(100) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + } + .transition({ type: TransitionType.Delete, opacity: 0 }) + .swipeAction({ + end: { + builder: () => { + this.itemEnd() + }, + onAction: () => { + animateTo({ duration: 1000 }, () => { + let index = this.arr.indexOf(item) + this.arr.splice(index, 1) + }) + }, + actionAreaDistance: 56, + onEnterActionArea: () => { + this.enterEndDeleteAreaString = "enterEndDeleteArea" + this.exitEndDeleteAreaString = "not exitEndDeleteArea" + }, + onExitActionArea: () => { + this.enterEndDeleteAreaString = "not enterEndDeleteArea" + this.exitEndDeleteAreaString = "exitEndDeleteArea" + } + } + }) + }, (item: string) => item) + } + .id('TouchEventDockPointerEvent0210_list') + .margin({ top: 10 }) + .height(400) + } + } + .padding(10) + .backgroundColor(0xDCDCDC) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0010.ets new file mode 100755 index 0000000000000000000000000000000000000000..3ec854a2128284da803f9f62052f4d7c741996a2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0010.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0010 { + @State value: string = ""; + @State count: number = 1; + + build() { + Column() { + Text('tap Click').fontSize(20) + .id('tapClick') + .gesture( + TapGesture({ count: 1,fingers:1 }) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.value = JSON.stringify(event.fingerList[0]); + } + })) + Text(this.value) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0020.ets new file mode 100755 index 0000000000000000000000000000000000000000..c3e7ca60a89332eecbe9721eab6586a117551680 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0020.ets @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0020 { + @State value: string = ""; + @State count: number = 1; + + build() { + Column() { + Text('连点数切换:' + this.count).fontSize(20) + .id('change') + .gesture( + TapGesture({ count: 2,fingers:1}) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.count = this.count + event.fingerList.length; + promptAction.showToast({ + message: '触发点击的手指数:' + this.count, + duration: 3000, + }); + } + })) + Text('tap Click').fontSize(20) + .id('tapClick') + .gesture( + TapGesture({ count: 2 }) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.value = JSON.stringify(event.fingerList[0]); + } + })) + Text(this.value) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0030.ets new file mode 100755 index 0000000000000000000000000000000000000000..ca68851d899351140df8b5372b9f99ebddbad1e6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0030.ets @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0030 { + @State value: string = ""; + @State count: number = 1; + + build() { + Column() { + Text('多指:' + this.count).fontSize(20) + .id('change') + .gesture( + TapGesture({ count: 1,fingers:2}) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.count = this.count + event.fingerList.length; + promptAction.showToast({ + message: '触发点击的手指数:' + this.count, + duration: 3000, + }); + } + })) + Text('tap Click').fontSize(20) + .id('tapClick') + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.value = JSON.stringify(event.fingerList[0]); + } + })) + Text(this.value) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0040.ets new file mode 100755 index 0000000000000000000000000000000000000000..c787d2112ec50544882062f9f7b760d2ff23d768 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0040.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0040 { + @State count: number = 0; + + build() { + Column() { + Text('LongPress onAction:' + this.count).fontSize(28) + .id('longPress') + .gesture( + LongPressGesture() + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.count++; + } + }) + .onActionEnd(() => { + }) + ) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..6263e0c6becc83e703a59cd849f9cc45bec71eee --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0050.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0050 { + @State count: number = 0; + @State repeat: boolean = false; + + build() { + Column() { + Text('是否连续触发回调:' + this.repeat).fontSize(28) + .id('longPress') + .onClick(() => { + this.repeat = true; + }) + .gesture( + LongPressGesture({ repeat: this.repeat }) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.count++; + } + }) + .onActionEnd(() => { + }) + ) + Text('LongPress onAction:' + this.count).fontSize(28) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0060.ets new file mode 100755 index 0000000000000000000000000000000000000000..7e8ed2cac61bbc12e8f61e74b432f8acf5d1dc61 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0060.ets @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0060 { + @State count: number = 0; + @State repeat: boolean = false; + @State show: Visibility = Visibility.Visible; + + build() { + Column() { + Text('longPress').fontSize(28) + .id('longPress') + .onClick(() => { + this.repeat = true; + }) + .visibility(this.show) + .gesture( + LongPressGesture({ repeat: this.repeat }) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.count++; + this.show = Visibility.Hidden; + } + }) + .onActionEnd(() => { + }) + ) + Text('是否连续触发回调:' + this.repeat).fontSize(28) + Text('LongPress onAction:' + this.count).fontSize(28) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0150.ets new file mode 100755 index 0000000000000000000000000000000000000000..d45af03e106d7a7dc5a419f42f9e0a7abea29710 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0150.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0150 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + build() { + Column() { + Button('pingch') + .id('pinchOut') + .fontSize(10) + .height(50) + .width(100) + .margin({ top: 100,bottom:50 }) + .align(Alignment.Center) + .alignSelf(ItemAlign.Center) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture() + .onActionStart((event: GestureEvent | undefined) => { + this.pinchValue = event?.fingerList.length; + }) + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + }) + ) + Text('PinchGesture scale:' + this.pinchValue) + } + .border({ width: 3 }) + .height("100%") + .width("100%") + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0160.ets new file mode 100755 index 0000000000000000000000000000000000000000..ae1245263c550c24104105229b60bec36ecc2567 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0160.ets @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0150 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + @State value: string = ""; + @State count: number = 1; + + build() { + Column() { + Button('pingch') + .id('pinchOut') + .fontSize(10) + .height(50) + .width(100) + .margin({ top: 100,bottom:50 }) + .align(Alignment.Center) + .alignSelf(ItemAlign.Center) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture() + .onActionStart((event: GestureEvent | undefined) => { + this.pinchValue = event?.fingerList.length; + if (event) { + this.count = this.count + event.fingerList.length; + promptAction.showToast({ + message: '捏和手指数:' + this.count, + duration: 3000, + }); + } + }) + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + }) + ) + Text('PinchGesture scale:'+ this.pinchValue) + } + .border({ width: 3 }) + .height("100%") + .width("100%") + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0200.ets new file mode 100755 index 0000000000000000000000000000000000000000..e9ea5a4c5b259638954b5a678555ca9b13e12bb2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0200.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0200 { + @State count: number = 0; + @State repeat: boolean = false; + + build() { + Column() { + Text('tap Click').fontSize(28) + .id('longPress') + .gesture( + LongPressGesture({ repeat: this.repeat }) + .onAction((event: GestureEvent | undefined) => { + if (event) { + promptAction.showToast({ + message: '长按手势开始', + duration: 3000, + }); + } + }) + .onActionEnd(() => { + }) + ) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/ResourceHelper.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/ResourceHelper.ets new file mode 100755 index 0000000000000000000000000000000000000000..99ab752b43634f0f12055073aabed90161f77150 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/ResourceHelper.ets @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; + +async function getPixmapFromMedia(context: Context, resource: Resource) { + let unit8Array = await context?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)) + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release() + return createPixelMap +} + +/** + * 返回图片Base64格式 + * + * @param context + */ +export async function getBase64(context: Context): Promise { + let pixelMap = await getPixmapFromMedia(context, $r('app.media.cat')) + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + let arrayBufferData = await imagePackerApi.packing(pixelMap, packOpts); + let buf: buffer.Buffer = buffer.from(arrayBufferData); + let imageStr = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + return imageStr; +} + + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0010.ets new file mode 100755 index 0000000000000000000000000000000000000000..33a13868c351b3d8cc23dd2938633785d7c659b6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0010.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0010 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0010') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 0, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0020.ets new file mode 100755 index 0000000000000000000000000000000000000000..ad1467c2ee04adf4791970e846e345e8dc4dedcd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0020.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0020 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0020') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0030.ets new file mode 100755 index 0000000000000000000000000000000000000000..b3c89bb7fbfd67471a346e9d169ab38795b1123d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0030.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0030 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0030') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 100, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0040.ets new file mode 100755 index 0000000000000000000000000000000000000000..a012ffbdd604332da439406cad38c38cf966c1bd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0040.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0040 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0040') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 1000, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..ba12d6f885c1b0a38917cb8e87daa897a77e06ee --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0050.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0050 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0050') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: Number.NaN, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0060.ets new file mode 100755 index 0000000000000000000000000000000000000000..93286e929bce936150c5b1601d273b1259cf4411 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0060.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0060 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0060') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + saturation: 0 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0070.ets new file mode 100755 index 0000000000000000000000000000000000000000..7b69bfcc2014daa8591bd2c3fc6e5a5906a9c94f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0070.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0070 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0070') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + saturation: 1 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0080.ets new file mode 100755 index 0000000000000000000000000000000000000000..0c3165fb58e3cfb611cb0553ff814f2410082fe3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0080.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0080 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0080') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + saturation: 0.5 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0090.ets new file mode 100755 index 0000000000000000000000000000000000000000..cdf64c35b4135ec46ab2af27d453cc8c0f1e7ca6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0090.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0090 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0090') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + saturation: 1.5 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0100.ets new file mode 100755 index 0000000000000000000000000000000000000000..b2e54b7e2a7473830fbadfe4e562c5ea313a647a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0100.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0100 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0100') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + saturation: -1 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0110.ets new file mode 100755 index 0000000000000000000000000000000000000000..90eab79beef12806c86d36d5b17fd90595b00038 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0110.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0110 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0110') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + brightness: 0 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0120.ets new file mode 100755 index 0000000000000000000000000000000000000000..50daa94a94a761ebe253d45d181325756682bd00 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0120.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0120 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0120') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + brightness: 1 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0130.ets new file mode 100755 index 0000000000000000000000000000000000000000..a27b60db8257d3991f196e613ecba7fed9d2302a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0130.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0130 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0130') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + brightness: 0.5 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0140.ets new file mode 100755 index 0000000000000000000000000000000000000000..6ef0c188e84116d8747ecad929deaa451f2601b0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0140.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0140 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0140') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + brightness: 1.5 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0150.ets new file mode 100755 index 0000000000000000000000000000000000000000..1c96de53999be0eb8c930ace64bf4f3f8a69a7af --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0150.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0150 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0150') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + brightness: -1 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0160.ets new file mode 100755 index 0000000000000000000000000000000000000000..f82eb6a414cef57f789b6e5760672459a4fa7af1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0160.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0160 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0160') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + color: Color.Red, + radius: 10, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0170.ets new file mode 100755 index 0000000000000000000000000000000000000000..4ba69448c01cb3b57f7142202e79294420060429 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0170.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0170 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0170') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + color: getContext().resourceManager.getColorSync($r('app.color.color_0xffff')), + radius: 10 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0180.ets new file mode 100755 index 0000000000000000000000000000000000000000..088bdea646575c1fb34a0e9e90ed03f43c01974a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0180.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0180 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0180') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + color: 'rgba(255, 100, 255,0.5)', + radius: 10 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0190.ets new file mode 100755 index 0000000000000000000000000000000000000000..c760d0ee852bd5d57d96dbc534999846b49a02a9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0190.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +import { getBase64 } from './ResourceHelper'; + +//这个颜色有负值,记得检查下 +@Entry +@Component +struct UIAttributesBackgroundBackBlur0190 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0190') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + color: -(Color.Red), + radius: 10, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0200.ets new file mode 100755 index 0000000000000000000000000000000000000000..e612123d1248a5f0af3a9c192a07fc8bc58ae843 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0200.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0200 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0200') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + color: (-1 * (getContext().resourceManager.getColorSync($r('app.color.color_0xffff')))), + radius: 10 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0210.ets new file mode 100755 index 0000000000000000000000000000000000000000..fcf721e12b37c493a2221460978f2a0e405e90a0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0210.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +//这里的负数颜色需要确认下 + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0210 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0210') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + color: '-rgba(255, 100, 255,0.5)', + radius: 10 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0220.ets new file mode 100755 index 0000000000000000000000000000000000000000..b463ceda8f76f89afecddccb650c505bc9c203e0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0220.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0220 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0220') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + adaptiveColor: AdaptiveColor.DEFAULT, + radius: 10, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0230.ets new file mode 100755 index 0000000000000000000000000000000000000000..92eeeb086d3b4e38af5b33eef90953045eec399d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0230.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0230 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0230') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + adaptiveColor: AdaptiveColor.AVERAGE, + color: Color.Red, + radius: 10 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0240.ets new file mode 100755 index 0000000000000000000000000000000000000000..396bad0b704b32755a79e55ef61b561b22197455 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0240.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0240 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0240') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + adaptiveColor: 3, + color: Color.Red, + radius: 10, + brightness: 1.0, + saturation: 1.0 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0250.ets new file mode 100755 index 0000000000000000000000000000000000000000..800f2e53e2568aa5b0c8972d4fdc8f85eff9edc5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0250.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0250 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .shadow({ + radius: 50, + }) + .backgroundColor(Color.Red) + .backgroundEffect({ + color: Color.Green, + radius: 50 + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0260.ets new file mode 100755 index 0000000000000000000000000000000000000000..5b13eb4c2ed3fb311fe2a64650314c0879b90696 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0260.ets @@ -0,0 +1,132 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0260 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Button('Button') + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Text('Text') + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Slider() + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + TextInput({ + placeholder: 'TextInput' + }) + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Progress({ value: 45, total: 100, type: ProgressType.Capsule }) + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + TimePicker({ selected: new Date() }) + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + DatePicker({ start: new Date('2023-1-1'), end: new Date('2024-11-1') }) + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Column() { + Text("Column") + } + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Row() { + Text("Row") + } + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Flex({direction: FlexDirection.Row}) { + Text("Flex") + } + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0010.ets new file mode 100755 index 0000000000000000000000000000000000000000..55a6933cffd870a9af4607d6e18f86e1bee7855c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0010.ets @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0010 { + build() { + Row() { + } + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0020.ets new file mode 100755 index 0000000000000000000000000000000000000000..827ea51f28c019653a910d4c3b32d9f7f56c5fc4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0020.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0020 { + build() { + Row() { + } + .backgroundBlurStyle( + //BlurStyle.Thin-->BlurStyle.ddd Property 'ddd' does not exist on type 'typeof BlurStyle'. + BlurStyle.Thin, + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030.ets new file mode 100755 index 0000000000000000000000000000000000000000..32c8a1754c66685908d0465cd9735010f3085851 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0030 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.DARK, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0040.ets new file mode 100755 index 0000000000000000000000000000000000000000..5a2ed58c4f1d6f1028d1b9266241c925e937f47d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0040.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0040 { + build() { + Row() { + + } + .backgroundBlurStyle( + //colorMode: ThemeColorMode.ddd Property 'ddd' does not exist on type 'typeof ThemeColorMode'. + BlurStyle.Thin, { colorMode: ThemeColorMode.DARK, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..bbc021c1cead2a9eef0cabd807952420abb20a28 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0050.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0050 { + build() { + Row() { + + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.AVERAGE } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060.ets new file mode 100755 index 0000000000000000000000000000000000000000..72ddb28af15d498f49a97020bd38b5be2755fe61 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0060 { + build() { + Row() { + + } + .backgroundBlurStyle( + //adaptiveColor: AdaptiveColor.AVERAGE--->AdaptiveColor.ddd Property 'ddd' does not exist on type 'typeof AdaptiveColor'. + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.AVERAGE } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070.ets new file mode 100755 index 0000000000000000000000000000000000000000..9e6a35094b6d099ce95b3b1568dbad1bd01d38a4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0070 { + build() { + Row() { + + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0080.ets new file mode 100755 index 0000000000000000000000000000000000000000..7b172e677eb91d07ae22dff34458f61a28f8f966 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0080.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0080 { + build() { + Row() { + + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.SYSTEM, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0090.ets new file mode 100755 index 0000000000000000000000000000000000000000..76fa33e5778e7bed4c97d5e04f7695cb6dc0c43d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0090.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0090 { + build() { + Row() { + + } + .backgroundBlurStyle( + BlurStyle.Thin, { adaptiveColor: AdaptiveColor.AVERAGE } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100.ets new file mode 100755 index 0000000000000000000000000000000000000000..af4108d6573f6e53c88d77969f598d9d2151c077 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0100 { + build() { + Row() { + + } + .backgroundBlurStyle( + BlurStyle.Thin, { adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110.ets new file mode 100755 index 0000000000000000000000000000000000000000..d1350ffb16a8dd7e28d77972fc22c7f261adb642 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0110 { + build() { + Column() { + Row() { + Text("DARK") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.DARK}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0120.ets new file mode 100755 index 0000000000000000000000000000000000000000..2616ff8ccf040c825575f4afe7eaca0ba53f65fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0120.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0120 { + build() { + Column() { + Row() { + Text("SYSTEM") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.SYSTEM}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130.ets new file mode 100755 index 0000000000000000000000000000000000000000..07dfc843ee86e5ebbdf474898eed552c1492036f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0130 { + build() { + Column() { + Row() { + Text("LIGHT") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.LIGHT}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0160.ets new file mode 100755 index 0000000000000000000000000000000000000000..46557caadd894a65799b7d9905f0b7f288ebb928 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0160.ets @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0160 { + build() { + Column() { + Row() { + Text("BACKGROUND_REGULAR") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170.ets new file mode 100755 index 0000000000000000000000000000000000000000..2b9da486fe5dff8b5822b111403803c555bc1756 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170.ets @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0170 { + build() { + Column() { + Row() { + Text("BACKGROUND_REGULAR") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THICK) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180.ets new file mode 100755 index 0000000000000000000000000000000000000000..6ad1a10dc2873b072895dadad52f8ad923b9da8b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180.ets @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0180 { + build() { + Column() { + Row() { + Text("BACKGROUND_THIN") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190.ets new file mode 100755 index 0000000000000000000000000000000000000000..0d9f842e3a5d916aebb9399d9597b902fe214ddf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190.ets @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0190 { + build() { + Column() { + Row() { + Text("BACKGROUND_ULTRA_THICK") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_ULTRA_THICK) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200.ets new file mode 100755 index 0000000000000000000000000000000000000000..b7e7006b111076c449c857f26f4b624b5098348e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200.ets @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0200 { + build() { + Column() { + Row() { + Text("Regular") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.Regular) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0210.ets new file mode 100755 index 0000000000000000000000000000000000000000..18aec7c344ddf57f450ffca7e89bb73748f5549e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0210.ets @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0210 { + build() { + Column() { + Row() { + Text("Thick") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.Thick) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0220.ets new file mode 100755 index 0000000000000000000000000000000000000000..be74cf591644376e274c31c4d10df4747bd17d1e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0220.ets @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0220 { + build() { + Column() { + Row() { + Text("Thin") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.Thin) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0230.ets new file mode 100755 index 0000000000000000000000000000000000000000..858e4389f211c362d3af70becdda5b44491620ec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0230.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0230 { + build() { + Column({ space: 5 }) { + Text('radialGradient').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row() + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + radius: 20, + colors: [[Color.Pink,0.3], [getContext().resourceManager.getColorSync($r("app.color.Pink")), 0.4], ['rgb(255,255,255)', 0.6]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0240.ets new file mode 100755 index 0000000000000000000000000000000000000000..f13258e5620ab07f757d6a0e33b762dba0d48730 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0240.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0240 { + build() { + Column({ space: 5 }) { + Text('radialGradient').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row() + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + radius: 20, + colors: [[Color.Pink,0.3], [getContext().resourceManager.getColorSync($r("app.color.Pink")), 0.4], ['rgb(255,255,255)', 0.6]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250.ets new file mode 100755 index 0000000000000000000000000000000000000000..859805ab841af96b2783271082e200c7c8b8fa0a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0250 { + build() { + Column({ space: 5 }) { + Text('radialGradient').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row() + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + radius: -10, + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260.ets new file mode 100755 index 0000000000000000000000000000000000000000..8a91fd2808d5fc8390e10d2a75be2c9883828d4c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0260 { + build() { + Column({ space: 5 }) { + + Row(){ + Text('组件Row正常显示,无径向渐变效果').fontSize(12).width('90%').fontColor(0xCCCCCC) + } + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: 0, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0270.ets new file mode 100755 index 0000000000000000000000000000000000000000..4a57f4455853f18e4f1e3df082c85d52af558345 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0270.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0270 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为20vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){ + } + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280.ets new file mode 100755 index 0000000000000000000000000000000000000000..899cc83f076c9d5cc8777514c5cf3b00cd3c9740 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0280 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为20%发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){ + } + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: "20%", + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290.ets new file mode 100755 index 0000000000000000000000000000000000000000..1434e94515d62d449d7db71da84db88a57d955fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0290 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为2vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[0xAEE1E1,0.0],[0xD3E0DC,0.3], [0xFCD1D1,0.6]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300.ets new file mode 100755 index 0000000000000000000000000000000000000000..0b97f4bec042462e3f7a5dc2cf26fa091c088746 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0300 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为2vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Pink,0.3],[0xD3E0DC,0.4], [Color.Red,0.6]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0310.ets new file mode 100755 index 0000000000000000000000000000000000000000..abe3e2f2dd8c629f0f63afdbadab12abf516a3e7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0310.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0310 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为2vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Pink,0.3],[getContext().resourceManager.getColorSync($r("app.color.Pink")),0.4], ['rgb(255,255,255)',0.6]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320.ets new file mode 100755 index 0000000000000000000000000000000000000000..c1ab4b74dac7dc61dba5b78b752cb261eae105a6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0320 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为60vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 60, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330.ets new file mode 100755 index 0000000000000000000000000000000000000000..48e286b08985d8d4c7752d08909b3c99c68fbd83 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0330 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为100vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [-10, -10], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 100, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340.ets new file mode 100755 index 0000000000000000000000000000000000000000..8ae1749d1dd28a37226dd54ad2479f7fa2e07926 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0340 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,无径向渐变效果').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [-50, -50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 40, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0350.ets new file mode 100755 index 0000000000000000000000000000000000000000..fad1b7c5f391620ab58a5072243be3bc4d30ccad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0350.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0350 { + build() { + Column({ space: 5 }) { + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [0, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0380.ets new file mode 100755 index 0000000000000000000000000000000000000000..1d72056243f84eefee40a4f75986ae02f30189ff --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0380.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0380 { + build() { + Column({ space: 5 }) { + Row(){} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + repeating: false + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0390.ets new file mode 100755 index 0000000000000000000000000000000000000000..074762fe520d5397165cacefbedd29cea8856ccc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0390.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0390 { + build() { + Column({ space: 5 }) { + Row(){} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400.ets new file mode 100755 index 0000000000000000000000000000000000000000..1f72c0013c6efaa57933a27deabbac6fc13d1281 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0400 { + build() { + Column({ space: 5 }) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "0.5turn", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410.ets new file mode 100755 index 0000000000000000000000000000000000000000..8fd94106da04c07026d8b6846496a7b8061a42b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0410 { + build() { + Column({ space: 5 }) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: '3.14rad', + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420.ets new file mode 100755 index 0000000000000000000000000000000000000000..a15f64849968f303c15a105e1ed9b23a984679b6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0420 { + build() { + Column({ space: 5 }) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: 90, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430.ets new file mode 100755 index 0000000000000000000000000000000000000000..9b9bbecb8099521fcb2223bba838800bc7f7ac05 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0430 { + build() { + Column({ space: 5 }) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "90deg", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0440.ets new file mode 100755 index 0000000000000000000000000000000000000000..70c65f9b5fb409f65b4d92292b783c36399d2c47 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0440.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0440 { + build() { + Column({ space: 5 }) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "90grad", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450.ets new file mode 100755 index 0000000000000000000000000000000000000000..04b17010aab89fe6ccb4d210e2419a1b6697d3df --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0450 { + build() { + Column({ space: 5 }) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460.ets new file mode 100755 index 0000000000000000000000000000000000000000..7a790c335bfdc68623ee95c5fb316178c43df5af --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0460 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [0, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0470.ets new file mode 100755 index 0000000000000000000000000000000000000000..ac9478fcb2351adc618586450fb180776e4210b2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0470.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0470 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [0, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480.ets new file mode 100755 index 0000000000000000000000000000000000000000..1bd14243dc097b4ca5b144a3ed974eddcb74b85c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0480 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490.ets new file mode 100755 index 0000000000000000000000000000000000000000..fb49a134fbc26d9780acf17e9924acb7573d75c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0490 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[0xAEE1E1, 0.0], [0xD3E0DC, 0.3], [0xFCD1D1, 0.6]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0500.ets new file mode 100755 index 0000000000000000000000000000000000000000..a6e22068c6d1522beda644000799661c185e4476 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0500.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0500 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Pink, 0.0], [0xD3E0DC, 0.3], [Color.Red, 0.6]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0510.ets new file mode 100755 index 0000000000000000000000000000000000000000..35e24fb5981322c41388da5f7463be14e07713c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0510.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0510 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Pink, 0.3], [getContext().resourceManager.getColorSync($r("app.color.Pink")), 0.3], ["rgb(255,200,255)", 0.6]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520.ets new file mode 100755 index 0000000000000000000000000000000000000000..83cb32dcd0f4efdefb4e0a450b5a837ec1197cc0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0520 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 0, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530.ets new file mode 100755 index 0000000000000000000000000000000000000000..2d77b14abf3d25edd81dc46507c85c29270af576 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0530 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540.ets new file mode 100755 index 0000000000000000000000000000000000000000..6e0fe3399d0340313619bc523e4f0fefe9e60b17 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540.ets @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0540 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0550.ets new file mode 100755 index 0000000000000000000000000000000000000000..7801e8b29fcf3ba4c91f176a68581850176244dc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0550.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0550 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0560.ets new file mode 100755 index 0000000000000000000000000000000000000000..aa021c85a3f3ff450c09914ad82b1d2319d1b4a9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0560.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0560 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: -90, + end: 90, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570.ets new file mode 100755 index 0000000000000000000000000000000000000000..23bfde4046a19da773f5156cbb0afed26851be1a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0570 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "0.5trun", + end: "1turn", + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0580.ets new file mode 100755 index 0000000000000000000000000000000000000000..3e3091f9af2822b11cd707effdbdd853f2bd433e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0580.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0580 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 480, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0590.ets new file mode 100755 index 0000000000000000000000000000000000000000..4b2f283568ae0e9c3aab7b06996422ea2e448d52 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0590.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0590 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "200grad", + end: "400grad", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600.ets new file mode 100755 index 0000000000000000000000000000000000000000..f9fdfd1c966676b51e8e9379bcd746762fea61df --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0600 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "3.14rad", + end: "6.28rad", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610.ets new file mode 100755 index 0000000000000000000000000000000000000000..da3380ad929843ac1d34a8d242a373f9bcfde7de --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0610 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "90deg", + end: "270deg", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620.ets new file mode 100755 index 0000000000000000000000000000000000000000..66ec1e29830fbccd3dd8291247151aa0add11b3d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0620 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + end: 0, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630.ets new file mode 100755 index 0000000000000000000000000000000000000000..195f13f2e41823a03ef4bde09ed7616174c16865 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0630 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660.ets new file mode 100755 index 0000000000000000000000000000000000000000..efba40d6c6a11a5a2a7b290a4db9008099c9f41f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0660 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.Bottom) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0670.ets new file mode 100755 index 0000000000000000000000000000000000000000..776c8cb0e3fb0ff3f952d127513d68d94010cb89 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0670.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0670 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.BottomEnd) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0680.ets new file mode 100755 index 0000000000000000000000000000000000000000..3d045b945339b2c5da7dcb75df764f90fccaddc6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0680.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0680 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.BottomStart) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690.ets new file mode 100755 index 0000000000000000000000000000000000000000..a52cd80f1e097b186266d3233c32a5541dc6811c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0690 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.Center) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0700.ets new file mode 100755 index 0000000000000000000000000000000000000000..4a255e15a7db7912fb2c9db3a1ceab1a101108c1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0700.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0700 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.End) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface071.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface071.ets new file mode 100755 index 0000000000000000000000000000000000000000..d76f7df94e67a2b2e0293c709801dc5678803bb1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface071.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface071 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.Start) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface072.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface072.ets new file mode 100755 index 0000000000000000000000000000000000000000..ef1a0a49f10e54d8ad53c5b4948b2bb5d3ffbec1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface072.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface072 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.Top) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073.ets new file mode 100755 index 0000000000000000000000000000000000000000..539b1d42d7c518500ccd6411ba82623fe88b42fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface073 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.TopEnd) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface074.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface074.ets new file mode 100755 index 0000000000000000000000000000000000000000..996168521d236be37e988e58a22e8f1908c6b992 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface074.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface074 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.TopStart) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075.ets new file mode 100755 index 0000000000000000000000000000000000000000..9d4e45405edcf5dc6e13e1aeab866a0ee03279f9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface075 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "280px", y: "280px" }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076.ets new file mode 100755 index 0000000000000000000000000000000000000000..79df6506cd900eb3bc0103295298a8a999a9f7be --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface076 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "280px", y: "90%" }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface077.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface077.ets new file mode 100755 index 0000000000000000000000000000000000000000..767583e9193c2a7c5fb2e6d1bb11b38412af9f96 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface077.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface077 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: 200, y: 100 }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078.ets new file mode 100755 index 0000000000000000000000000000000000000000..bf626d1b019c846e4c5a53cec3bcebff2a4a60ad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface078 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "33fp" }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface079.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface079.ets new file mode 100755 index 0000000000000000000000000000000000000000..0599a60922f28b09c96d50aca99115e082d543fb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface079.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface079 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: $r("app.integer.100"), y: 100 }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface080.ets new file mode 100755 index 0000000000000000000000000000000000000000..f97ba90166d2169b54168f0240d0dd2a3cdc22f0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface080.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface080 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: 200, y: -100 }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081.ets new file mode 100755 index 0000000000000000000000000000000000000000..2ac2e6e57d02c21bc3627d05f2c62b27ee41ccd4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface081 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({}) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface083.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface083.ets new file mode 100755 index 0000000000000000000000000000000000000000..f8c33147031130e23e9ba31c3bdb074efbb728f1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface083.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface083 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(11112) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface085.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface085.ets new file mode 100755 index 0000000000000000000000000000000000000000..579737828ef77b1dbca1bea0bfac9148196afd22 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface085.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface085 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(11112) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface087.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface087.ets new file mode 100755 index 0000000000000000000000000000000000000000..506c42bc090fa754ec79276e7ea906870c2cc348 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface087.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface087 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: -434, height: "280px" }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface088.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface088.ets new file mode 100755 index 0000000000000000000000000000000000000000..217a5f7208a3978d0efca0693f8b8083cd210061 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface088.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface088 { + build() { + Column() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 850, height: 1100 }) + .width(600) + .height(400) + } + .width(800) + .height(1000) + .backgroundColor(Color.Gray) + .alignItems(HorizontalAlign.Center) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089.ets new file mode 100755 index 0000000000000000000000000000000000000000..7ab9abd6194b5efa1b2ffcbf2edfa8acd839f2d5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface089 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: "280px", height: "280px" }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface090.ets new file mode 100755 index 0000000000000000000000000000000000000000..5916f8292c510d631136f4d4a0acc6bd2f56b33c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface090.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface090 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: "280px", height: "90%" }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091.ets new file mode 100755 index 0000000000000000000000000000000000000000..c06a5b028d16a76f918ec952bc8ae15a0e1e5707 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface091 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 200, height: 100 }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092.ets new file mode 100755 index 0000000000000000000000000000000000000000..f0ddc60b1a9eaa7e0cf509241075e3dc68fcb6ab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface092 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 333 }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093.ets new file mode 100755 index 0000000000000000000000000000000000000000..bd8051e1bf8911fff67ba474d926e7b7337b46b3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface093 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({}) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094.ets new file mode 100755 index 0000000000000000000000000000000000000000..c79a4e9b21e54ac905772125d973dd395ddbc0d2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface094 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Auto) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface095.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface095.ets new file mode 100755 index 0000000000000000000000000000000000000000..a9f6495527bf6bacc8928245d8197ca1657d6ea5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface095.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface095 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Contain) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface096.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface096.ets new file mode 100755 index 0000000000000000000000000000000000000000..f5e84fab09c61a9198bd6416f4084eb56917896b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface096.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface096 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Cover) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface097.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface097.ets new file mode 100755 index 0000000000000000000000000000000000000000..ac1a7b021e3f5d85ae87c2abe02d857e599b67d2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface097.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface097 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098.ets new file mode 100755 index 0000000000000000000000000000000000000000..16c2abd884c83206f42f0f7c17d3f8d1229e9a7f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface098 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100.ets new file mode 100755 index 0000000000000000000000000000000000000000..76744951ddd7d7434c3ac892363d38fd1cde79e5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface100 { + build() { + Column() { + Row() + .backgroundImage('/comment/bddg.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface103.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface103.ets new file mode 100755 index 0000000000000000000000000000000000000000..a83c3d721d0c147e17fef010cd9886410db3a795 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface103.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface103 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface104.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface104.ets new file mode 100755 index 0000000000000000000000000000000000000000..6a33f487332933a6af1603846278b6c89ab86301 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface104.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface104 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.NoRepeat) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105.ets new file mode 100755 index 0000000000000000000000000000000000000000..7aa5fc78770f92ac00506913dc189dcf44ade5e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface105 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.X) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface106.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface106.ets new file mode 100755 index 0000000000000000000000000000000000000000..4df58ae42f12d1d342d2277927be4b9dd1896b70 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface106.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface106 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.XY) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107.ets new file mode 100755 index 0000000000000000000000000000000000000000..676e89b2c1b784b09b6697d9e2f6504b57595ab1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface107 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.Y) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface108.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface108.ets new file mode 100755 index 0000000000000000000000000000000000000000..9b02c7ce4880423930375798278ceb389a0fdec5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface108.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface108 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface109.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface109.ets new file mode 100755 index 0000000000000000000000000000000000000000..87ce887b379ad8cf01ddbb1ab46a276984ef0108 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface109.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface109 { + build() { + Column() { + Row() + .backgroundImage('fly.svg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110.ets new file mode 100755 index 0000000000000000000000000000000000000000..d55068168ea54bdc0c48cb607900774f3c34da07 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface110 { + build() { + Column() { + Row() + .backgroundColor(Color.Black) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111.ets new file mode 100755 index 0000000000000000000000000000000000000000..4445fb6c27c36438d12b3698c71f6b36d4939f05 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface111 { + build() { + Column() { + Row() + .backgroundColor(Color.Blue) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface112.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface112.ets new file mode 100755 index 0000000000000000000000000000000000000000..1031be5aee1a84eb24f704a69778fe201e999ac9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface112.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface112 { + build() { + Column() { + Row() + .backgroundColor(Color.Brown) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface113.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface113.ets new file mode 100755 index 0000000000000000000000000000000000000000..cb43e2a25e093feba1fae773c5a7fbb86239a835 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface113.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface113 { + build() { + Column() { + Row() + .backgroundColor(Color.Gray) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114.ets new file mode 100755 index 0000000000000000000000000000000000000000..aaf927ba77af4a5812d76948debc6d0e98bbfe81 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface114 { + build() { + Column() { + Row() + .backgroundColor(Color.Green) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115.ets new file mode 100755 index 0000000000000000000000000000000000000000..7330084219a7bb7733ad1232a36dfd8506727448 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface115 { + build() { + Column() { + Row() + .backgroundColor(Color.Grey) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116.ets new file mode 100755 index 0000000000000000000000000000000000000000..b76f3a1f24224eacfb544097b7c227ada22635e6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface116 { + build() { + Column() { + Row() + .backgroundColor(Color.Orange) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117.ets new file mode 100755 index 0000000000000000000000000000000000000000..c5a7685cfe9719c80ef045e29310308b6392b2f0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface117 { + build() { + Column() { + Row() + .backgroundColor(Color.Pink) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118.ets new file mode 100755 index 0000000000000000000000000000000000000000..690f1ba46d919ac162b6dce3d2cca336157345a4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface118 { + build() { + Column() { + Row() + .backgroundColor(Color.Red) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119.ets new file mode 100755 index 0000000000000000000000000000000000000000..dc7857f33bc4b9748208864859f10877d5287aa1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface119 { + build() { + Column() { + Row() + .backgroundColor(Color.Transparent) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120.ets new file mode 100755 index 0000000000000000000000000000000000000000..54b56ae1a36b6896d945943d14c04d7826003306 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface120 { + build() { + Column() { + Row() + .backgroundColor(Color.White) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface121.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface121.ets new file mode 100755 index 0000000000000000000000000000000000000000..bf500bd2c503b403094c462fbae17f08f202dee0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface121.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface121 { + build() { + Column() { + Row() + .backgroundColor(Color.Yellow) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122.ets new file mode 100755 index 0000000000000000000000000000000000000000..8cbef6a2bae5e168d8fccec8b9669dc2ec13a8ec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface122 { + build() { + Column() { + Row() + .backgroundColor(0x0000ff) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface123.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface123.ets new file mode 100755 index 0000000000000000000000000000000000000000..5c8b831ef0b4aaa814f43b5468308661722426db --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface123.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface123 { + build() { + Column() { + Row() + .backgroundColor($r('app.color.blue')) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface124.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface124.ets new file mode 100755 index 0000000000000000000000000000000000000000..cbffb3c9bfc73a235347b0f07ba28884c14de9a2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface124.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface124 { + build() { + Column() { + Row() + .backgroundColor('rgba(0,0,255,1.000)') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125.ets new file mode 100755 index 0000000000000000000000000000000000000000..c14d9642dd525bc861cabffd346ccafc2c294c99 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface125 { + build() { + Column() { + Row() + .backgroundColor('rgb(0,0,255)') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface127.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface127.ets new file mode 100755 index 0000000000000000000000000000000000000000..51f8ac8300e2db5aac6952649dfd83fe74586d28 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface127.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface127 { + build() { + Column() { + Row() + .backgroundColor($r("app.string.module_desc")) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface128.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface128.ets new file mode 100755 index 0000000000000000000000000000000000000000..9cfe8b93e446297e8e98e6266132adbbbb80d3ed --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface128.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface128 { + build() { + Column() { + Row() + .backgroundColor("dsfsdfsf") + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface130.ets new file mode 100755 index 0000000000000000000000000000000000000000..777dc5cc4d7952bd02ab13d42084cc4e6c2996ea --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface130.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface130 { + build() { + Column() { + Text("text") + .linearGradient({ + colors: [[0xAEE1E1, 0.0], [0xD3E0DC, 0.3], [0xFCD1D1, 0.6]] + }) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface131.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface131.ets new file mode 100755 index 0000000000000000000000000000000000000000..82d95f63c4f4d6d5cfb6b45c2ba311ab1cea68cc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface131.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface131 { + build() { + Column() { + Text("text") + .linearGradient({ + colors: [[0xAEE1E1, 0.0], [0xD3E0DC, 0.3], [0xFCD1D1, 0.6]], + repeating: true + }) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1320.ets new file mode 100755 index 0000000000000000000000000000000000000000..190c6533c12917d63652d9993848dc25df0c40f8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1320.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1320 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[0xAEE1E1,0.2],[0xD3E0DC,0.2],[0xFCD1D1, 0.6]], + repeating:false, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1330.ets new file mode 100755 index 0000000000000000000000000000000000000000..da12ac7e64d4d0a78f306bef44087f01c7d25b68 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1330.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1330 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Pink,0.3],[$r("app.color.Pink"),0.4],["rgb(255,200,255)",0.6]], + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340.ets new file mode 100755 index 0000000000000000000000000000000000000000..f2ef717547f0591f22bc278ec3f65c1da1a453f1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1340 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Pink,0.3],[0xD3E0DC,0.4],[Color.Red,0.6]], + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350.ets new file mode 100755 index 0000000000000000000000000000000000000000..eeb6c80d10e091c7d7cc7e8adb1e1b7f18d03117 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1350 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:-90, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360.ets new file mode 100755 index 0000000000000000000000000000000000000000..81a1222820b2dbf3453465bedf715dc3eec59335 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1360 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:0, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1370.ets new file mode 100755 index 0000000000000000000000000000000000000000..2c2f0940be6588e197c1396df4c843e7e1a01807 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1370.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1370 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:90, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380.ets new file mode 100755 index 0000000000000000000000000000000000000000..2cf3e98582b33abb39d024b60854a362b772e0a9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1380 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:'10px', + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1390.ets new file mode 100755 index 0000000000000000000000000000000000000000..d688314965f52e382bf8dd7599ea5ed596cb92a0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1390.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1390 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:0.5, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400.ets new file mode 100755 index 0000000000000000000000000000000000000000..68e550e8969a7d65d789cf908daefc4f13b5f859 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1400 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:'AAA', + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1410.ets new file mode 100755 index 0000000000000000000000000000000000000000..d16f271740ff1bf2b54e13e71d334b6bb98f840c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1410.ets @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1410 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Left, + angle:90, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420.ets new file mode 100755 index 0000000000000000000000000000000000000000..ba941285f9ae328ef77f6bc4a7b941dcdcfee57e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1420 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Bottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430.ets new file mode 100755 index 0000000000000000000000000000000000000000..d2129d17566b714ea3268b56c355c0cbfbd21715 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1430 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.LeftBottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440.ets new file mode 100755 index 0000000000000000000000000000000000000000..60765df894acdeae17ca21c0c9b58d96e974bc40 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1440 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.LeftTop, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450.ets new file mode 100755 index 0000000000000000000000000000000000000000..fe7f5cf222a130a0fd40fd49956b5250ee999d6f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1450 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Left, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460.ets new file mode 100755 index 0000000000000000000000000000000000000000..ee081b875d214ef50d46b136a141bb9bc3b15183 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1460 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.None, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470.ets new file mode 100755 index 0000000000000000000000000000000000000000..9f6eb53969f325d632665ddbd6fa3cc2e43b61a9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1470 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.RightBottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1480.ets new file mode 100755 index 0000000000000000000000000000000000000000..d6f3bbccd0d5b303667b8c2c891f286424054a03 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1480.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1480 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.RightTop, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1490.ets new file mode 100755 index 0000000000000000000000000000000000000000..2179d603b0e976e8734eebf242760dd706428687 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1490.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1490 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Right, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500.ets new file mode 100755 index 0000000000000000000000000000000000000000..c84c4871ba76aec9a277d79a883d4e089ba2ff21 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface1500 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Top, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0010.ets new file mode 100755 index 0000000000000000000000000000000000000000..72fbea96a094be7411303da6bf70abfe961a4e7b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0010.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0010 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THIN, { colorMode: ThemeColorMode.SYSTEM, scale: 1 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0020.ets new file mode 100755 index 0000000000000000000000000000000000000000..99d6ba11e91ff73fd865151803ba38983c0eacf3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0020.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0020 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THIN, { colorMode: ThemeColorMode.LIGHT, scale: 0.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0030.ets new file mode 100755 index 0000000000000000000000000000000000000000..f19124cb2570d7568ec90d3f71bafa5518420004 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0030.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0030 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THIN, { colorMode: ThemeColorMode.DARK, scale: 0 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0040.ets new file mode 100755 index 0000000000000000000000000000000000000000..3b73d2c09ae407a272b77ecaee5fdf2ea6ec4cd1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0040.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0040 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THIN + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..0b11c536be67f060063909655f0bbe28794de618 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0050.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0050 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THIN, { colorMode: ThemeColorMode.LIGHT, scale: 1.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0060.ets new file mode 100755 index 0000000000000000000000000000000000000000..b23672ca76a8abf9712ec90df92e9247bdcc4716 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0060.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0060 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THIN, { colorMode: ThemeColorMode.SYSTEM, scale: 1 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0070.ets new file mode 100755 index 0000000000000000000000000000000000000000..55f4b01a8151b79bbb79af02c2364b8297406462 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0070.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0070 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THIN, { colorMode: ThemeColorMode.LIGHT, scale: 0.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0080.ets new file mode 100755 index 0000000000000000000000000000000000000000..1d6d46ebdc6afeb890a15facf2710ec29c363f0f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0080.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0080 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THIN, { colorMode: ThemeColorMode.DARK, scale: 0 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0090.ets new file mode 100755 index 0000000000000000000000000000000000000000..b9b38f175d1a31a83ed08abc9f775008f5470fc2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0090.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0090 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THIN + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0100.ets new file mode 100755 index 0000000000000000000000000000000000000000..0374ccb912aefe72a67b4947b8e95679137faefa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0100.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0100 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THIN, { colorMode: ThemeColorMode.LIGHT, scale: 1.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0110.ets new file mode 100755 index 0000000000000000000000000000000000000000..81f301ec871347d50cddd8e2d80fd6aa3161b8db --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0110.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0110 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_REGULAR, { colorMode: ThemeColorMode.SYSTEM, scale: 1 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0120.ets new file mode 100755 index 0000000000000000000000000000000000000000..ecc7fd6a04455772dddd2bf5e1d753b1001481c3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0120.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0120 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_REGULAR, { colorMode: ThemeColorMode.LIGHT, scale: 0.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0130.ets new file mode 100755 index 0000000000000000000000000000000000000000..b45517f70ec16382627ca3fd72348ef804515d0c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0130.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0130 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_REGULAR, { colorMode: ThemeColorMode.DARK, scale: 0 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0140.ets new file mode 100755 index 0000000000000000000000000000000000000000..044ba637e48c7d96520183c1cdc8549b0ecd3a8f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0140.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0140 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.Thin + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0150.ets new file mode 100755 index 0000000000000000000000000000000000000000..81bc9f8bee75b5b3cb4975a71ed293645bb30b7a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0150.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0150 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_REGULAR, { colorMode: ThemeColorMode.LIGHT, scale: 1.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0160.ets new file mode 100755 index 0000000000000000000000000000000000000000..4ee840ae65734a0f966e5b0ba4f2c588f142973b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0160.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0160 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THICK, { colorMode: ThemeColorMode.SYSTEM, scale: 1 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0170.ets new file mode 100755 index 0000000000000000000000000000000000000000..3428ca5f159229f5f2e75451ea5694acfb01004a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0170.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0170 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THICK, { colorMode: ThemeColorMode.LIGHT, scale: 0.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0180.ets new file mode 100755 index 0000000000000000000000000000000000000000..bfedd2c646d67b31c556430a020b2934aa32377c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0180.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0180 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THICK, { colorMode: ThemeColorMode.DARK, scale: 0 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0190.ets new file mode 100755 index 0000000000000000000000000000000000000000..e0761f12030c2816bc20c5926824df596fa225f0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0190.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0190 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle(BlurStyle.COMPONENT_THICK) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0200.ets new file mode 100755 index 0000000000000000000000000000000000000000..3bcd4c9865e96f0b09cf851630ba07f9459462d2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0200.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0200 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THICK, { colorMode: ThemeColorMode.LIGHT, scale: 1.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0210.ets new file mode 100755 index 0000000000000000000000000000000000000000..0e4f2feea45c112706ea624e64410ae484b44798 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0210.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0210 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THICK, { colorMode: ThemeColorMode.SYSTEM, scale: 1 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0220.ets new file mode 100755 index 0000000000000000000000000000000000000000..cff330bdcb3a2d38ed2c16eea0347df2cd277588 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0220.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0220 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THICK, { colorMode: ThemeColorMode.LIGHT, scale: 0.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0230.ets new file mode 100755 index 0000000000000000000000000000000000000000..1d0eb95e23d7571913435109ac003cd24605bf29 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0230.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0230 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THICK, { colorMode: ThemeColorMode.DARK, scale: 0 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0240.ets new file mode 100755 index 0000000000000000000000000000000000000000..bce0894689d31d54b5606e32b763c41ef1128cba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0240.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0240 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THICK + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0250.ets new file mode 100755 index 0000000000000000000000000000000000000000..0e0cea2faba98776b3f1ad38b7e2b714dc6c7066 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0250.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0250 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THICK, { colorMode: ThemeColorMode.LIGHT, scale: 1.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0260.ets new file mode 100755 index 0000000000000000000000000000000000000000..05dfe2ea11a814c158fde6de0f54636d25db162b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0260.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0260 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.NONE, { colorMode: ThemeColorMode.LIGHT, scale: 1.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0270.ets new file mode 100755 index 0000000000000000000000000000000000000000..d53bf4d4d156b65f90964bffe638a5c6748816c6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0270.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0270 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_REGULAR + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240.ets new file mode 100755 index 0000000000000000000000000000000000000000..ba230bfad1e687b57eda5ef37c8003b0b4713948 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0240 { + @State message: string = 'Hello' + @Builder privateBuilder() { + Menu().overlay(this.privateBuilderTwo()).height(600).width("100%").margin({top:100}) + } + @Builder privateBuilderTwo() { + Image("2.png").height(300).margin({top:100}) + } + build() { + Row() { + Column() {} + .width('100%') + .height('100%') + .backgroundColor(Color.Green) + + }.overlay(this.privateBuilder()) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0250.ets new file mode 100755 index 0000000000000000000000000000000000000000..d7e77c514e40f5fac843c1ce9d84e1a09bb2da1b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0250.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class bottom { + bottom:number = 50 +} +let bott:bottom = new bottom() +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0250 { + private apfruits: string[] = ['apple1', 'apple2', 'apple3', 'apple4'] + private orfruits: string[] = ['orange1', 'orange2', 'orange3', 'orange4'] + private pefruits: string[] = ['peach1', 'peach2', 'peach3', 'peach4'] + private multi: string[][] = [this.apfruits, this.orfruits, this.pefruits] + @Builder + privateBuilder() { + TextPicker({ range: this.multi }) + .onChange((value: string | string[], index: number | number[]) => { + console.info('TextPicker 多列:onChange ' + JSON.stringify(value) + ', ' + 'index: ' + JSON.stringify(index)) + }).margin(bott).width(550).height(400).margin({top:50}).backgroundColor(Color.Orange) + } + build() { + Column() { + }.overlay(this.privateBuilder()).height(500).width(500).backgroundColor(Color.Pink) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260.ets new file mode 100755 index 0000000000000000000000000000000000000000..8264dea5e947bb70339c666801549a248ac616a9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0260 { + private selectedDate: Date = new Date('2024-03-05') + @Builder + privateBuilder() { + CalendarPicker({ hintRadius: 10, selected: this.selectedDate }) + .id("CalendarPicker") + .edgeAlign(CalendarAlign.END) + .textStyle({ color: "#ff182431", font: { size: 20, weight: FontWeight.Normal } }) + .margin(10) + .onChange((value) => { + console.info("CalendarPicker onChange:" + JSON.stringify(value)) + }) + .width(565) + } + + build() { + Column() { + }.overlay(this.privateBuilder()).height(500).width(500).backgroundColor(Color.Pink) + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270.ets new file mode 100755 index 0000000000000000000000000000000000000000..694696b001eba0aa1e9933da0c8ba84283c87761 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0270 { + @State isMilitaryTime: boolean = false + private selectedTime: Date = new Date('2022-07-22T08:00:00') + @Builder + privateBuilder() { + TimePicker({ + selected: this.selectedTime, + }) + .useMilitaryTime(this.isMilitaryTime) + .onChange((value: TimePickerResult) => { + if(value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute) + console.info('select current date is: ' + JSON.stringify(value)) + } + }) + .disappearTextStyle({color: Color.Red, font: {size: 15, weight: FontWeight.Lighter}}) + .textStyle({color: Color.Black, font: {size: 20, weight: FontWeight.Normal}}) + .selectedTextStyle({color: Color.Blue, font: {size: 30, weight: FontWeight.Bolder}}) + .width(565) + } + + build() { + Column() { + }.overlay(this.privateBuilder()).height(500).width(500).backgroundColor(Color.Pink) + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280.ets new file mode 100755 index 0000000000000000000000000000000000000000..6e1194f8a3931dbd1ee44604e1a3fe001adfe5bd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0280 { + @State mainColor:Color=Color.Orange; + @Builder + privateBuilder() { + Column(){ + Button("点击改变主控件背景色").onClick(()=>{ + this.mainColor=Color.Pink + }).height(30).width(150).margin({top:30,right:60}) + }.height(100).width("100%").backgroundColor("#F26BED").id("changeButton") + } + build() { + Column() { + Text('主控件文字背景').backgroundColor(this.mainColor).fontSize(50).margin({top:300,right:60}); + }.overlay(this.privateBuilder(),{offset:{x:0,y:80}}).height(500).width(500).backgroundColor("#ff6bf2b8") + } +} + + + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290.ets new file mode 100755 index 0000000000000000000000000000000000000000..991a97da317c9cd9409277c118df2a48ac5f3c39 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290.ets @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0290 { + @State imagePath:string="2.png"; + @Builder + privateBuilderTwo() { + Text("一段文本").fontSize(40).fontWeight(FontWeight.Bolder) + } + @Builder + privateBuilder() { + Column(){ + Image(this.imagePath).height(500).margin({top:70}) + .overlay(this.privateBuilderTwo(),{align:Alignment.Center}) + Button("点击改变图片") + .margin({top:30}) + .backgroundColor("#ff6b9df2") + .fontColor("#ff6bf2de") + .id("changeImagePath") + .onClick(()=>{ + this.imagePath="openeye.png" + }) + } + } + build() { + Column() { + } + .overlay(this.privateBuilder()) + .height("100%") + .width("100%") + .backgroundColor("#ff6bf2d7") + .direction(Direction.Rtl) + } +} + + + + + + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0300.ets new file mode 100755 index 0000000000000000000000000000000000000000..0087e64685ae0e37a9a0fdfc2c039f87674f8542 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0300.ets @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0300 { + @State mainColor:string="#C9F26B"; + @Builder + privateBuilderTwo() { + Text("一段文本").fontSize(40).fontWeight(FontWeight.Bolder).backgroundColor(this.mainColor).height(40) + } + @Builder + privateBuilder() { + Column(){ + Image('2.png').height(500).margin({top:70}) + .overlay(this.privateBuilderTwo(),{align:Alignment.Center}) + Button("点击改变文本背景色") + .id("changeTextGroundColor") + .margin({top:30}) + .backgroundColor("#ff6b9df2") + .fontColor("#ff6bf2de") + .onClick(()=>{ + this.mainColor="#F26BD2" + }) + } + } + build() { + Column() { + } + .overlay(this.privateBuilder()) + .height("100%") + .width("100%") + .backgroundColor("#ff6bf2d7") + .direction(Direction.Rtl) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310.ets new file mode 100755 index 0000000000000000000000000000000000000000..a3f50d17791f6e4879e435b0e4b84d6aa540a125 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310.ets @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0310 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + + @Builder + overlayBuilder(){ + Button("按键") + .id("overlayButton") + .fontSize(28) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + // 在组件上绑定布局位置信息 + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pan start'); + }) + // 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + } + + build() { + Column() { + Image("2.png").overlay(this.overlayBuilder()).height(400).width(500); + Text("测试").fontSize(1).id("ceshitext") + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320.ets new file mode 100755 index 0000000000000000000000000000000000000000..1acae939baf73ce36db96c94f3d55f1525b42926 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320.ets @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0320 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + + @Builder + overlayBuilder(){ + Button("按键") + .id("nieheButton") + .fontSize(30) + .height(50) + .width(100) + .border({ width: 3 }) + .margin({ top: 100 }) + // 在组件上绑定缩放比例,可以通过修改缩放比例来实现组件的缩小或者放大 + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + // 在组件上绑定三指触发的捏合手势 + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + // 当捏合手势触发时,可以通过回调函数获取缩放比例,从而修改组件的缩放比例 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ) + } + + build() { + Column() { + Image("2.png").overlay(this.overlayBuilder()).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330.ets new file mode 100755 index 0000000000000000000000000000000000000000..c80081e0adaa795a7cf2eaff9a6d336b8f7bd9e3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330.ets @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0330 { + @State angle: number = 0; + @State rotateValue: number = 0; + + @Builder + overlayBuilder(){ + Button("按键") + .id("xuanzhuanButton") + .fontSize(100) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + // 当旋转手势生效时,通过旋转手势的回调函数获取旋转角度,从而修改组件的旋转角度 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue; + } + console.info('RotationGesture is onActionEnd'); + }) + // 当旋转结束抬手时,固定组件在旋转结束时的角度 + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .onClick(()=>{ + this.angle=75 + }) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + + build() { + Column() { + Image("2.png").overlay(this.overlayBuilder()).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0340.ets new file mode 100755 index 0000000000000000000000000000000000000000..dbdc23b9bab19ff347eb75a2cc096fc138527e39 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0340.ets @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0340 { + @State rotateAngle: number = 0; + @State speed: number = 1; + + @Builder + overlayBuilder(){ + Button("按键") + .onClick(()=>{ + this.rotateAngle=80 + }) + .id("huadongButton") + .fontSize(100) + .border({ width: 3 }) + .width(300) + .height(200) + .margin(100) + // 在Column组件上绑定旋转,通过滑动手势的滑动速度和角度修改旋转的角度 + .rotate({ angle: this.rotateAngle }) + .gesture( + // 绑定滑动手势且限制仅在竖直方向滑动时触发 + SwipeGesture({ direction: SwipeDirection.All }) + // 当滑动手势触发时,获取滑动的速度和角度,实现对组件的布局参数的修改 + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + } + build() { + Column() { + Image("2.png").overlay(this.overlayBuilder()).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0350.ets new file mode 100755 index 0000000000000000000000000000000000000000..799f7b85af4a07c6eadb520b6cc9ee940ee24bc4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0350.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0350 { + @State value: string = "初始值"; + + @Builder + overlayBuilder(){ + Button("按键") + .id("dianjiButton") + .fontSize(30) + .size({ width:100,height:40} ) + .gesture( + // 绑定count为2的TapGesture + TapGesture({ count: 1 }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.value = JSON.stringify(event.fingerList[0]); + } + })) + } + build() { + Column() { + Text(this.value).fontSize(40) + Image("2.png").overlay(this.overlayBuilder(),{offset:{x:100,y:100}}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0360.ets new file mode 100755 index 0000000000000000000000000000000000000000..981d8705ac021a89d99c813c3669c8cb2776e354 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0360.ets @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0360 { + @State count: number = 0; + + @Builder + overlayBuilder(){ + Button("长按数字变化") + .id("changanButton") + .fontSize(25) + .gesture( + // 绑定可以重复触发的LongPressGesture + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + if (event.repeat) { + this.count++; + } + } + }) + .onActionEnd(() => { + this.count = 0; + }) + ) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Text(this.count.toString()).fontSize(40) + Image("2.png").overlay(this.overlayBuilder(),{offset:{x:100,y:100}}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370.ets new file mode 100755 index 0000000000000000000000000000000000000000..1bd9446c8870814941efbc972cbe3aedb26a1cbf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0370 { + @State count: string = "点击按钮发生变化"; + @Builder + overlayBuilder(){ + Button("手指点击") + .id("shouzhiButton") + .fontSize(30) + .onClick(()=>{ + this.count="发生变化啦" + }) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + + build() { + Column() { + Text(this.count).fontSize(40) + Image('2.png').overlay(this.overlayBuilder()).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0380.ets new file mode 100755 index 0000000000000000000000000000000000000000..1e62a42b0ef4ca16db535d532c262286b42dde9b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0380.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0380 { + @State count: string = "鼠标点击按钮发生变化"; + @Builder + overlayBuilder(){ + Button("鼠标点击") + .id("shubiaoButton") + .fontSize(30) + .onClick(()=>{ + this.count="发生变化啦" + }) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + + build() { + Column() { + Text(this.count).fontSize(40) + Image('2.png').overlay(this.overlayBuilder()).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0390.ets new file mode 100755 index 0000000000000000000000000000000000000000..38c80db81e59901a8c19ce8fa8b984fa404d2732 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0390.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 { Driver } from '@kit.TestKit'; + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0390 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @Builder + overlayBuilder(){ + Text() + .id("sonButton") + .fontSize(20) + .width('100%') + .height(50) + .backgroundColor(Color.Red) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pan start'); + }) + // 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + } + + build() { + Column() { + Text("2").margin({top:0}).fontSize(1).id("moveText1") + Text() + .id("fatherButton") + .fontSize(40) + .width('100%') + .height(150) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .backgroundColor(Color.Green) + .gesture( + // 绑定拖动手势 + PanGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pan start'); + }) + // 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ).overlay(this.overlayBuilder(),{offset:{x:0,y:0}}) + + Text("1").margin({top:50}).fontSize(1).id("moveText") + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400.ets new file mode 100755 index 0000000000000000000000000000000000000000..eac0ba7db9bdc319f6414c24a40c93d306f2d0a8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400.ets @@ -0,0 +1,91 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { Driver } from '@kit.TestKit'; + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0400 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(20) + .border({ width: 3 }) + .width(100) + .height(50) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + // 在组件上绑定三指触发的捏合手势 + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + // 当捏合手势触发时,可以通过回调函数获取缩放比例,从而修改组件的缩放比例 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ) + } + + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(40) + .width(200) + .height(100) + .backgroundColor(Color.Green) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + // 在组件上绑定三指触发的捏合手势 + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + // 当捏合手势触发时,可以通过回调函数获取缩放比例,从而修改组件的缩放比例 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ).overlay(this.overlayBuilder()) + .margin({top:150}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410.ets new file mode 100755 index 0000000000000000000000000000000000000000..8b101f95794bde9b39a2a822067e9d92fbd51293 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410.ets @@ -0,0 +1,102 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0410 { + @State angle: number = 0; + @State rotateValue: number = 0; + + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(10) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + // 当旋转手势生效时,通过旋转手势的回调函数获取旋转角度,从而修改组件的旋转角度 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue + event.angle; + } + console.info('RotationGesture is onActionEnd'); + }) + // 当旋转结束抬手时,固定组件在旋转结束时的角度 + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .onClick(()=>{ + this.angle=this.angle+60 + }) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + .backgroundColor(Color.Pink) + } + + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(50) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + // 当旋转手势生效时,通过旋转手势的回调函数获取旋转角度,从而修改组件的旋转角度 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue + event.angle; + } + console.info('RotationGesture is onActionEnd'); + }) + // 当旋转结束抬手时,固定组件在旋转结束时的角度 + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay(this.overlayBuilder()) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420.ets new file mode 100755 index 0000000000000000000000000000000000000000..58c75d49b0509f960dbfb9dae980c8abe4d224ab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420.ets @@ -0,0 +1,82 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0420 { + @State rotateAngle: number = 0; + @State speed: number = 1; + + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(10) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .rotate({ angle: this.rotateAngle }) + .gesture( + // 绑定滑动手势且限制仅在竖直方向滑动时触发 + SwipeGesture({ direction: SwipeDirection.Vertical }) + // 当滑动手势触发时,获取滑动的速度和角度,实现对组件的布局参数的修改 + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + .onClick(()=>{ + this.rotateAngle=this.rotateAngle+120 + }) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + .backgroundColor(Color.Pink) + } + + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(50) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .rotate({ angle: this.rotateAngle }) + .gesture( + // 绑定滑动手势且限制仅在竖直方向滑动时触发 + SwipeGesture({ direction: SwipeDirection.Vertical }) + // 当滑动手势触发时,获取滑动的速度和角度,实现对组件的布局参数的修改 + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay(this.overlayBuilder()) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0430.ets new file mode 100755 index 0000000000000000000000000000000000000000..8225a7db1f9bdc1f9a354cfb839b535d73e5100e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0430.ets @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0430 { + @State fatherValue: string = ""; + @State sonValue: string = ""; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .gesture( + // 绑定count为2的TapGesture + TapGesture({ count: 1}) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.sonValue = "子按键触发"; + } + })) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + + build() { + + Column() { + Text(this.fatherValue).fontSize(50) + Text(this.sonValue).fontSize(40) + Button("父按键") + .id("fatherButton") + .fontSize(50) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .gesture( + // 绑定count为2的TapGesture + TapGesture({ count: 1 }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.fatherValue = "父按键触发"; + } + })) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay(this.overlayBuilder(),{offset:{x:50,y:100}}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0440.ets new file mode 100755 index 0000000000000000000000000000000000000000..2a0caceb2a329f9a43e9dfd3e3197c14053c9d86 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0440.ets @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0440 { + @State fatherValue: string = ""; + @State sonValue: string = ""; + @Builder + overlayBuilder(){ + Button("子长按键") + .id("sonButton") + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .gesture( + // 绑定可以重复触发的LongPressGesture + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent|undefined) => { + this.sonValue="子长按键触发"; + }) + ) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + + build() { + + Column() { + Text(this.fatherValue).fontSize(50) + Text(this.sonValue).fontSize(40) + Button("父长按键") + .id("fatherButton") + .fontSize(50) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .gesture( + // 绑定可以重复触发的LongPressGesture + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent|undefined) => { + this.fatherValue="父长按键触发"; + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay(this.overlayBuilder(),{offset:{x:0,y:120}}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450.ets new file mode 100755 index 0000000000000000000000000000000000000000..f8a53f9d0ef50d9fd3fd6a52f441d173b5d8c8a0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450.ets @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0450 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(40).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Text("二级overlay文本") + .fontSize(40) + .fontWeight(FontWeight.Bolder) + .overlay(this.privateBuilderThree(), { align: Alignment.Center, offset: { x: 0, y: 50 } }) + .fontColor(this.fontColor) + } + @Builder + privateBuilder() { + Column() { + Text("一级overlay文本") + .fontSize(40) + .fontWeight(FontWeight.Bolder) + .overlay(this.privateBuilderTwo(), { align: Alignment.Center, offset: { x: 0, y: 50 } }) + .fontColor(this.fontColor) + Button("点击改变") + .id("changeTextColor") + .margin({ top: 200 }) + .fontColor("#ff6bf2de") + .onClick(() => { + this.fontColor = Color.Yellow + }) + } + } + build() { + Column() { + } + .overlay(this.privateBuilder()) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460.ets new file mode 100755 index 0000000000000000000000000000000000000000..cb828dbfe2a98aeede74543d99cef1a184e66449 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460.ets @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0460 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(20).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Column(){ + Text("二级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay(this.privateBuilderThree(), { align: Alignment.Center, offset: { x: 0, y: 200 } }) + .fontColor(this.fontColor) + Button("二级overlay-button") + .id("changeTextColor0460") + .onClick(() => { + this.fontColor = Color.Yellow + }) + .margin({top:30}) + }.height(300) + .backgroundColor(Color.Orange) + + } + @Builder + privateBuilder() { + Text("一级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay(this.privateBuilderTwo(), { align: Alignment.Center, offset: { x: 0, y: 100 } }) + .fontColor(this.fontColor) + .backgroundColor(Color.Brown) + .height(200) + } + build() { + Column() { + } + .overlay(this.privateBuilder()) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0470.ets new file mode 100755 index 0000000000000000000000000000000000000000..bc469afa3937714dd6c7116f0377870aa534168b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0470.ets @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0470 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(20).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Column(){ + Text("二级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay(this.privateBuilderThree(), { align: Alignment.Center, offset: { x: 0, y: 200 } }) + .fontColor(this.fontColor) + Button("二级overlay-button点击改变图片") + .id("changeTextColor") + .onClick(() => { + this.fontColor = Color.Yellow + }) + .margin({top:30}) + }.height(300) + .backgroundColor(Color.Orange) + + } + @Builder + privateBuilder() { + Text("一级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay(this.privateBuilderTwo(), { align: Alignment.Center, offset: { x: 0, y: 100 } }) + .fontColor(this.fontColor) + .backgroundColor(Color.Brown) + .height(200) + } + build() { + Column() { + } + .overlay(this.privateBuilder()) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480.ets new file mode 100755 index 0000000000000000000000000000000000000000..143a2f3ae00867f75f08deb27769d7594591f403 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0480 { + @Builder + overlayBuilder(){ + Image('icon.png') + .height("50%") + .width("50%") + } + + build() { + Column() { + Image("2.png") + .height("100vp") + .width("100vp") + .overlay(this.overlayBuilder()) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490.ets new file mode 100755 index 0000000000000000000000000000000000000000..b4902c2817faea8ccbd6ba80e0f5229c81526353 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490.ets @@ -0,0 +1,83 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0490 { + @Builder + privateBuilder() { + Column(){ + Button('one button dialog') + .id("changeTextColor") + .onClick(() => { + AlertDialog.show( + { + title: 'title', + message: 'text', + autoCancel: true, + width:550, + alignment: DialogAlignment.Bottom, + offset: { dx: 0, dy: -20 }, + gridCount: 3, + confirm: { + value: 'button', + action: () => { + console.info('Button-clicking callback') + } + }, + cancel: () => { + console.info('Closed callbacks') + }, + onWillDismiss:(dismissDialogAction: DismissDialogAction)=> { + console.info("reason=" + JSON.stringify(dismissDialogAction.reason)) + console.log("dialog onWillDismiss") + if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { + dismissDialogAction.dismiss() + } + if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { + dismissDialogAction.dismiss() + } + } + } + ) + }) + } + + } + + build() { + Column() { + }.overlay(this.privateBuilder(),{align:Alignment.Center,offset:{x:0,y:100}}).height(500).width(500).backgroundColor(Color.Pink) + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500.ets new file mode 100755 index 0000000000000000000000000000000000000000..2b31fcae81fac10134358d30f7e28ff82c282763 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500.ets @@ -0,0 +1,83 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0500 { + @Builder + privateBuilder() { + Column(){ + Button('one button dialog') + .id("changeTextColor") + .onClick(() => { + AlertDialog.show( + { + title: 'title', + message: 'text', + autoCancel: true, + width:550, + alignment: DialogAlignment.Bottom, + offset: { dx: 0, dy: -20 }, + gridCount: 3, + confirm: { + value: 'button', + action: () => { + console.info('Button-clicking callback') + } + }, + cancel: () => { + console.info('Closed callbacks') + }, + onWillDismiss:(dismissDialogAction: DismissDialogAction)=> { + console.info("reason=" + JSON.stringify(dismissDialogAction.reason)) + console.log("dialog onWillDismiss") + if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { + dismissDialogAction.dismiss() + } + if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { + dismissDialogAction.dismiss() + } + } + } + ) + }) + } + + } + + build() { + Column() { + }.overlay(this.privateBuilder(),{align:Alignment.Center,offset:{x:0,y:100}}).height(500).width(500).backgroundColor(Color.Pink) + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510.ets new file mode 100755 index 0000000000000000000000000000000000000000..5e7e06e8ba4efed2ba069e983484b4dd5f28c3c7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0510 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({top:100}) + }.overlay("string:“!@#3%^&*()_+”",{align:Alignment.Center}) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520.ets new file mode 100755 index 0000000000000000000000000000000000000000..544eb84852531aab2b06a0be45923e83caa3e76e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0520 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({top:100}) + }.overlay("“1234567890",{align:Alignment.Center}) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0530.ets new file mode 100755 index 0000000000000000000000000000000000000000..ba2a15e6fe84ebe6f52d640d6c94beb112bf2fdd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0530.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0530 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({top:100}) + }.overlay("\"qwerfdsazxcvbgtyhn'",{align:Alignment.Center}) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540.ets new file mode 100755 index 0000000000000000000000000000000000000000..f829f0b3b39f36176b9513c0e57bf8c85bd5564a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0540 { + build() { + Row() { + Column() { + Image("2.png") + } + .width(300) + .height(300) + .backgroundColor(Color.Pink) + .margin({top:100}) + }.overlay("13216549546519849646518946515616516165161616165161656195415915919",{align:Alignment.Center}) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0550.ets new file mode 100755 index 0000000000000000000000000000000000000000..453d8b5179e9128ddd659815a6297999ac678919 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0550.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0550 { + @Builder + overlayBuilder(){ + Image('2.png').height(300).width(300) + } + + build() { + Column() { + Text("父控件为文本") + .fontSize(40) + .overlay(this.overlayBuilder(),{offset:{x:-30,y:100}}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010.ets new file mode 100755 index 0000000000000000000000000000000000000000..5ac12cb8307bb60aee6117581d3baea8a25d8cdc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010.ets @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0010 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.", {}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020.ets new file mode 100755 index 0000000000000000000000000000000000000000..1d5ed8775ba1ac3ab995ac5fece5f0a4a2752960 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020.ets @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0020 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.") + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030.ets new file mode 100755 index 0000000000000000000000000000000000000000..21cd232515bda1d5df5683c476d6171de24a07b2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0030 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100}) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:50,y:-50}}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040.ets new file mode 100755 index 0000000000000000000000000000000000000000..46bcf01bac5a248a732775262206eb10dc750f3e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0040 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100}) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:-50,y:0}}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..fc66ca141c7b10d1f42a922e3a03fc9ed6901363 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050.ets @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0050 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.", { align: Alignment.BottomEnd }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060.ets new file mode 100755 index 0000000000000000000000000000000000000000..84caa97827cb5accd5b06939c13d622bba0f5474 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0060 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100}) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:-50,y:-50}}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0070.ets new file mode 100755 index 0000000000000000000000000000000000000000..3f0bd41ceba89254fcc1a228e4b974a5fb88739e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0070.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0070 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{offset:{x:-50,y:100}}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080.ets new file mode 100755 index 0000000000000000000000000000000000000000..8156b323ebc0fb14a41530fab9b470e80b532941 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0080 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Center}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090.ets new file mode 100755 index 0000000000000000000000000000000000000000..440cd41982b4ce5e73e03d020eeaa8a857b655bf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0090 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.End}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0100.ets new file mode 100755 index 0000000000000000000000000000000000000000..760a1db5ba367ab5293ba2afa5331177e25fd49e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0100.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0100 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Start}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110.ets new file mode 100755 index 0000000000000000000000000000000000000000..e88403b579884db20e4c1ad44d04da7d6cffb053 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0110 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.BottomStart}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120.ets new file mode 100755 index 0000000000000000000000000000000000000000..6e137f6b2f740736fe3c2ff388c672f8fa4d6c3a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0120 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Bottom}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0130.ets new file mode 100755 index 0000000000000000000000000000000000000000..070e2737432fa89a97379c9bc92f436cce324986 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0130.ets @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0130 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240).overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140.ets new file mode 100755 index 0000000000000000000000000000000000000000..da8e8efa7de419da71b691a6291718095a02d3bb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140.ets @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0140 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240).overlay("Winter is a beautiful season.",{align:Alignment.TopStart}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150.ets new file mode 100755 index 0000000000000000000000000000000000000000..36fe5dfb3dd0e7286993be027eac17e945014b12 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0150 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.TopEnd}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160.ets new file mode 100755 index 0000000000000000000000000000000000000000..99a5114125fcb1cd572e2f3a8f4b6da28a105d1e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0160 { + build() { + Column() { + Image('2.png') + .width(300) + .height(240) + .position({x:50,y:100}) + .overlay("Winter is a beautiful season.",{align:Alignment.Center}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0170.ets new file mode 100755 index 0000000000000000000000000000000000000000..69ca40cced697bc41b7bb9a8e084ff648a12db96 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0170.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0170 { + build() { + Column() { + Image("2.png") + .width(50) + .height(24) + .position({x:50,y:100}) + .overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180.ets new file mode 100755 index 0000000000000000000000000000000000000000..2ce63f22504025aa7ccaf031dc04a7b663383db8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0180 { + build() { + Column() { + Image("2.png") + .width(50) + .height(24) + .position({x:50,y:100}) + .overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010.ets new file mode 100755 index 0000000000000000000000000000000000000000..d83d6982114bc01d450c61aa37fec8a723432708 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0010 { + + @Builder BackgroundBuilder() { + RelativeContainer(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.width(400).height(400).backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0020.ets new file mode 100755 index 0000000000000000000000000000000000000000..302458cca55c1755d2cf0e700b97f6185910ace7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0020.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0020 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + Text("hello world").width(150).height(150) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0030.ets new file mode 100755 index 0000000000000000000000000000000000000000..7f9c4e5be404c83363d6970c6a878d37a711cfe6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0030.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0030 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + Text("hello world").width(150).height(150) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..6d19d32185f3b4a4a8337daeb405a09fcad52e6d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0050 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + Text("hello world").width(150).height(150) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.Bottom}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0060.ets new file mode 100755 index 0000000000000000000000000000000000000000..ba41cc8593a4ad569010778ece0d18ddd18315fb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0060.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0060 { + + @Builder BackgroundBuilder() { + Button() { + }.width(400).height(400) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070.ets new file mode 100755 index 0000000000000000000000000000000000000000..e7138212e7c7b98ceb9562a94d859e6e9832a4ec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0070 { + + + @Builder BackgroundBuilder() { + Progress({value:0}).width(400).height(400).backgroundColor(Color.Green) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0080.ets new file mode 100755 index 0000000000000000000000000000000000000000..bfea97a1a5ff3f6b8c248a9b54abd1e344caf24e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0080.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0080 { + @State text: string = '点击'; + + @Builder BackgroundBuilder() { + Column(){ + Button(this.text) + .onClick(()=>{ + this.text = '已点击'; + }) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + .id('UIAttributesBackgroundSelfDrawing0080') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090.ets new file mode 100755 index 0000000000000000000000000000000000000000..da5c19d7f7e1f160df2ab684018909a1313bee64 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0090 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0100.ets new file mode 100755 index 0000000000000000000000000000000000000000..d273a6c5079190b3b8888f5b7c975bff8c82fcdc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0100.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0100 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeyej')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110.ets new file mode 100755 index 0000000000000000000000000000000000000000..dbac9d91d622622470ee37fdc1a9d49df4853968 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0110 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.fly')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0120.ets new file mode 100755 index 0000000000000000000000000000000000000000..a39981baecff8f9504f6d44f536fa5850ad171dd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0120.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0120 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130.ets new file mode 100755 index 0000000000000000000000000000000000000000..43472abdcd7e5f2242412a784d28d9cc1df06292 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0130 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + Text("hello world").width(150).height(150) + .background(this.BackgroundBuilder) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomEnd}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150.ets new file mode 100755 index 0000000000000000000000000000000000000000..648f7233a71ce17be5262ad27dc511598c3a65e4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0150 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160.ets new file mode 100755 index 0000000000000000000000000000000000000000..f4f78a6549b9a9fea9f87afa9b4d69d790b0c585 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0160 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.Bottom}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0170.ets new file mode 100755 index 0000000000000000000000000000000000000000..44067e0b7cdd3bb9930d6aa2b8bbffdacb7319f7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0170.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0170 { + + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.TopStart}) + .backgroundColor(Color.Gray) + .linearGradient({ + angle: 90, + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + }) + .backgroundImage($r('app.media.img')) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0180.ets new file mode 100755 index 0000000000000000000000000000000000000000..b5eb1662d4e806a8c19972afba60480aced5e479 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0180.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0180 { + + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.TopStart}) + .backgroundColor(Color.Gray) + .backgroundImage($r('app.media.img')) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0010.ets new file mode 100755 index 0000000000000000000000000000000000000000..28f64acaa061e64110b932c1fb8c2508e01028e2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0010.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0010 { + + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + + build() { + Column() { + Text('This is Main').fontSize(20) + .width(360).height(360) + .backgroundColor(Color.Yellow) + .overlay(this.OverlayNode(), { align: Alignment.Center }).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020.ets new file mode 100755 index 0000000000000000000000000000000000000000..4fd0bbf2e7b2c0c82f7a9994314947b535f886b3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0020 { + + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + + build() { + Column() { + Text('This is Main').fontSize(20) + .width(360).height(360) + .backgroundColor(Color.Yellow) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0030.ets new file mode 100755 index 0000000000000000000000000000000000000000..6850d6d88fad3173229a90bcda9b9b24e00a5bde --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0030.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0030 { + + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + + build() { + Column() { + Text('This is Main').fontSize(20) + .width(360).height(360) + .backgroundColor(Color.Yellow) + .overlay(this.OverlayNode(), { offset:{x:0,y:-20}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040.ets new file mode 100755 index 0000000000000000000000000000000000000000..327608ea055303410ba3febf14e4764c9d7d09b5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040.ets @@ -0,0 +1,128 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0040 { + + @Builder OverlayNode() { + Column() { + Image($r('app.media.openeye')) + .width(350) + .height(350) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode1(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(350).height(350).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + + @Builder OverlayNode1() { + Column() { + Image($r('app.media.openeye')) + .width(330) + .height(330) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode2(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(330).height(330).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode2() { + Column() { + Image($r('app.media.openeye')) + .width(310) + .height(310) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode3(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(310).height(310).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode3() { + Column() { + Image($r('app.media.openeye')) + .width(290) + .height(290) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode4(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(290).height(290).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode4() { + Column() { + Image($r('app.media.openeye')) + .width(270) + .height(270) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode5(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(270).height(270).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode5() { + Column() { + Image($r('app.media.openeye')) + .width(250) + .height(250) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode6(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(250).height(250).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode6() { + Column() { + Image($r('app.media.openeye')) + .width(230) + .height(230) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode7(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(230).height(230).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode7() { + Column() { + Image($r('app.media.openeye')) + .width(210) + .height(210) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode8(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(210).height(210).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode8() { + Column() { + Image($r('app.media.openeye')) + .width(190) + .height(190) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode9(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(190).height(190).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode9() { + Column() { + Image($r('app.media.openeye')) + .width(190) + .height(190) + .objectFit(ImageFit.Fill) + }.width(190).height(190).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..28629b0a0bdb1f5204b179a656ea49fe074dec9f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0050 { + + @Builder OverlayNode() { + Column() { + Text('overlay 1') + .width(300) + .height(300) + .overlay(this.OverlayNode1(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(300).height(300).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + + @Builder OverlayNode1() { + Column() { + Image($r('app.media.openeye')) + .width(150) + .height(150) + .objectFit(ImageFit.Fill) + }.width(150).height(150).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0060.ets new file mode 100755 index 0000000000000000000000000000000000000000..f74849fef888db7713a11bfb0b4d1cb29ee64a9a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0060.ets @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0060 { + + @Builder OverlayNode() { + Column() { + Image($r('app.media.openeye')) + .width(350) + .height(350) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode1(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(350).height(350).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + + @Builder OverlayNode1() { + Column() { + Image($r('app.media.openeye')) + .width(330) + .height(330) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode2(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(330).height(330).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode2() { + Column() { + Image($r('app.media.openeye')) + .width(310) + .height(310) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode3(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(310).height(310).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode3() { + Column() { + Image($r('app.media.openeye')) + .width(290) + .height(290) + .objectFit(ImageFit.Fill) + }.width(290).height(290).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0070.ets new file mode 100755 index 0000000000000000000000000000000000000000..265fbf23db20f60abfcffc426776b71df2ed48fe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0070.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0070 { + @Builder OverlayNode() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" }) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" }) + }.width(400).height(400).backgroundColor(Color.Red) + } + + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080.ets new file mode 100755 index 0000000000000000000000000000000000000000..ec6a4bd0f9aa69bbfd10b59bbb90ba74b07c0533 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080.ets @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { Popup, PopupIconOptions, PopupTextOptions } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0080 { + @Builder OverlayNode() { + Column() { + // popup 自定义高级组件 + Popup({ + //PopupIconOptions 类型设置图标内容 + direction: Direction.Ltr, + icon: { + image: $r('app.media.openeye'), + width: 32, + height: 32, + fillColor: Color.White, + borderRadius: 16, + } as PopupIconOptions, + // PopupTextOptions 类型设置文字内容 + title: { + text: 'This is a popup with PopupOptions', + fontSize: 20, + fontColor: Color.Black, + fontWeight: FontWeight.Normal, + + } as PopupTextOptions, + //PopupTextOptions 类型设置文字内容 + message: { + text: 'This is the message', + fontSize: 15, + fontColor: Color.Black, + } as PopupTextOptions, + showClose: true, + onClose: () => { + console.info('close Button click') + }, + }) + + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + .backgroundColor(Color.Red) + } + + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0090.ets new file mode 100755 index 0000000000000000000000000000000000000000..4b34b57958228386be018a87a38e3b89cbf193b3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0090.ets @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { Popup, PopupIconOptions, PopupTextOptions, prompt } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0090 { + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + .id('UIAttributesFloatingLayerOverlay0090_001') + .onClick(()=>{ + prompt.showDialog({ + title: 'Title Info', + message: 'Message Info', + buttons: [ + { + text: 'button', + color: '#666666' + }, + ], + }); + }) + } + + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0100.ets new file mode 100755 index 0000000000000000000000000000000000000000..930d898b19920b3b9a2a85d9fa0eebd87747db98 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0100.ets @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0100 { + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + .id('UIAttributesFloatingLayerOverlay0100_001') + .onClick(()=>{ + try { + promptAction.showDialog({ + title: 'Title Info', + message: 'Message Info', + buttons: [ + { + text: 'button1', + color: '#000000' + }, + { + text: 'button2', + color: '#000000' + } + ], + }) + .then(data => { + console.info('showDialog success, click button: ' + data.index); + }) + .catch((err:Error) => { + console.info('showDialog error: ' + err); + }) + } catch (error) { + }; + }) + } + + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110.ets new file mode 100755 index 0000000000000000000000000000000000000000..b3a35f143bafd3e375de4d6a47775230acd30207 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0110 { + @Builder OverlayNode() { + Column() { + Text("overlayNode").fontSize(20).fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0110_001') + .backgroundColor(Color.White) + .width(180).height(180) + .draggable(true) + .dragPreviewOptions({ mode: [ DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS ] }) + .onDragStart(()=>{}) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0120.ets new file mode 100755 index 0000000000000000000000000000000000000000..4a217528e9e183f5832d0eb3aba59c73b4ac43cc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0120.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0120 { + @Builder OverlayNode() { + Column() { + Text("overlayNode").fontSize(20).fontColor(Color.Black) + .backgroundColor(Color.White) + .width(180).height(180) + + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .draggable(true) + .dragPreviewOptions({ mode: [ DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS ] }) + .onDragStart(()=>{}) + .id('UIAttributesFloatingLayerOverlay0120_001') + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0130.ets new file mode 100755 index 0000000000000000000000000000000000000000..d6d12c8263398050bf99d883d55b6739238aeb96 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0130.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0130 { + @Builder OverlayNode() { + Column() { + Text("overlayNode").fontSize(20).fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0130_001') + .backgroundColor(Color.White) + .width(180).height(180) + .draggable(true) + .dragPreviewOptions({ mode: [ DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS ] }) + .onDragStart(()=>{}) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140.ets new file mode 100755 index 0000000000000000000000000000000000000000..cb096bd667497260a91264f793698e92869c3bfc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0140 { + @Builder OverlayNode() { + Column() { + Text("overlayNode").fontSize(20).fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0140_001') + .backgroundColor(Color.White) + .width(180).height(180) + .draggable(true) + .dragPreviewOptions({ mode: [ DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS ] }) + .onDragStart(()=>{}) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150.ets new file mode 100755 index 0000000000000000000000000000000000000000..5b3722364dc0cc53d126810e30abed5ef6dbafe2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0150 { + @State color1: Color = Color.Red; + @State color2: Color = Color.Red; + @Builder OverlayNode() { + Column() { + Button('1').margin({top:20}).backgroundColor(this.color1).onClick(()=>{ + if (this.color1 == Color.Red) { + this.color1 = Color.Blue; + } else { + this.color1 = Color.Red; + } + }).id('UIAttributesFloatingLayerOverlay0150_001') + Button('1').margin({top:20}).backgroundColor(this.color2).onClick(()=>{ + if (this.color2 == Color.Red) { + this.color2 = Color.Blue; + } else { + this.color2 = Color.Red; + } + }).id('UIAttributesFloatingLayerOverlay0150_002') + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + + } + + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0160.ets new file mode 100755 index 0000000000000000000000000000000000000000..14f05cb144578f309975010a5b8e42fc024bbe28 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0160.ets @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0160 { + @State color: Color = Color.Blue; + @Builder OverlayNode() { + Stack() { + Button('1') + .margin({top:20}) + .backgroundColor(this.color) + .focusable(true) + .focusOnTouch(true) + .defaultFocus(true) + .onFocus(() => { + this.color = Color.Red + }) + .onBlur(() => { + this.color = Color.Blue + }) + .id('UIAttributesFloatingLayerOverlay0160_001') + }.width(180).height(180).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0170.ets new file mode 100755 index 0000000000000000000000000000000000000000..b669fc0b7dd9eb031546d1bdc0adb98c8fc887f1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0170.ets @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0170 { + @State color: Color = Color.Red; + @Builder OverlayNode() { + Stack() { + Button('1') + .margin({top:20}) + .backgroundColor(this.color) + .focusable(true) + .focusOnTouch(true) + .onFocus(() => { + this.color = Color.Red + }) + .onBlur(() => { + this.color = Color.Blue + }) + .id('UIAttributesFloatingLayerOverlay0170_001') + }.width(180).height(180).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0180.ets new file mode 100755 index 0000000000000000000000000000000000000000..307eff648e4d78bc6612e3282b6eed7ceb082b67 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0180.ets @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0180 { + @State color: Color = Color.Red; + @Builder OverlayNode() { + Stack() { + Button('1') + .margin({top:20}) + .backgroundColor(this.color) + .focusable(true) + .focusOnTouch(true) + .onFocus(() => { + this.color = Color.Red + }) + .onBlur(() => { + this.color = Color.Blue + }) + .id('UIAttributesFloatingLayerOverlay0180_001') + }.width(180).height(180).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190.ets new file mode 100755 index 0000000000000000000000000000000000000000..699446e3da80380783406adcbdec47047336bde7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { Popup, PopupIconOptions, PopupTextOptions } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0190 { + @Builder OverlayNode() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" }) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" }) + }.width(400).height(400).backgroundColor(Color.Red) + } + + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200.ets new file mode 100755 index 0000000000000000000000000000000000000000..4ed70f1bfc85e39064b2dd1649b6cf78850aa486 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0200 { + + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + + build() { + Column() { + Text('This is Main').fontSize(20) + .width(360).height(360).margin({bottom:10}) + .backgroundColor(Color.Yellow) + .overlay(this.OverlayNode(), { align: Alignment.Center }).backgroundColor(Color.Black) + Text('This is Main').fontSize(20) + .width(360).height(360) + .backgroundColor(Color.Yellow) + .overlay(this.OverlayNode(), { align: Alignment.Center }).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210.ets new file mode 100755 index 0000000000000000000000000000000000000000..964e22300288d86215e8284f1a27dae99cc29afe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0210 { + + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0220.ets new file mode 100755 index 0000000000000000000000000000000000000000..e62684e0f768f54f7679f9a176072bb4df384328 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0220.ets @@ -0,0 +1,81 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0220 { + @State handlePopup: boolean = false; + @State handlePopup1: boolean = false; + + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode") + .margin({ right: 50 }) + .id('overlay0220_button_02') + .onClick(() => { + this.handlePopup1 = !this.handlePopup1; + }) + .fontSize(20) + .fontColor(Color.Black) + .bindPopup(this.handlePopup1, { + message: 'Options2', + showInSubWindow: false, + primaryButton: { + value: 'confirm', + action: () => { + this.handlePopup1 = !this.handlePopup1 + console.info('confirm Button click') + } + } + }) + }.width('100%').height(180).alignItems(HorizontalAlign.Center).margin({ top: 50 }) + } + + build() { + Column() { + Button('show dialog') + .id('overlay0220_button_01') + .onClick(() => { + this.handlePopup = !this.handlePopup; + }) + .bindPopup(this.handlePopup, { + message: 'Options1', + showInSubWindow: false, + primaryButton: { + value: 'confirm', + action: () => { + this.handlePopup = !this.handlePopup + console.info('confirm Button click') + } + }, + // 第二个按钮 + secondaryButton: { + value: 'cancel', + action: () => { + this.handlePopup = !this.handlePopup + console.info('cancel Button click') + } + }, + onStateChange: (e) => { + console.info(JSON.stringify(e.isVisible)) + if (!e.isVisible) { + this.handlePopup = false + } + } + }).overlay(this.OverlayNode(), { align: Alignment.Start }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0230.ets new file mode 100755 index 0000000000000000000000000000000000000000..046fbf74ce4d8ed33143c5730f760be24359f740 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0230.ets @@ -0,0 +1,65 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0230 { + @State handlePopup: boolean = false; + + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode") + .margin({ right: 50 }) + .fontSize(20) + .fontColor(Color.Black) + }.width('100%').height(180).alignItems(HorizontalAlign.Center).margin({ top: 50 }) + } + + build() { + Column() { + Button('show dialog') + .id('overlay0230_button_01') + .onClick(() => { + this.handlePopup = !this.handlePopup; + }) + .bindPopup(this.handlePopup, { + message: 'Options1', + showInSubWindow: true, + primaryButton: { + value: 'confirm', + action: () => { + this.handlePopup = !this.handlePopup + console.info('confirm Button click') + } + }, + // 第二个按钮 + secondaryButton: { + value: 'cancel', + action: () => { + this.handlePopup = !this.handlePopup + console.info('cancel Button click') + } + }, + onStateChange: (e) => { + console.info(JSON.stringify(e.isVisible)) + if (!e.isVisible) { + this.handlePopup = false + } + } + }).overlay(this.OverlayNode(), { align: Alignment.Start }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0010.ets new file mode 100755 index 0000000000000000000000000000000000000000..69ba518c2363ff521ec7c91d7bbe20d32d7526e5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0010.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0010 { + build() { + Flex({ justifyContent: FlexAlign.SpaceAround }) { + Checkbox({ name: 'checkbox', group: 'checkboxGroup' }) + .select(true) + .selectedColor(0xed6f21) + .shape(CheckBoxShape.CIRCLE) + .onChange((value: boolean) => { + console.info('Checkbox change is' + value) + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0020.ets new file mode 100755 index 0000000000000000000000000000000000000000..e875eda9f22aa9a7c7d832a6a0568021c022c905 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0020.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0020 { + build() { + Flex({ justifyContent: FlexAlign.SpaceAround }) { + Checkbox({ name: 'checkbox', group: 'checkboxGroup' }) + .select(false) + .selectedColor(0xed6f21) + .shape(CheckBoxShape.CIRCLE) + .onChange((value: boolean) => { + console.info('Checkbox change is' + value) + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0030.ets new file mode 100755 index 0000000000000000000000000000000000000000..944bc3f289b390164f55be53e4ae45730b25d36c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0030.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0030 { + @State isSelect: boolean = true; + + build() { + Column() { + Checkbox({ name: 'checkbox', group: 'checkboxGroup' }) + .select(false) + .selectedColor(0xed6f21) + .shape(CheckBoxShape.CIRCLE) + .onChange((value: boolean) => { + console.info('Checkbox change is' + value) + }) + + Button('Click') + .id('UIAttributesSelectedStyle0030') + .onClick(() => { + this.isSelect = false; + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0040.ets new file mode 100755 index 0000000000000000000000000000000000000000..fbf20e3074332b566150e8adee1566dafb018a5c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0040.ets @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0040 { + build() { + Scroll() { + Column() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + CheckboxGroup({ group: 'checkboxGroup' }) + .checkboxShape(CheckBoxShape.ROUNDED_SQUARE) + .selectedColor('#007DFF') + .selectAll(true) + .onChange((itemName: CheckboxGroupResult) => { + console.info("checkbox group content" + JSON.stringify(itemName)) + }) + Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + } + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox1', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox1 change is' + value) + }) + Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox2', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox2 change is' + value) + }) + Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox3', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox3 change is' + value) + }) + Text('Checkbox3').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..781ab3730d057408dd80764598813e3e706f45a6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0050.ets @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0050 { + build() { + Scroll() { + Column() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + CheckboxGroup({ group: 'checkboxGroup' }) + .checkboxShape(CheckBoxShape.ROUNDED_SQUARE) + .selectedColor('#007DFF') + .selectAll(false) + .onChange((itemName: CheckboxGroupResult) => { + console.info("checkbox group content" + JSON.stringify(itemName)) + }) + Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + } + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox1', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox1 change is' + value) + }) + Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox2', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox2 change is' + value) + }) + Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox3', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox3 change is' + value) + }) + Text('Checkbox3').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0060.ets new file mode 100755 index 0000000000000000000000000000000000000000..2335a340eee8526d05b86db59b1fe4fc52689f90 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0060.ets @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0060 { + @State isSelectAll: boolean = true; + + build() { + Column() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + CheckboxGroup({ group: 'checkboxGroup' }) + .checkboxShape(CheckBoxShape.ROUNDED_SQUARE) + .selectedColor('#007DFF') + .selectAll(this.isSelectAll) + .onChange((itemName: CheckboxGroupResult) => { + console.info("checkbox group content" + JSON.stringify(itemName)) + }) + Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + } + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox1', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox1 change is' + value) + }) + Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox2', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox2 change is' + value) + }) + Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox3', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox3 change is' + value) + }) + Text('Checkbox3').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Button('Click') + .id('UIAttributesSelectedStyle0060') + .onClick(() => { + this.isSelectAll = false; + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0070.ets new file mode 100755 index 0000000000000000000000000000000000000000..21944f24f06b5fadb1ab59bb97a9654fa3107e44 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0070.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0070 { + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(true) + .height(50) + .width(50) + .onChange((isChecked: boolean) => { + console.log('Radio status is ' + isChecked) + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080.ets new file mode 100755 index 0000000000000000000000000000000000000000..fc474df52fd43ef6c7d722ea367c2df6a4bc33e1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0080 { + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(false) + .height(50) + .width(50) + .onChange((isChecked: boolean) => { + console.log('Radio status is ' + isChecked) + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090.ets new file mode 100755 index 0000000000000000000000000000000000000000..453be80eede76c06c06ad15ccc9145e06b9a78e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0090 { + @State isChecked: boolean = true; + + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(this.isChecked) + .height(50) + .width(50) + .onChange((isChecked: boolean) => { + console.log('Radio status is ' + isChecked) + }) + + Button('Click') + .id('UIAttributesSelectedStyle0090') + .onClick(() => { + this.isChecked = false; + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100.ets new file mode 100755 index 0000000000000000000000000000000000000000..d73d6fdda5ecaffb467ce26ef4d27133a3358d7c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0100 { + build() { + Column({ space: 10 }) { + Toggle({ type: ToggleType.Switch, isOn: true }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean) => { + console.info('Component status:' + isOn) + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110.ets new file mode 100755 index 0000000000000000000000000000000000000000..ff086f118dd73cf6d3a91e5ee9b3f8d7faca57b2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0110 { + build() { + Column({ space: 10 }) { + Toggle({ type: ToggleType.Switch, isOn: false }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean) => { + console.info('Component status:' + isOn) + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120.ets new file mode 100755 index 0000000000000000000000000000000000000000..f71447067e2db613d6b87f6b7e781dce8d67d1ac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0120 { + @State isOn: boolean = true; + build() { + Column({ space: 10 }) { + Toggle({ type: ToggleType.Switch, isOn: this.isOn }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean) => { + console.info('Component status:' + isOn) + }) + + Button('Click') + .id('UIAttributesSelectedStyle0120') + .onClick(() => { + this.isOn = false; + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130.ets new file mode 100755 index 0000000000000000000000000000000000000000..332b42940484fbb07f19e633bdf06d30c0f8f986 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0130 { + @State select: boolean = true; + + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + }) + .selected(this.select) + .selectIcon(this.select) + } + } + + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0130') + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140.ets new file mode 100755 index 0000000000000000000000000000000000000000..ad100a7731d94dc2f0223414ed82c45c438c7c68 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0140 { + @State select: boolean = false; + + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + }) + .selected(this.select) + .selectIcon(this.select) + } + } + + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0140') + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150.ets new file mode 100755 index 0000000000000000000000000000000000000000..b2fb4bacbf6c30c3a00c54e357b599fa5ffb8b6e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150.ets @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0150 { + @State select: boolean = true; + + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + }) + .selected(this.select) + .selectIcon(this.select) + } + } + + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0150_1') + + Button('Click') + .id('UIAttributesSelectedStyle0150_2') + .onClick(() => { + this.select = false; + }) + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0010.ets new file mode 100755 index 0000000000000000000000000000000000000000..fa6e94171656716e0431046f4557d000e93ef2f6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0010.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0010 { + build() { + Column() { + Button('Button') + .stateStyles({ + normal: { + .backgroundColor('#ff2787d9') + } + }) + .margin(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0020.ets new file mode 100755 index 0000000000000000000000000000000000000000..2a23fac468092f1db1143d176a811606401f7da8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0020.ets @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0020 { + build() { + Column() { + Button('Button') + .margin(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0030.ets new file mode 100755 index 0000000000000000000000000000000000000000..7e12678ace0171cd11df41d6a167304568fa66a0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0030.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0030 { + build() { + Column() { + Button('Button') + .stateStyles({ + clicked: { + .backgroundColor('#ff27d954') + }, + focused: { + .backgroundColor('#ffffeef0') + } + }) + .id('UIAttributesStateStylesInterface0030') + .margin(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0040.ets new file mode 100755 index 0000000000000000000000000000000000000000..53ea0a44983359e1c8a90252175d5b665a731f4d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0040.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0040 { + build() { + Column() { + Button('Button') + .stateStyles({ + clicked: { + .backgroundColor('#ff27d954') + } + }) + .margin(20) + .id('UIAttributesStateStylesInterface0040') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..c38845953fa5fdcdadc9e2abc8858a6cae1ae15b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0050.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0050 { + build() { + Column() { + Button('Button') + .stateStyles({ + disabled: { + .backgroundColor('#ffffeef0') + } + }) + .enabled(false) + .margin(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0060.ets new file mode 100755 index 0000000000000000000000000000000000000000..60c7c6e87e7532682916b5737bd55adea3a739c3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0060.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0060 { + build() { + Column() { + Button('Button') + .defaultFocus(true) + .stateStyles({ + focused: { + .backgroundColor('#ffffeef0') + } + }) + .margin(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0070.ets new file mode 100755 index 0000000000000000000000000000000000000000..9725fbee6c42c375d7119e68d9e1b688ff998aa9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0070.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0070 { + build() { + Column() { + Button('Button') + .id('UIAttributesStateStylesInterface0070') + .stateStyles({ + pressed: { + .backgroundColor('#ff707070') + } + }) + .margin(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0080.ets new file mode 100755 index 0000000000000000000000000000000000000000..b99d83fefd08f81631f7a13c06b1cbaebd978721 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0080.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0080 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .width('80%') + .height(500) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0090.ets new file mode 100755 index 0000000000000000000000000000000000000000..6126e1c0776a9d7a5813b2a428b3d7de0a9f3512 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0090.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0090 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .id('UIAttributesStateStylesInterface0090') + .enabled(false) + .stateStyles({ + clicked: { + .backgroundColor('#ff27d954') + }, + focused: { + .backgroundColor('#ffffeef0') + } + }) + .width('80%') + .height(500) + .friction(0.7) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0100.ets new file mode 100755 index 0000000000000000000000000000000000000000..3a8bc82c88bb6086f4c6e11eece0eb130e63452c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0100.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0100 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .id('UIAttributesStateStylesInterface0100') + .enabled(false) + .stateStyles({ + clicked: { + .backgroundColor('#ff27d954') + } + }) + .width('80%') + .height(500) + .friction(0.7) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0110.ets new file mode 100755 index 0000000000000000000000000000000000000000..927c0c591c687e0d8ea4bffd40b3727c3634ab87 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0110.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0110 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .enabled(false) + .stateStyles({ + disabled: { + .backgroundColor('#ffffeef0') + } + }) + .width('80%') + .height(500) + .friction(0.7) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0120.ets new file mode 100755 index 0000000000000000000000000000000000000000..d4c0e9af87b2a6b92de3fbd11a857f4bf1087cb3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0120.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0120 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .defaultFocus(true) + .stateStyles({ + focused: { + .backgroundColor('#ffffeef0') + } + }) + .width('80%') + .height(500) + .friction(0.7) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0130.ets new file mode 100755 index 0000000000000000000000000000000000000000..c48f0bc9661aebf6d6407909f328b827fe5baf00 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0130.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0130 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .stateStyles({ + normal: { + .backgroundColor('#ff2787d9') + } + }) + .width('80%') + .height(500) + .friction(0.7) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0140.ets new file mode 100755 index 0000000000000000000000000000000000000000..0188a53fdc41f1f602309f82332d19d3b5e08a5b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0140.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0140 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .id('UIAttributesStateStylesInterface0140') + .stateStyles({ + pressed: { + .backgroundColor('#ff707070') + } + }) + .width('80%') + .height(500) + .friction(0.7) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0150.ets new file mode 100755 index 0000000000000000000000000000000000000000..906f8bd5dd3b9850b4965b90729c2b2bc763aed0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0150.ets @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0150 { + build() { + Column() { + Text('Text') + .fontSize(50) + .fontColor(Color.White) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0160.ets new file mode 100755 index 0000000000000000000000000000000000000000..7861c841d0d87d23a934fb77317b6177f2abf8f4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0160.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0160 { + build() { + Column() { + Text('Text') + .id('UIAttributesStateStylesInterface0160') + .fontSize(50) + .fontColor(Color.White) + .stateStyles({ + clicked: { + .backgroundColor('#ff27d954') + }, + focused: { + .backgroundColor('#ffffeef0') + } + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0170.ets new file mode 100755 index 0000000000000000000000000000000000000000..afcd125f3669e2fd4bd9c82fcb10848df4b8d208 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0170.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0170 { + build() { + Column() { + Text('Text') + .id('UIAttributesStateStylesInterface0170') + .fontSize(50) + .fontColor(Color.White) + .stateStyles({ + disabled: { + .backgroundColor('#ffffeef0') + } + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0180.ets new file mode 100755 index 0000000000000000000000000000000000000000..7c2f7af304bd7ecd13a15ad89128dcb518165393 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0180.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0180 { + build() { + Column() { + Text('Text') + .fontSize(50) + .fontColor(Color.White) + .enabled(false) + .stateStyles({ + disabled: { + .backgroundColor('#4b8a8686') + } + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0190.ets new file mode 100755 index 0000000000000000000000000000000000000000..07092809ac4e892ea44f9035fff196fed1ed8055 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0190.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0190 { + build() { + Column() { + Text('Text') + .fontSize(50) + .fontColor(Color.White) + .defaultFocus(true) + .stateStyles({ + focused: { + .backgroundColor('#ffffeef0') + } + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0200.ets new file mode 100755 index 0000000000000000000000000000000000000000..008b9d07a081b17a81377237e11a8582d22af2ba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0200.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0200 { + build() { + Column() { + Text('Text') + .fontSize(50) + .fontColor(Color.White) + .stateStyles({ + normal: { + .backgroundColor('#ff2787d9') + } + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0210.ets new file mode 100755 index 0000000000000000000000000000000000000000..4ad281494fbce08fddb0b4a90f624dd668d401bd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0210.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0210 { + build() { + Column() { + Text('Text') + .id('UIAttributesStateStylesInterface0210') + .fontSize(50) + .fontColor(Color.White) + .stateStyles({ + pressed: { + .backgroundColor('#ff707070') + } + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010.ets new file mode 100755 index 0000000000000000000000000000000000000000..26c544ff3ebdaf613a9d27e89e4d6e0ebbc98e51 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010.ets @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentMediaImageMask0010 { + @State borderW: number = 1; + @State borderC: number = Color.White; + + build() { + Row() { + Column() { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width('200px') + .height('200px') + .border({ width: this.borderW, color: this.borderC }) + .obscured([ObscuredReasons.PLACEHOLDER]) + Button('change border').onClick(() => { + this.borderW = 2; + this.borderC = Color.Pink; + }).id('mask0010_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020.ets new file mode 100755 index 0000000000000000000000000000000000000000..b48b62d3c4f41914d9cb2ecec8f949cb4c952cf7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020.ets @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentMediaImageMask0020 { + @State isShow: boolean = true + @State borderW: number = 1; + @State borderC: number = Color.White; + @State changeAppear: string = '点我卸载挂载组件' + + build() { + Row() { + Column() { + if (this.isShow) { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width('200px') + .height('200px') + .border({ width: this.borderW, color: this.borderC }) + .obscured([ObscuredReasons.PLACEHOLDER]) + } + Button(this.changeAppear).onClick(() => { + this.borderW = 2; + this.borderC = Color.Pink; + this.isShow = !this.isShow + }).id('mask0020_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..3012e1a8895188ca18469fb8186dbb57b1ffabfc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050.ets @@ -0,0 +1,49 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentMediaImageMask0050 { + @State widthSize: number = 200 + @State heightSize: number = 200 + @State flag: boolean = true + + build() { + Column() { + Text('Image not set obscured attribute').fontSize(12).fontColor(Color.Black).margin({ bottom: 10 }) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .animation({ + duration: 2000, + curve: Curve.EaseOut, + iterations: 1, + playMode: PlayMode.Normal + }) + .obscured([ObscuredReasons.PLACEHOLDER]) + Button('start Animation').onClick(() => { + if (this.flag) { + this.widthSize = 150 + this.heightSize = 60 + } else { + this.widthSize = 250 + this.heightSize = 100 + } + this.flag = !this.flag + }).id('mask0050_button_01').margin(5) + }.width('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100.ets new file mode 100755 index 0000000000000000000000000000000000000000..3c4dd7b879006949250cebda1f4bcb95b2af2ae6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100.ets @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentMediaImageMask00100 { + @State widthSize: number = 100; + @State heightSize: number = 100; + + build() { + Column() { + Text('Image not set obscured attribute').fontSize(12).fontColor(Color.Black).margin({ bottom: 10 }) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .defaultFocus(true) + .obscured([ObscuredReasons.PLACEHOLDER]) + Image($r('app.media.app_icon')) + .width(this.widthSize) + .height(this.heightSize) + .margin(10) + .obscured([ObscuredReasons.PLACEHOLDER]) + }.width('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0110.ets new file mode 100755 index 0000000000000000000000000000000000000000..44d8900033553a536e492530a54ebe1c1d55040d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0110.ets @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentMediaImageMask0110 { + @State widthSize: number = 100; + @State heightSize: number = 100; + @State reasons: Array | null = [ObscuredReasons.PLACEHOLDER]; + + build() { + Row() { + Column() { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .obscured(this.reasons) + Button('change Size').onClick(() => { + this.widthSize = this.widthSize + 50; + this.heightSize = this.heightSize + 50; + if (this.reasons == null) { + this.reasons = [ObscuredReasons.PLACEHOLDER]; + } else { + this.reasons = null; + } + }).id('mask0110_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120.ets new file mode 100755 index 0000000000000000000000000000000000000000..0d8476e484e122188163b3c297470e8344a426d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120.ets @@ -0,0 +1,63 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentMediaImageMask0120 { + private arr: number[] = [0, 1, 2, 3, 4, 5, 6]; + private scroller: Scroller = new Scroller(); + + build() { + Column() { + List({ space: 20, initialIndex: 0, scroller: this.scroller }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center }) { + Text('item is ' + item) + Image('icon.png') + .width(100) + .height(150) + .obscured([ObscuredReasons.PLACEHOLDER]) + } + } + }, (item: string) => item) + } + .listDirection(Axis.Vertical) // 排列方向 + .scrollBar(BarState.Off) + .friction(0.6) + .divider({ + strokeWidth: 2, + color: 0xFFFFFF, + startMargin: 20, + endMargin: 20 + }) // 每行之间的分界线 + .edgeEffect(EdgeEffect.Spring) // 边缘效果设置为Spring + .onScrollIndex((firstIndex: number, lastIndex: number, centerIndex: number) => { + console.info('first' + firstIndex) + console.info('last' + lastIndex) + console.info('center' + centerIndex) + }) + .width('90%') + .height('60%') + + Button('scroll Bottom').onClick(() => { + this.scroller.scrollToIndex(ScrollAlign.END); + }).id('mask0120_button_01').margin(10) + } + .width('100%') + .height('100%') + .padding({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0260.ets new file mode 100755 index 0000000000000000000000000000000000000000..0804bddad1b6ac5a7c28fd4c27864534112cbeeb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0260.ets @@ -0,0 +1,43 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentMediaImageMask0260 { + @State widthSize: number = 100; + @State heightSize: number = 100; + @State reasons: Array | null = [ObscuredReasons.PLACEHOLDER]; + + build() { + Row() { + Column() { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .obscured(this.reasons) + Button('change Size').onClick(() => { + if (this.reasons == null) { + this.reasons = [ObscuredReasons.PLACEHOLDER]; + } else { + this.reasons = null; + } + }).id('mask0260_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0010.ets new file mode 100755 index 0000000000000000000000000000000000000000..342d161b910be61ab45d72bd28b3dffb53cff9c7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0010.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { CommonModifier } from '@kit.ArkUI' + +class MyModifier extends CommonModifier { + applyNormalAttribute(instance: CommonAttribute): void { + super.applyNormalAttribute?.(instance); + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0010 { + @State myModifier: CommonModifier = new MyModifier().width('100vp').height('200vp').backgroundColor(Color.Green).margin(20) + build() { + Column() { + Button('Change') + .id('UiAttributesAttributeUpdaterModifier0010') + .onClick(()=>{ + this.myModifier = new MyModifier().width('50vp').height('50vp').backgroundColor(Color.Orange).margin(10) + }) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020.ets new file mode 100755 index 0000000000000000000000000000000000000000..18e2a50cef7e1cafc600ce1397ff21ce108871e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020.ets @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { AttributeUpdater } from '@kit.ArkUI' + +class MyButtonModifier extends AttributeUpdater { + Modifier: boolean = false; + + applyNormalAttribute(instance: ButtonAttribute): void { + if (this.Modifier) { + instance.backgroundColor(Color.Red); + } + } + + applyPressedAttribute(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Orange); + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0020 { + @State myModifier: MyButtonModifier = new MyButtonModifier() + + build() { + Column() { + Button('Button') + .id('UiAttributesAttributeUpdaterModifier0020') + .attributeModifier(this.myModifier) + .onClick(() => { + this.myModifier.Modifier = true; + }) + Button('set color direct to green') + .id('set color direct to green') + .onClick(() => { + this.myModifier.attribute?.backgroundColor(Color.Green) + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030.ets new file mode 100755 index 0000000000000000000000000000000000000000..e58482c864eafb4c87abfb1ade5d35f3b13ef7ea --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030.ets @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class MyButtonModifier implements AttributeModifier { + isPress: boolean = false; + + applyNormalAttribute(instance: ButtonAttribute): void { + if (this.isPress) { + instance.backgroundColor(Color.Red); + } else { + instance.backgroundColor(null); + } + } + + applyPressedAttribute(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Orange); + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0030 { + @State modifier: MyButtonModifier = new MyButtonModifier(); + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0030') + .attributeModifier(this.modifier) + .onClick(()=>{this.modifier.isPress = true}) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040.ets new file mode 100755 index 0000000000000000000000000000000000000000..2423e5d2280ef128fb360c12795b7056a924a78e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040.ets @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { AttributeUpdater } from '@kit.ArkUI' + +class ButtonModifier extends AttributeUpdater { + isModifier:boolean = false; + + initializeModifier(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Black).width('100vp') + } + + applyNormalAttribute(instance: ButtonAttribute): void { + if (this.isModifier) { + instance.backgroundColor(Color.Red).width('200vp'); + } else { + instance.backgroundColor(Color.Red).width('100vp'); + } + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0040 { + @State modifier: ButtonModifier = new ButtonModifier() + + build() { + Row() { + Column() { + Button("StateManagement update color to red") + .id('UiAttributesAttributeUpdaterModifier0040') + .attributeModifier(this.modifier) + .onClick(()=>{this.modifier.isModifier = !this.modifier.isModifier}) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050.ets new file mode 100755 index 0000000000000000000000000000000000000000..6533cf62d244514d98825e8a1640106e14b427d0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050.ets @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { AttributeUpdater } from '@kit.ArkUI' + +class ButtonModifier extends AttributeUpdater { + isModifier: boolean = false; + + applyNormalAttribute(instance: ButtonAttribute): void { + if (this.isModifier) { + instance.backgroundColor(Color.Red); + } else { + instance.backgroundColor(Color.Yellow); + } + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0050 { + @State modifier: ButtonModifier = new ButtonModifier() + @State color: Color | null = null; + + build() { + Row() { + Column() { + Button("StateManagement update color to red or yellow") + .margin(20) + .id('UiAttributesAttributeUpdaterModifier0050') + .attributeModifier(this.modifier) + .onClick(() => { + this.modifier.isModifier = !this.modifier.isModifier + }) + Button('set color direct to green') + .id('set color direct to green') + .onClick(() => { + this.modifier.attribute?.backgroundColor(Color.Green) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060.ets new file mode 100755 index 0000000000000000000000000000000000000000..2b0ae38291dab1c0b3cfb8c36849eac2a22d2bb9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { AttributeUpdater } from '@kit.ArkUI' + +class ButtonModifier extends AttributeUpdater { + isModifier: boolean = false; + + applyNormalAttribute(instance: ButtonAttribute): void { + if (this.isModifier) { + instance.backgroundColor(Color.Orange); + } + } + applyPressedAttribute(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Orange) + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0060 { + @State modifier: ButtonModifier = new ButtonModifier() + @State color: Color | null = null; + + build() { + Row() { + Column() { + Button("StateManagement update color to red or yellow") + .margin(20) + .id('UiAttributesAttributeUpdaterModifier0060') + .attributeModifier(this.modifier) + .onClick(() => {this.modifier.isModifier = true}) + Button('set color direct to green') + .id('set color direct to green') + .onClick(() => { + this.modifier.attribute?.backgroundColor(Color.Green) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070.ets new file mode 100755 index 0000000000000000000000000000000000000000..82a9df44d9858e36874d4b6b2b24603dc789e07b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070.ets @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0070 { + @State type: ButtonType = ButtonType.Normal; + @State buttonStyle: ButtonStyleMode = ButtonStyleMode.NORMAL; + @State role: ButtonRole = ButtonRole.NORMAL; + @State labelStyle: LabelStyle|null = null; + + build() { + Row() { + Column() { + Button('hello world') + .width(200) + .height(200) + .padding(20) + .margin(20) + .type(this.type) + .buttonStyle(this.buttonStyle) + .controlSize(ControlSize.NORMAL) + .role(this.role) + .labelStyle(this.labelStyle) + .id('UiAttributesAttributeUpdaterModifier0070') + Button('1') + .id('1') + .onClick(() => { + this.type = ButtonType.Circle; + }) + Button('2') + .id('2') + .onClick(() => { + this.buttonStyle = ButtonStyleMode.TEXTUAL; + }) + Button('3') + .id('3') + .onClick(() => { + this.role = ButtonRole.ERROR + }) + Button('4') + .id('4') + .onClick(() => { + this.labelStyle = { + overflow:TextOverflow.Clip, + maxLines:1, + minFontSize:20, + maxFontSize:20, + font:{ + size:20, + weight:FontWeight.Bolder, + family:'cursive', + style:FontStyle.Italic + } + } + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080.ets new file mode 100755 index 0000000000000000000000000000000000000000..088e290eee053e3a6e78cc2b2d23cd23bb419130 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080.ets @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0080 { + @State flexBase: string | number = 'auto'; + @State flexGrows: number = 0; + @State flexShrinks: number = 0; + @State alignSel: ItemAlign = ItemAlign.Auto; + + build() { + Row() { + Column() { + Flex() + .width(100) + .height(100) + .backgroundColor(Color.Red) + .flexBasis(this.flexBase) + .flexGrow(this.flexGrows) + .flexShrink(this.flexShrinks) + .alignSelf(this.alignSel) + Button('1') + .id('1') + .onClick(() => { + this.flexBase = 200; + }) + Button('2') + .id('2') + .onClick(() => { + this.flexGrows = 2; + }) + Button('3') + .id('3') + .onClick(() => { + this.flexShrinks = 2; + }) + Button('4') + .id('4') + .onClick(() => { + this.alignSel = ItemAlign.Start + }) + } + .width(400) + .height(400) + .backgroundColor(Color.Green) + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090.ets new file mode 100755 index 0000000000000000000000000000000000000000..7288ea96ee365d176570bae9f72f7498031eeca7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090.ets @@ -0,0 +1,86 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0090 { + @State data: number[] = []; + @State items: number[] = []; + @State rowsTemplate: string = '1fr 1fr 1fr 1fr 1fr 1fr'; + @State columnsGap: number = 10; + @State columnsTemplate: string = '1fr 1fr 1fr 1fr 1fr 1fr'; + + aboutToAppear(): void { + for (let i = 0; i < 100; i++) { + this.data.push(i) + this.items.push(this.getSize()) + } + } + + getSize() { + let ret = Math.floor(Math.random() * 5) + return Math.max(1, ret) + } + + build() { + Column() { + Grid() { + ForEach(this.data, (item: number) => { + GridItem() { + Column() { + Column().height(20).backgroundColor('#D5D5D5').width('100%') + Text('这是一段文字。') + .flexGrow(1).width('100%').align(Alignment.TopStart) + .backgroundColor('#F7F7F7') + Column().height(30).backgroundColor('#707070').width('100%') + } + } + .border({ color: Color.Black, width: 1 }) + }) + } + .focusable(false) + .columnsTemplate(this.columnsTemplate) + .rowsTemplate(this.rowsTemplate) + .columnsGap(this.columnsGap) + .rowsGap(10) + .width('100%') + .height(300) + .margin(20) + Button('1') + .width(300) + .margin(20) + .id('1') + .onClick(() => { + this.rowsTemplate = '1fr 1fr 2fr'; + }) + Button('2') + .margin(20) + .width(300) + .id('2') + .onClick(() => { + this.columnsGap = 20; + }) + Button('3') + .width(300) + .margin(20) + .id('3') + .onClick(() => { + this.columnsTemplate = '1fr 1fr 2fr'; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100.ets new file mode 100755 index 0000000000000000000000000000000000000000..2ed2dbd60cf06eddb156d7290f7f404991906c1d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100.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 image from '@ohos.multimedia.image' +import { buffer } from '@kit.ArkTS'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0100 { + @State copyOption: CopyOptions = CopyOptions.None; + @State renderMode: ImageRenderMode = ImageRenderMode.Original; + @State fitOriginalSize: boolean = false; + @State image: string | undefined = undefined; + @State width1: number| null = 200; + @State height1: number| null = 500; + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)) + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release() + return createPixelMap + } + + async getBase64() { + let pixelMap = await this.getPixmapFromMedia($r('app.media.cat')) + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + imagePackerApi.packing(pixelMap, packOpts).then((data: ArrayBuffer) => { + let buf: buffer.Buffer = buffer.from(data); + this.image = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + }) + } + + aboutToAppear(): void { + this.getBase64(); + } + + build() { + Column({space: 10}) { + Image(this.image) + .width(this.width1) + .height(this.height1) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .copyOption(this.copyOption) + .renderMode(this.renderMode) + .fitOriginalSize(this.fitOriginalSize) + Button('1') + .id('1') + .onClick(() => { + this.copyOption = CopyOptions.InApp; + }) + Button('2') + .id('2') + .onClick(() => { + this.renderMode = ImageRenderMode.Template; + }) + Button('3') + .id('3') + .onClick(() => { + this.fitOriginalSize = true; + this.width1 = null; + this.height1 = null; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110.ets new file mode 100755 index 0000000000000000000000000000000000000000..1008ef84dbcc076d5194b1fd78c7d0e9a2156755 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110.ets @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import image from '@ohos.multimedia.image' +import { buffer } from '@kit.ArkTS'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0110 { + @State listDirection: Axis = Axis.Vertical; + @State scrollBar: BarState = BarState.Off; + @State edgeEffect: EdgeEffect = EdgeEffect.Spring; + private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] + + build() { + Flex() { + Column(){ + Button('1') + .id('1') + .onClick(() => { + this.listDirection = Axis.Horizontal; + }) + Button('2') + .id('2') + .onClick(() => { + this.scrollBar = BarState.Auto; + }) + Button('3') + .id('3') + .onClick(() => { + this.edgeEffect = EdgeEffect.None; + }) + } + Flex() { + List({ space: 20, initialIndex: 0 }) { + ForEach(this.arr, () => { + ListItem() { + Text('hello') + .width('100%') + .height(20) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + }.width(100) + }) + } + .listDirection(this.listDirection) + .scrollBar(this.scrollBar) + .edgeEffect(this.edgeEffect) + .friction(0.6) + .divider({ + strokeWidth: 2, + color: '0xFFFFFF', + startMargin: 20, + endMargin: 20 + }) + }.margin(20) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0120.ets new file mode 100755 index 0000000000000000000000000000000000000000..1b917279d9fabcc7523ffd28b55b0a639ef2f3a5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0120.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class MyButtonModifier1 implements AttributeModifier { + color:Color = Color.Brown + applyNormalAttribute(instance: ButtonAttribute): void { + instance.backgroundColor(this.color) + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0120 { + @State modifier: MyButtonModifier1 = new MyButtonModifier1(); + + build() { + Row() { + Column() { + Button("第一个Button") + .margin({bottom:20}) + .backgroundColor(Color.Brown) + Button("第二个Button") + .margin({bottom:20}) + .attributeModifier(this.modifier) + Button('set color red direct to native') + .onClick(()=>{ + this.modifier.color = Color.Red + }) + .id('UiAttributesAttributeUpdaterModifier0120') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130.ets new file mode 100755 index 0000000000000000000000000000000000000000..bde3aedc6a957b992281ad69cdd05970dc96af8d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130.ets @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0130 { + @State titleMode: NavigationTitleMode = NavigationTitleMode.Free; + @State hideTitleBar: boolean = false; + @State hideToolBar: boolean = false; + @State array: ToolbarItem[] = [{ value: 'toolBar' }] + + build() { + Column({ space: 10 }) { + Navigation() + .title('hello world') + .toolbarConfiguration(this.array) + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .titleMode(this.titleMode) + .hideTitleBar(this.hideTitleBar) + .hideToolBar(this.hideToolBar) + Button('1') + .id('1') + .onClick(() => { + this.titleMode = NavigationTitleMode.Mini; + }) + Button('2') + .id('2') + .onClick(() => { + this.hideTitleBar = true; + }) + Button('3') + .id('3') + .onClick(() => { + this.hideToolBar = true; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140.ets new file mode 100755 index 0000000000000000000000000000000000000000..03c64696debf9bd46fd36fe281110c871d38bcff --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140.ets @@ -0,0 +1,102 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class MyDataSource implements IDataSource { + private list: number[] = [] + + constructor(list: number[]) { + this.list = list + } + + totalCount(): number { + return this.list.length + } + + getData(index: number): number { + return this.list[index] + } + + registerDataChangeListener(listener: DataChangeListener): void { + } + + unregisterDataChangeListener() { + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0140 { + @State index: number = 0; + @State autoPlay: boolean = false; + @State duration: number = 2000; + @State interval: number = 4000; + + + private swiperController: SwiperController = new SwiperController() + private data: MyDataSource = new MyDataSource([]) + + aboutToAppear(): void { + let list: number[] = [] + for (let i = 0; i <= 10; i++) { + list.push(i); + } + this.data = new MyDataSource(list) + } + + build() { + Column({ space: 10 }) { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text('index: '+item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, (item: string) => item) + } + .cachedCount(2) + .index(this.index) + .autoPlay(this.autoPlay) + .interval(this.interval) + .loop(true) + .duration(this.duration) + .itemSpace(0) + Button('1') + .id('1') + .onClick(() => { + this.index = 2; + }) + Button('2') + .id('2') + .onClick(() => { + this.autoPlay = false; + }) + Button('3') + .id('3') + .onClick(() => { + this.autoPlay = true; + this.interval = 2000; + }) + Button('4') + .id('4') + .onClick(() => { + this.duration = 2000; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150.ets new file mode 100755 index 0000000000000000000000000000000000000000..8955bbd6222d5f3f25c619c7144ec909631c2bad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150.ets @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0150 { + @State type: InputType = InputType.Normal; + @State caretColor: ResourceColor = '#007DFF'; + @State placeholderColor: ResourceColor = ThemeColorMode.SYSTEM; + + build() { + Column({ space: 10 }) { + TextInput({placeholder:'这是提示字:'}) + .width(200) + .height(200) + .padding(20) + .margin(20) + .type(this.type) + .caretColor(this.caretColor) + .placeholderColor(this.placeholderColor) + .id('UiAttributesAttributeUpdaterModifier0150') + Button('1') + .id('1') + .onClick(() => { + this.type = InputType.Password; + }) + Button('2') + .id('2') + .onClick(() => { + this.placeholderColor = Color.Red; + }) + Button('3') + .id('3') + .onClick(() => { + this.caretColor = Color.Green; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0160.ets new file mode 100755 index 0000000000000000000000000000000000000000..9292e2e0e2126554a98c409228d2de47a7e573bb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0160.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0160 { + @State zIndex1: number | null = null; + @State zIndex2: number | null = null; + @State zIndex3: number | null = null; + + build() { + Column({ space: 10 }) { + Stack() { + Text(`zIndex1:${this.zIndex1}`).size({ width: '40%', height: '30%' }).backgroundColor(0xbbb2cb).zIndex(this.zIndex1) + Text(`zIndex2:${this.zIndex2}`).size({ width: '70%', height: '50%' }).backgroundColor(0xd2cab3).align(Alignment.TopStart).zIndex(this.zIndex2) + Text(`zIndex3:${this.zIndex3}`) .size({ width: '90%', height: '80%' }).backgroundColor(0xc1cbac).align(Alignment.TopStart).zIndex(this.zIndex3) + } + + Button('1') + .id('1') + .onClick(() => { + this.zIndex1 = 2; + }) + Button('2') + .id('2') + .onClick(() => { + this.zIndex2 = 2; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170.ets new file mode 100755 index 0000000000000000000000000000000000000000..286724b1e5d74cacea9183dafe34643dd436eb5a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170.ets @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0170 { + @State position1: Position | Edges | LocalizedEdges | null = null; + @State markAnchor1: Position | LocalizedPosition | null = null; + @State offset1: Position | Edges | LocalizedEdges | null = null; + + build() { + Flex() { + Column() + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Red) + .position(this.position1) + .markAnchor(this.markAnchor1) + .offset(this.offset1) + Button('1') + .id('1') + .onClick(() => { + this.position1 = { bottom: 0, left: 30 }; + }) + Button('2') + .id('2') + .onClick(() => { + this.markAnchor1 = { x: 25, y: 25 }; + }) + Button('3') + .id('3') + .onClick(() => { + this.offset1 = { x: 15, y: 30 }; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180.ets new file mode 100755 index 0000000000000000000000000000000000000000..8d2e403d6fa3814e3e40cdf6eb2ff08eda9e19f7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180.ets @@ -0,0 +1,106 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; +import { matrix4 } from '@kit.ArkUI'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0180 { + @State rotate1: RotateOptions | null = null; + @State translate1: TranslateOptions | null = null; + @State scale1: ScaleOptions | null = null; + @State image: string | undefined = undefined; + @State transform1: object | null = null; + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)); + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release(); + return createPixelMap; + } + + async getBase64() { + let pixelMap = await this.getPixmapFromMedia($r('app.media.cat')); + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + imagePackerApi.packing(pixelMap, packOpts).then((data: ArrayBuffer) => { + let buf: buffer.Buffer = buffer.from(data); + this.image = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + }) + } + + aboutToAppear(): void { + this.getBase64(); + } + + build() { + Column({ space: 10 }) { + Image(this.image) + .width(200) + .height(200) + .padding(20) + .margin(20) + .rotate(this.rotate1) + .translate(this.translate1) + .scale(this.scale1) + .transform(this.transform1) + Button('1') + .id('1') + .onClick(() => { + this.rotate1 = { + x: 0, + y: 0, + z: 1, + centerX: '50%', + centerY: '50%', + angle: 300 + }; + }) + Button('2') + .id('2') + .onClick(() => { + this.translate1 = { x: 100, y: 10 }; + }) + Button('3') + .id('3') + .onClick(() => { + this.scale1 = { x: 2, y: 0.5 }; + }) + Button('4') + .id('4') + .onClick(() => { + this.transform1 = matrix4.identity(); + this.translate1 = { x: 50, y: 50 }; + this.scale1 = { x: 1.5, y: 1 }; + this.rotate1 = { + x: 0, + y: 0, + z: 1, + angle: 60 + } + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190.ets new file mode 100755 index 0000000000000000000000000000000000000000..8006166c3273ea735bb4f8837e00627ffde30652 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190.ets @@ -0,0 +1,151 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; +import { matrix4 } from '@kit.ArkUI'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0190 { + @State image: string | undefined = undefined; + @State blur1: number = 0; + @State backdropBlur1: number = 0; + @State backgroundImage1: image.PixelMap | ResourceStr | null = null; + @State backgroundImageSize1: SizeOptions | ImageSize = ImageSize.Auto; + @State shadow1: ShadowOptions | ShadowStyle = -1; + @State grayscale1: number = 0.0; + @State brightness1: number = 1.0; + @State saturate1: number = 1.0; + @State contrast1: number = 1.0; + @State invert1: number | InvertOptions = 0; + @State colorBlend1: string | Resource | Color | null = null; + @State sepia1: number = 0; + @State hueRotate1: string | number = '0deg'; + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)); + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release(); + return createPixelMap; + } + + async getBase64(src:Resource) { + let pixelMap = await this.getPixmapFromMedia(src); + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + imagePackerApi.packing(pixelMap, packOpts).then((data: ArrayBuffer) => { + let buf: buffer.Buffer = buffer.from(data); + this.image = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + }) + } + + aboutToAppear(): void { + this.getBase64($r('app.media.cat')); + } + + build() { + Column({ space: 10 }) { + Image(this.image) + .width(200) + .height(200) + .padding(20) + .margin(20) + .blur(this.blur1) + .backdropBlur(this.backdropBlur1) + .backgroundImage(this.backgroundImage1) + .backgroundImageSize(this.backgroundImageSize1) + .shadow(this.shadow1) + .grayscale(this.grayscale1) + .brightness(this.brightness1) + .saturate(this.saturate1) + .contrast(this.contrast1) + .invert(this.invert1) + .colorBlend(this.colorBlend1) + .sepia(this.sepia1) + .hueRotate(this.hueRotate1) + Button('1') + .id('1') + .onClick(() => { + this.blur1 = 10; + }) + Button('2') + .id('2') + .onClick(async () => { + this.backdropBlur1 = 3; + this.backgroundImage1 = await this.getPixmapFromMedia($r('app.media.cat')); + this.backgroundImageSize1 = { width: 1200, height: 160 } + }) + Button('3') + .id('3') + .onClick(() => { + this.shadow1 = { + radius: 10, + color: Color.Green, + offsetX: 20, + offsetY: 20 + }; + }) + Button('4') + .id('4') + .onClick(() => { + this.grayscale1 = 0.3; + }) + Button('5') + .id('5') + .onClick(() => { + this.brightness1 = 1.2; + }) + Button('6') + .id('6') + .onClick(() => { + this.saturate1 = 0.7; + }) + Button('7') + .id('7') + .onClick(() => { + this.contrast1 = 0.8; + }) + Button('8') + .id('8') + .onClick(() => { + this.invert1 = 0.2; + }) + Button('9') + .id('9') + .onClick(() => { + this.colorBlend1 = Color.Green; + }) + Button('10') + .id('10') + .onClick(() => { + this.sepia1 = 0.8; + }) + Button('11') + .id('11') + .onClick(() => { + this.hueRotate1 = 90; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0200.ets new file mode 100755 index 0000000000000000000000000000000000000000..cd2e997ca7c2160a432457794a56e490118b2705 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0200.ets @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { AttributeUpdater } from '@kit.ArkUI' + +class MyButtonModifier1 extends AttributeUpdater { + initializeModifier(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Red) + .width('50%') + .height(30) + } +} +class MyButtonModifier2 extends AttributeUpdater { + initializeModifier(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Green) + .width('50%') + .height(30) + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0200 { + modifier1: MyButtonModifier1 = new MyButtonModifier1() + modifier2: MyButtonModifier2 = new MyButtonModifier2() + + build() { + Row() { + Column() { + Button("Button") + .margin(20) + .attributeModifier(this.modifier1) + Button("Button") + .margin(20) + .attributeModifier(this.modifier2) + Button("Button") + .margin(20) + .attributeModifier(this.modifier1) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0210.ets new file mode 100755 index 0000000000000000000000000000000000000000..a133052d41c18257a7835ab2420c3c5899b618bb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0210.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0210 { +@State backGroundColor:Color|null = null; +@State focusAble:boolean = true + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0210') + .backgroundColor(this.backGroundColor) + .focusable(this.focusAble) + .onBlur(()=>{ + this.backGroundColor = Color.Green; + }) + .onClick(()=>{ + this.focusAble = false; + }) + .margin(20) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0220.ets new file mode 100755 index 0000000000000000000000000000000000000000..8a799516a622b36bda47263f91326c84b6658b30 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0220.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0220 { + @State backGroundColor: Color | null = null; + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0220') + .backgroundColor(this.backGroundColor) + .margin(20) + .onClick(()=>{ + this.backGroundColor = Color.Red; + }) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0230.ets new file mode 100755 index 0000000000000000000000000000000000000000..07c7da32eaf7391d5fdfebb35546e4070b58db8c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0230.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0230 { +@State backGroundColor:Color|null = null; + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0230') + .backgroundColor(this.backGroundColor) + .onFocus(()=>{ + this.backGroundColor = Color.Red; + }) + .margin(20) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0240.ets new file mode 100755 index 0000000000000000000000000000000000000000..65d62374a0c0683f56bd17e485c74583b323d55c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0240.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0240 { + @State backGroundColor: Color | null = null; + + build() { + Flex() { + Button("onHover") + .id('UiAttributesAttributeUpdaterModifier0240') + .backgroundColor(this.backGroundColor) + .onHover(()=>{ + this.backGroundColor = Color.Red; + }) + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0250.ets new file mode 100755 index 0000000000000000000000000000000000000000..90e272471b94e7271a9c75444e3fc970f2b84569 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0250.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0250 { + @State backGroundColor: Color | null = Color.Red; + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0250') + .backgroundColor(this.backGroundColor) + .margin(20) + .onKeyEvent((event: KeyEvent)=>{ + if (event.keyCode == 3101) { + this.backGroundColor = Color.Blue; + } + }) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0260.ets new file mode 100755 index 0000000000000000000000000000000000000000..d3096e181ca0f58fd94452875c78e0b647d591fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0260.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0260 { + @State backGroundColor: Color | null = null; + + build() { + Flex() { + Button("onMouse") + .id('UiAttributesAttributeUpdaterModifier0260') + .backgroundColor(this.backGroundColor) + .onMouse(()=>{ + this.backGroundColor = Color.Red; + }) + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0270.ets new file mode 100755 index 0000000000000000000000000000000000000000..22695c891629e691b9d25033d82f60c093231785 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0270.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0270 { + @State backGroundColor: Color | null = Color.Red; + @State long:number|null = null; + + build() { + Row() { + Column() { + Button("Button") + .width(this.long) + .id('UiAttributesAttributeUpdaterModifier0270') + .onSizeChange((oldValue: SizeOptions, newValue: SizeOptions) => { + console.info(`Ace: on size change, oldValue is ${JSON.stringify(oldValue)} value is ${JSON.stringify(newValue)}`) + }) + .backgroundColor(this.backGroundColor) + .margin(20) + .onClick(()=>{ + this.backGroundColor = Color.Brown; + this.long = 400; + }) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0280.ets new file mode 100755 index 0000000000000000000000000000000000000000..205280abd2bc25c2786a6a4099459cfe28253206 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0280.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0280 { + @State backGroundColor: Color | null = null; + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0280') + .backgroundColor(this.backGroundColor) + .margin(20) + .onTouch(()=>{ + this.backGroundColor = Color.Red; + }) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290.ets new file mode 100755 index 0000000000000000000000000000000000000000..bc1c124699b96c71637434db03dc1074fc0314c3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290.ets @@ -0,0 +1,108 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0290 { + @State outlineStyle1: OutlineStyle | EdgeOutlineStyles = OutlineStyle.SOLID; + @State outlineWidth1: Dimension | EdgeOutlineWidths = 0; + @State outlineColor1: ResourceColor | EdgeColors | LocalizedEdgeColors = Color.Black; + @State outlineRadius1: Dimension | OutlineRadiuses = 0; + @State isOutLine: boolean = false; + @State outline1: OutlineOptions = { + width: 0, + color: Color.Black, + radius: 0, + style: OutlineStyle.SOLID + }; + + build() { + Flex() { + if (this.isOutLine) { + Text('hello ohos') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .outline(this.outline1) + } else { + Text('hello ohos') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .outlineStyle(this.outlineStyle1) + .outlineWidth(this.outlineWidth1) + .outlineColor(this.outlineColor1) + .outlineRadius(this.outlineRadius1) + } + Button('1') + .id('1') + .onClick(() => { + this.isOutLine = false; + this.outlineStyle1 = OutlineStyle.DASHED; + this.outlineWidth1 = 5; + this.outlineRadius1 = 10; + this.outlineColor1 = 0xAFEEEE; + }) + Button('2') + .id('2') + .onClick(() => { + this.isOutLine = true; + this.outline1 = { + width: 5, + color: 0x317AF7, + radius: 10, + style: OutlineStyle.DOTTED + } + }) + Button('3') + .id('3') + .onClick(() => { + this.isOutLine = true; + this.outline1 = { + width: { + left: 3, + right: 6, + top: 10, + bottom: 15 + }, + color: { + left: '#e3bbbb', + right: Color.Blue, + top: Color.Red, + bottom: Color.Green + }, + radius: { + topLeft: 10, + topRight: 20, + bottomLeft: 40, + bottomRight: 80 + }, + style: { + left: OutlineStyle.DOTTED, + right: OutlineStyle.DOTTED, + top: OutlineStyle.SOLID, + bottom: OutlineStyle.DASHED + } + } + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300.ets new file mode 100755 index 0000000000000000000000000000000000000000..917d986f929d0ada0bcf699128bd396ac98ada9b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300.ets @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0300 { + @State width1: Length = 200; + @State height1: Length = 200; + @State padding1: Length | Padding | LocalizedPadding = 20; + @State margin1: Length | Padding | LocalizedPadding = 20; + @State size1: SizeOptions | null = null; + + build() { + Column() { + Column() + .width(this.width1) + .height(this.height1) + .padding(this.padding1) + .margin(this.margin1) + .size(this.size1) + .backgroundColor(Color.Red) + Button('1') + .id('1') + .onClick(() => { + this.width1 = 100; + this.height1 = 100; + }) + Button('2') + .id('2') + .onClick(() => { + this.padding1 = 100; + }) + Button('3') + .id('3') + .onClick(() => { + this.margin1 = 100; + }) + Button('4') + .id('4') + .onClick(() => { + this.size1 = { width: 'calc(90%)', height: 'calc(50vp+10%)' } + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310.ets new file mode 100755 index 0000000000000000000000000000000000000000..83dde5b54961256f28d55b04e41cc48b9bf31ddc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310.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 { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0310 { + @State clip1: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute = false; + @State mask1: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask | null = null; + @State size1: SizeOptions | null = null; + @State image: string | null = null; + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)) + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release() + return createPixelMap + } + + async getBase64() { + let pixelMap = await this.getPixmapFromMedia($r('app.media.cat')) + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + imagePackerApi.packing(pixelMap, packOpts).then((data: ArrayBuffer) => { + let buf: buffer.Buffer = buffer.from(data); + this.image = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + }) + } + + aboutToAppear(): void { + this.getBase64() + } + + build() { + Column() { + Image(this.image) + .width(200) + .height(200) + .padding(20) + .margin(20) + .clip(this.clip1) + .mask(this.mask1) + .size(this.size1) + Button('1') + .id('1') + .onClick(() => { + this.clip1 = true + }) + Button('2') + .id('2') + .onClick(() => { + this.clip1 = new Circle({width:'280px',height:'280px'}) + }) + Button('3') + .id('3') + .onClick(() => { + this.clip1 = false + this.mask1 = new Rect({width:'500px',height:'280px'}).fill(Color.Gray); + }) + Button('4') + .id('4') + .onClick(() => { + this.mask1 = new Circle({width:'280px',height:'280px'}).fill(Color.Gray) + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320.ets new file mode 100755 index 0000000000000000000000000000000000000000..7ddfb4988493215aaa0bc743be05503f0a7e470d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320.ets @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0320 { + @State hoverEffect1: HoverEffect = HoverEffect.Auto; + + build() { + Flex() { + Column() + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .hoverEffect(this.hoverEffect1) + Button('1') + .id('1') + .onClick(() => { + this.hoverEffect1 = HoverEffect.Scale; + }) + Button('2') + .id('2') + .onClick(() => { + this.hoverEffect1 = HoverEffect.Highlight; + }) + Button('3') + .id('3') + .onClick(() => { + this.hoverEffect1 = HoverEffect.None; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0330.ets new file mode 100755 index 0000000000000000000000000000000000000000..9e5987485383552a2709e38de1c7a9440bf8bc8d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0330.ets @@ -0,0 +1,83 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0330 { + @State image: string | null = null; + @State draggable1: boolean = true; + @State dragPreviewOptions1: DragPreviewOptions | null = null; + @State AVisible: Visibility = Visibility.Visible + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)) + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release() + return createPixelMap + } + + async getBase64() { + let pixelMap = await this.getPixmapFromMedia($r('app.media.cat')) + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + imagePackerApi.packing(pixelMap, packOpts).then((data: ArrayBuffer) => { + let buf: buffer.Buffer = buffer.from(data); + this.image = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + }) + } + + aboutToAppear(): void { + this.getBase64(); + } + + build() { + Column() { + Image(this.image) + .id('UiAttributesAttributeUpdaterModifier0330') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .onDragStart(() =>{}) + .draggable(this.draggable1) + .dragPreviewOptions(this.dragPreviewOptions1) + Button('1') + .id('1') + .onClick(() => { + this.draggable1 = true; + }) + Button('2') + .id('2') + .onClick(() => { + this.dragPreviewOptions1 = { mode: DragPreviewMode.DISABLE_SCALE }; + }) + Column() { + TextInput({ text: `${this.draggable1}` }) + }.margin(50).id('Column') + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340.ets new file mode 100755 index 0000000000000000000000000000000000000000..4f180c0222347695b20ee7fc53eb67760a6a2376 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340.ets @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0340 { + @State fontColor: ResourceColor = Color.Red; + @State fontStyle: FontStyle = FontStyle.Italic; + @State fontWeight: string | number | FontWeight = FontWeight.Bold; + @State fontSize: string | number | Resource = 10; + + build() { + Column() { + Text('hello ohos') + .fontSize(this.fontSize) + .fontColor(this.fontColor) + .fontStyle(this.fontStyle) + .fontWeight(this.fontWeight) + Button('1') + .id('1') + .onClick(() => { + this.fontColor = Color.Orange; + }) + Button('2') + .id('2') + .onClick(() => { + this.fontSize = 18; + }) + Button('3') + .id('3') + .onClick(() => { + this.fontStyle = FontStyle.Normal; + }) + Button('4') + .id('4') + .onClick(() => { + this.fontWeight = FontWeight.Lighter; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350.ets new file mode 100755 index 0000000000000000000000000000000000000000..36ecfaead6e74f27e32b8f893d9cfcdade8ffaab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350.ets @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0350 { + @State visibility1: Visibility = Visibility.Visible; + + build() { + Column() { + Column() + .id('UiAttributesAttributeUpdaterModifier0350') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(0xCCCCCC) + .visibility(this.visibility1) + Button('1') + .id('1') + .onClick(() => { + this.visibility1 = Visibility.None; + }) + Button('2') + .id('2') + .onClick(() => { + this.visibility1 = Visibility.Hidden; + }) + Button('3') + .id('3') + .onClick(() => { + this.visibility1 = Visibility.Visible; + }) + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0360.ets new file mode 100755 index 0000000000000000000000000000000000000000..53b82d10a58a525cd17563ac60674a2da99faff3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0360.ets @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0360 { + @State image: string | null = null; + @State overlay1: string | CustomBuilder | ComponentContent | null = null; + @State overlay2: OverlayOptions | undefined = undefined; + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)) + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release() + return createPixelMap + } + + async getBase64() { + let pixelMap = await this.getPixmapFromMedia($r('app.media.cat')) + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + imagePackerApi.packing(pixelMap, packOpts).then((data: ArrayBuffer) => { + let buf: buffer.Buffer = buffer.from(data); + this.image = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + }) + } + + aboutToAppear(): void { + this.getBase64(); + } + + build() { + Column() { + Image(this.image) + .id('UiAttributesAttributeUpdaterModifier0360') + .width(200) + .height(200) + .padding(20) + .margin(20) + .overlay(this.overlay1, this.overlay2) + Button('1') + .id('1') + .onClick(() => { + this.overlay1 = 'Winter is a beautiful season,especially when it snows.'; + this.overlay2 = { align: Alignment.Bottom, offset: { x: 0, y: -15 } } + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0370.ets new file mode 100755 index 0000000000000000000000000000000000000000..7aebef2376db5f98811bc7a9becddad2c7ad17f6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0370.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0370 { + @State image: string | null = null; + @State clickEffect1: ClickEffect | null = null; + + build() { + Column() { + Toggle({ type: ToggleType.Switch, isOn: false }) + .id('UiAttributesAttributeUpdaterModifier0370') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .clickEffect(this.clickEffect1) + Button('1') + .id('1') + .onClick(() => { + this.clickEffect1 = { level: ClickEffectLevel.LIGHT } + }) + Button('2') + .id('2') + .onClick(() => { + this.clickEffect1 = { level: ClickEffectLevel.LIGHT, scale: 0.5 } + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0380.ets new file mode 100755 index 0000000000000000000000000000000000000000..177e79768ae1bdc2d51ae652c90ec9b7129d2a59 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0380.ets @@ -0,0 +1,107 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0380 { + @State focusable1: boolean | null = null; + @State focusOnTouch1: boolean = false; + @State backgroundColor1: Color | null = null; + @State focusAble:string = '常态'; + + build() { + Column() { + Button(`${this.focusAble}`) + .id('UiAttributesAttributeUpdaterModifier0380') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(this.backgroundColor1) + .focusable(this.focusable1) + .onFocus(() => { + this.backgroundColor1 = Color.Red; + this.focusAble = '获焦态'; + }) + .onBlur(()=>{ + this.backgroundColor1 = null; + this.focusAble = '常态'; + }) + .focusOnTouch(this.focusOnTouch1) + Button('1') + .id('1') + .focusable(false) + .onClick(() => { + this.focusable1 = false; + }) + Button('2') + .id('2') + .focusable(false) + .onClick(() => { + this.focusable1 = true; + this.focusOnTouch1 = true + }) + } + .width('100%') + .height('100%') + } +} + +// focusTest.ets +/* +@Entry +@Component +struct FocusableExample { + @State inputValue: string = '' + + build() { + Scroll() { + Row({ space: 20 }) { + Column({ space: 20 }) { + Column({ space: 5 }) { + Button('Group1') + .width(165) + .height(40) + .fontColor(Color.White) + .focusOnTouch(true) // 该Button组件点击后可获焦 + Row({ space: 5 }) { + Button() + .width(80) + .height(40) + .fontColor(Color.White) + Button() + .width(80) + .height(40) + .fontColor(Color.White) + .focusOnTouch(true) // 该Button组件点击后可获焦 + } + Row({ space: 5 }) { + Button() + .width(80) + .height(40) + .fontColor(Color.White) + Button() + .width(80) + .height(40) + .fontColor(Color.White) + } + }.borderWidth(2).borderColor(Color.Red).borderStyle(BorderStyle.Dashed) + .tabIndex(1) // 该Column组件为按TAB键走焦的第一个获焦的组件 + } + }.alignItems(VerticalAlign.Top) + } + } +} +*/ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0390.ets new file mode 100755 index 0000000000000000000000000000000000000000..910b3c08a98d2cfaa39cac5179e8a8afaab411b3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0390.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0390 { + @State enabled1: boolean = true; + + build() { + Column() { + TextInput() + .id('UiAttributesAttributeUpdaterModifier0390') + .width(200) + .height(200) + .padding(20) + .margin(20) + .enabled(this.enabled1) + Button('1') + .id('1') + .focusable(false) + .onClick(() => { + this.enabled1 = false; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0400.ets new file mode 100755 index 0000000000000000000000000000000000000000..e4a509c8f51c73fdf10d0f5702ad409bfdd80cff --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0400.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0400 { + @State id1: string = 'UiAttributesAttributeUpdaterModifier0400'; + @State text1: string = ''; + @State text2: string = ''; + + getText1() { + this.text1 = getInspectorByKey('123'); + } + + getText2() { + this.text2 = getInspectorByKey('234'); + } + + build() { + Column() { + Column() + .id(this.id1) + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + Text(`123: ${this.text1}`) + Text(`234: ${this.text2}`) + Button('1') + .id('1') + .focusable(false) + .onClick(() => { + this.id1 = '123'; + setTimeout(()=>{ + this.getText1(); + },100) + }) + Button('2') + .id('2') + .focusable(false) + .onClick(() => { + this.id1 = '234'; + setTimeout(()=>{ + this.getText2(); + },100) + }) + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0410.ets new file mode 100755 index 0000000000000000000000000000000000000000..62ab9a3fbfb08a5a3c89597608338f56307c9d36 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0410.ets @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0410 { + @State backgroundImage1: ResourceStr | image.PixelMap | null = null; + @State backgroundImage2: ImageRepeat | undefined = undefined; + @State backgroundImageSize1: SizeOptions | ImageSize | null = null; + @State backgroundImagePosition1: Position | Alignment | null = null; + @State backgroundBlurStyle1: BlurStyle | null = null; + @State backgroundBlurStyle2: BackgroundBlurStyleOptions | undefined = undefined; + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)) + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release() + return createPixelMap + } + + build() { + Column() { + Column() + .id('UiAttributesAttributeUpdaterModifier0410') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundImage(this.backgroundImage1, this.backgroundImage2) + .backgroundImageSize(this.backgroundImageSize1) + .backgroundImagePosition(this.backgroundImagePosition1) + .backgroundBlurStyle(this.backgroundBlurStyle1, this.backgroundBlurStyle2) + Button('1') + .id('1') + .focusable(false) + .onClick(async () => { + this.backgroundImage1 = await this.getPixmapFromMedia($r('app.media.cat')); + this.backgroundImage2 = ImageRepeat.NoRepeat; + this.backgroundImageSize1 = { width: 1000, height: 560 }; + this.backgroundImagePosition1 = { x: -500, y: -300 }; + }) + Button('2') + .id('2') + .focusable(false) + .onClick(() => { + this.backgroundBlurStyle1 = BlurStyle.Thin; + this.backgroundBlurStyle2 = + { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 }; + }) + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0420.ets new file mode 100755 index 0000000000000000000000000000000000000000..911c5167ec9b50b77a2f583c7fbc5a212afb32c1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0420.ets @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { AttributeUpdater } from '@kit.ArkUI' + +class MyButtonModifier extends AttributeUpdater { + initializeModifier(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Red) + .width(200) + .height(200) + .padding(20) + .margin(20) + .border({ + width: 5, + color: 0x317AF7, + radius: 10, + style: BorderStyle.Dotted + }) + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0420 { + modifier: MyButtonModifier = new MyButtonModifier() + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0420') + .attributeModifier(this.modifier) + .backgroundColor(Color.Yellow) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430.ets new file mode 100755 index 0000000000000000000000000000000000000000..8a835a3591b7f5ac574609a5fea61eee2a946fa3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430.ets @@ -0,0 +1,101 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0430 { + @State border1: null | BorderOptions = null; + @State style: boolean = true; + @State borderStyle1: BorderStyle | EdgeStyles = BorderStyle.Solid; + @State borderWidth1: Length | EdgeWidths | LocalizedEdgeWidths = -1; + @State borderColor1: ResourceColor | EdgeColors | LocalizedEdgeColors = Color.Black; + @State borderRadius1: Length | BorderRadiuses | LocalizedBorderRadiuses = -1; + + build() { + Column() { + if (this.style) { + Column() + .id('UiAttributesAttributeUpdaterModifier0430') + .width(200) + .height(200) + .padding(20) + .margin(20) + .border(this.border1) + } else { + Column() + .id('UiAttributesAttributeUpdaterModifier0430') + .width(200) + .height(200) + .padding(20) + .margin(20) + .borderStyle(this.borderStyle1) + .borderWidth(this.borderWidth1) + .borderColor(this.borderColor1) + .borderRadius(this.borderRadius1) + } + Button('1') + .id('1') + .onClick(() => { + this.border1 = { + width: { + left: 3, + right: 6, + top: 10, + bottom: 15 + }, + color: { + left: '#e3bbbb', + right: Color.Blue, + top: Color.Red, + bottom: Color.Green + }, + radius: { + topLeft: 10, + topRight: 20, + bottomLeft: 40, + bottomRight: 80 + }, + style: { + left: BorderStyle.Dotted, + right: BorderStyle.Dotted, + top: BorderStyle.Solid, + bottom: BorderStyle.Dashed + } + }; + }) + Button('2') + .id('2') + .onClick(() => { + this.border1 = { + width: 5, + color: 0x317AF7, + radius: 10, + style: BorderStyle.Dotted + } + }) + Button('3') + .id('3') + .onClick(() => { + this.style = false; + this.borderStyle1 = BorderStyle.Dashed; + this.borderWidth1 = 5; + this.borderColor1 = 0xAFEEEE; + this.borderRadius1 = 10; + }) + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440.ets new file mode 100755 index 0000000000000000000000000000000000000000..c3857c0a8dfe3a2bbcb09e992a3b36c702af5d86 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440.ets @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0440 { + @State opacity1: number | Resource = 1; + + build() { + Column() { + Column() + .id('UiAttributesAttributeUpdaterModifier0440') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(0xCCCCCC) + .opacity(this.opacity1) + Button('1') + .id('1') + .onClick(() => { + this.opacity1 = 0.7; + }) + Button('2') + .id('2') + .onClick(() => { + this.opacity1 = 0.5; + }) + Button('3') + .id('3') + .onClick(() => { + this.opacity1 = 0.3; + }) + Button('4') + .id('4') + .onClick(() => { + this.opacity1 = 0; + }) + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450.ets new file mode 100755 index 0000000000000000000000000000000000000000..8f0685e2a2248a71ed7fb666b0bd687b124c0631 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450.ets @@ -0,0 +1,136 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +interface GeneratedTypeLiteralInterface_1 { + angle?: string | number | undefined; + direction?: GradientDirection | undefined; + colors: [ResourceColor, number][]; + repeating?: boolean | undefined; +} + +interface GeneratedTypeSweepInterface_1 { + center: [Length, Length]; + start?: string | number | undefined; + end?: string | number | undefined; + rotation?: string | number | undefined; + colors: [ResourceColor, number][]; + repeating?: boolean | undefined; +} + +interface GeneratedTypeRadialInterface_1 { + center: [Length, Length]; + radius: string | number; + colors: [ResourceColor, number][]; + repeating?: boolean | undefined; +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0450 { + @State refresh: number =0; + @State linearGradient1: GeneratedTypeLiteralInterface_1 = { + angle: 180, + direction: GradientDirection.Bottom, + colors: [], + repeating: false + }; + @State sweepGradient1: GeneratedTypeSweepInterface_1 = { + center: [-1, -1], + start: 0, + end: 0, + rotation: 0, + colors: [], + repeating: false + } + @State radialGradient1: GeneratedTypeRadialInterface_1 = { + center: [-1, -1], + radius: 0, + colors: [], + repeating: false + } + + onUpdated(){ + this.refresh ++; + } + + build() { + Column() { + if (this.refresh == 1) { + Row(){ + Text(`${this.refresh}`) + } + .id('UiAttributesAttributeUpdaterModifier0450') + .width(200) + .height(200) + .padding(20) + .margin(20) + .linearGradient(this.linearGradient1) + } else if (this.refresh == 2) { + Row(){ + Text(`${this.refresh}`) + } + .id('UiAttributesAttributeUpdaterModifier0450') + .width(200) + .height(200) + .padding(20) + .backgroundColor(Color.Yellow) + .margin(20) + .sweepGradient(this.sweepGradient1) + } else { + Row(){ + Text(`${this.refresh}`) + } + .id('UiAttributesAttributeUpdaterModifier0450') + .width(200) + .height(200) + .padding(20) + .backgroundColor(Color.Orange) + .margin(20) + .radialGradient(this.radialGradient1) + } + Button('1') + .id('1') + .onClick(() => { + this.onUpdated(); + this.linearGradient1 = { angle: 90, colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] } + }) + Button('2') + .id('2') + .onClick(() => { + this.onUpdated(); + this.sweepGradient1 = { + center: [50, 50], + start: 0, + end: 359, + rotation: 45, + repeating: true, + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] + } + }) + Button('3') + .id('3') + .onClick(() => { + this.onUpdated(); + this.radialGradient1 = { + center: [50, 50], + radius: 60, + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + } + }) + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0190.ets new file mode 100755 index 0000000000000000000000000000000000000000..17cf663411fd10c3b1393c5f9f19bb8d066d3585 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0190.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 { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + messge: string = ''; + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width(500) + .height(500) + .backgroundColor(Color.White) + let swiperNode = typeNode.createNode(uiContext, "Swiper") + swiperNode.attribute.width('100%') + .height('60%') + .margin({ right: 20 }) + let image = typeNode.createNode(uiContext, 'Image'); + image.initialize('red_icon.png') + .width(50) + .height(50) + .margin({ bottom: 5 }) + let image2 = typeNode.createNode(uiContext, 'Image'); + image2.initialize('blue_icon.png') + .width(100) + .height(20) + .margin({ bottom: 5 }) + swiperNode.appendChild(image) + swiperNode.appendChild(image2) + swiperNode.appendChild(image) + swiperNode.appendChild(image2) + swiperNode.appendChild(image) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }); + col.appendChild(swiperNode) + image?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + this.messge = `Node ${image?.getUniqueId()}:${image?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(this.messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + this.node.appendChild(col); + + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0190 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0200.ets new file mode 100755 index 0000000000000000000000000000000000000000..de761a1197f37d3ed14ea1672183e21717775e29 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0200.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 { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + messge: string = ''; + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width(500) + .height(500) + .backgroundColor(Color.White) + let swiperNode = typeNode.createNode(uiContext, "Swiper") + swiperNode.attribute.width('100%') + .height('60%') + .margin({ right: 20 }) + let image = typeNode.createNode(uiContext, 'Image'); + image.initialize('red_icon.png') + .width(50) + .height(50) + .margin({ bottom: 5 }) + let image2 = typeNode.createNode(uiContext, 'Image'); + image2.initialize('blue_icon.png') + .width(100) + .height(20) + .margin({ bottom: 5 }) + swiperNode.appendChild(image) + swiperNode.appendChild(image2) + swiperNode.appendChild(image) + swiperNode.appendChild(image2) + swiperNode.appendChild(image) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }); + col.appendChild(swiperNode) + image?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + this.messge = `Node ${image?.getUniqueId()}:${image?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(this.messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + this.node.appendChild(col); + + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0200 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0230.ets new file mode 100755 index 0000000000000000000000000000000000000000..018a0fcd9fb26332d249f9e08de406460a71268b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0230.ets @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + private scroller: Scroller = new Scroller(); + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width('100%') + .height(200) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }) + + let scrollNode = typeNode.createNode(uiContext, "Scroll") + scrollNode.initialize(this.scroller) + .width('100%') + .height(200) + .scrollable(ScrollDirection.Vertical) + .scrollBar(null) + + let scrollCol = typeNode.createNode(uiContext, 'Column'); + scrollCol.initialize({ space: 5 }) + .justifyContent(FlexAlign.Start) + .height(300) + scrollNode.appendChild(scrollCol) + let row = typeNode.createNode(uiContext, 'Row') + row.initialize().width('100%').height(100) + let textInput = typeNode.createNode(uiContext, 'TextInput') + textInput.initialize({ placeholder:'this is 1' }).width('100%').height(100).backgroundColor(Color.Pink).id('textInput_node0230') + row.appendChild(textInput) + let row1 = typeNode.createNode(uiContext, 'Row') + row1.initialize().width('100%').height(100) + let textInput1 = typeNode.createNode(uiContext, 'TextInput') + textInput1.initialize({ placeholder:'this is 2' }).width('100%').height(100).backgroundColor(Color.Pink) + row1.appendChild(textInput1) + let row2 = typeNode.createNode(uiContext, 'Row') + row2.initialize().width('100%').height(100) + let textInput2 = typeNode.createNode(uiContext, 'TextInput') + textInput2.initialize({ placeholder:'this is 3' }).width('100%').height(100).backgroundColor(Color.Pink) + row2.appendChild(textInput2) + scrollCol.appendChild(row) + scrollCol.appendChild(row1) + scrollCol.appendChild(row2) + textInput?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${textInput?.getUniqueId()}:${textInput?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + let button = typeNode.createNode(uiContext, 'Button'); + button.initialize('scroll').onClick(() => { + this.scroller.scrollEdge(Edge.Bottom) + }); + col.appendChild(button); + col.appendChild(scrollNode); + this.node.appendChild(col); + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0230 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0250.ets new file mode 100755 index 0000000000000000000000000000000000000000..fc6ce14e976356d5dc2d1ea0b5012d1654334938 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0250.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 { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + messge: string = ''; + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width(500) + .height(500) + .backgroundColor(Color.White) + let rootCol = typeNode.createNode(uiContext, 'Column'); + rootCol.initialize({ space: 5 }) + .width('100%') + .height('100%') + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width(200) + .height(200) + .backgroundImage('red_icon.png') + .backgroundImageSize({ width: 200, height: 200 }) + .margin({ top: 5 }); + rootCol.appendChild(col) + let textInput = typeNode.createNode(uiContext, 'TextInput'); + textInput.initialize({ placeholder: '请输入文字' }).width('100%').height('100%').id('textInput_node0250') + col.appendChild(textInput) + col?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + this.messge = `Node ${col?.getUniqueId()}:${col?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(this.messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + rootCol.appendChild(text); + }) + this.node.appendChild(rootCol); + + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0250 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0260.ets new file mode 100755 index 0000000000000000000000000000000000000000..5a25f74822c8f6aba839841b151f01ef0aaada42 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0260.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 { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + messge: string = ''; + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width(500) + .height(500) + .backgroundColor(Color.White) + let rootCol = typeNode.createNode(uiContext, 'Column'); + rootCol.initialize({ space: 5 }) + .width('100%') + .height('100%') + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width(200) + .height(200) + .backgroundImage('red_icon.png') + .backgroundImageSize({ width: 200, height: 200 }) + .margin({ top: 5 }); + rootCol.appendChild(col) + let textInput = typeNode.createNode(uiContext, 'TextInput'); + textInput.initialize({ placeholder: '请输入文字' }).width('100%').height('100%').id('textInput_node0260') + col.appendChild(textInput) + textInput?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + this.messge = `Node ${textInput?.getUniqueId()}:${textInput?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(this.messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + rootCol.appendChild(text); + }) + this.node.appendChild(rootCol); + + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0260 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0300.ets new file mode 100755 index 0000000000000000000000000000000000000000..569617fec8fc6ff4a1f26aeeca425c0105910af2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0300.ets @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + private scroller: Scroller = new Scroller(); + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width('100%') + .height(200) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }) + + let scrollNode = typeNode.createNode(uiContext, "Scroll") + scrollNode.initialize(this.scroller) + .width('100%') + .height(200) + .scrollable(ScrollDirection.Vertical) + .scrollBar(null) + + let scrollCol = typeNode.createNode(uiContext, 'Column'); + scrollCol.initialize({ space: 5 }) + .justifyContent(FlexAlign.Start) + .height(300) + scrollNode.appendChild(scrollCol) + let row = typeNode.createNode(uiContext, 'Row') + row.initialize().width('100%').height(100) + let text = typeNode.createNode(uiContext, 'Text') + text.initialize('this 1').width('100%').height(100).backgroundColor(Color.Pink) + row.appendChild(text) + let row1 = typeNode.createNode(uiContext, 'Row') + row1.initialize().width('100%').height(100) + let text1 = typeNode.createNode(uiContext, 'Text') + text1.initialize('this 2').width('100%').height(100).backgroundColor(Color.Pink) + row1.appendChild(text1) + let row2 = typeNode.createNode(uiContext, 'Row') + row2.initialize().width('100%').height(100) + let text2 = typeNode.createNode(uiContext, 'Text') + text2.initialize('this 3').width('100%').height(100).backgroundColor(Color.Pink) + row2.appendChild(text2) + scrollCol.appendChild(row) + scrollCol.appendChild(row1) + scrollCol.appendChild(row2) + text?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${row?.getUniqueId()}:${row?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + let button = typeNode.createNode(uiContext, 'Button'); + button.initialize('scroll').onClick(() => { + this.scroller.scrollEdge(Edge.Bottom) + }); + col.appendChild(button); + col.appendChild(scrollNode); + this.node.appendChild(col); + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0300 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0320.ets new file mode 100755 index 0000000000000000000000000000000000000000..dfb985ed73f2df7556372dd312624bae61ff9cf6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0320.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 { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + private scroller: Scroller = new Scroller(); + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width('100%') + .height(200) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }) + // this.node.appendChild(col); + + let stack = typeNode.createNode(uiContext, 'Stack'); + stack.initialize({ alignContent: Alignment.TopStart }) + .width('100%') + .height('100%') + col.appendChild(stack) + + let scrollNode = typeNode.createNode(uiContext, "Scroll") + scrollNode.initialize(this.scroller) + .width('100%') + .height(200) + .scrollable(ScrollDirection.Vertical) + .scrollBar(null) + stack.appendChild(scrollNode) + + let scrollCol = typeNode.createNode(uiContext, 'Column'); + scrollCol.initialize({ space: 5 }) + .justifyContent(FlexAlign.Start) + .height(300) + scrollNode.appendChild(scrollCol) + let row = typeNode.createNode(uiContext, 'Row') + row.initialize().width('100%').height(100) + let text = typeNode.createNode(uiContext, 'Text') + text.initialize('this 1').width('100%').height(100).backgroundColor(Color.Pink) + row.appendChild(text) + let row1 = typeNode.createNode(uiContext, 'Row') + row1.initialize().width('100%').height(100) + let text1 = typeNode.createNode(uiContext, 'Text') + text1.initialize('this 2').width('100%').height(100).backgroundColor(Color.Pink) + row1.appendChild(text1) + let row2 = typeNode.createNode(uiContext, 'Row') + row2.initialize().width('100%').height(100) + let text2 = typeNode.createNode(uiContext, 'Text') + text2.initialize('this 3').width('100%').height(100).backgroundColor(Color.Pink) + row2.appendChild(text2) + scrollCol.appendChild(row) + scrollCol.appendChild(row1) + scrollCol.appendChild(row2) + row?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${row?.getUniqueId()}:${row?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + stack?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${stack?.getUniqueId()}:${stack?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + let button = typeNode.createNode(uiContext, 'Button'); + button.initialize('scroll').onClick(() => { + this.scroller.scrollEdge(Edge.Bottom) + }); + col.appendChild(button); + this.node.appendChild(col); + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0320 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UiComponentAreaChange0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UiComponentAreaChange0120.ets new file mode 100755 index 0000000000000000000000000000000000000000..c360d6172a7e61ece0bbc5fbecae7dc6df0a0494 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UiComponentAreaChange0120.ets @@ -0,0 +1,129 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { NodeContent, typeNode } from '@kit.ArkUI'; + +class NodeContentCtrl { + content: NodeContent; + textNode: Array = new Array(); + uiContext: UIContext; + width: number; + callback: boolean | null = null; + isDelete: boolean = false; + + constructor(uiContext: UIContext) { + this.content = new NodeContent(); + this.uiContext = uiContext; + this.width = Infinity; + } + + setOnVisibleAreaApproximateChange() { + this.textNode.forEach(node => { + node.commonEvent.setOnVisibleAreaApproximateChange({ ratios: [0.0, 0.5, 1.0] }, (callback) => { + this.callback = callback; + }) + }); + } + + AddNode() { + this.isDelete = false; + let node = typeNode.createNode(this.uiContext, "Text"); + node.initialize("ContentText:" + this.textNode.length).fontSize(20).margin({ bottom: 20 }); + this.textNode.push(node); + this.content.addFrameNode(node); + } + + RemoveNode() { + this.isDelete = true; + let node1 = this.textNode.pop(); + this.content.removeFrameNode(node1); + } + + GetContent(): NodeContent { + if (this.textNode.length === 0 && !this.isDelete) { + let node = typeNode.createNode(this.uiContext, "Text"); + node.initialize("ContentText:" + this.textNode.length).fontSize(20).margin({ bottom: 20 }); + this.textNode.push(node); + this.content.addFrameNode(node); + } + return this.content; + } +} + +@Entry +@Component +struct UiComponentAreaChange0120 { + @State array: number[] = [0]; + @State index: number = 0; + controller = new NodeContentCtrl(this.getUIContext()); + + uniquePush(arr: number[], ...items: number[]): number[] { + const uniqueItems = new Set(arr.concat(items)); + const result: number[] = []; + uniqueItems.forEach(item => result.push(item)); + return result; + } + + removeItem(arr: number[], item: number): number[] { + const index = arr.indexOf(item); + if (index > -1) { + arr.splice(index, 1); + } + return arr; + } + + build() { + Row() { + Column() { + Text(`setOnVisibleAreaApproximateChangeCallback: ${this.controller.callback}`) + List() { + ForEach(this.array, () => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + ContentSlot(this.controller.GetContent()); + } + }.backgroundColor(Color.Red) + }) + }.id('UiComponentAreaChange0120').onClick(() => { + }) + + Button('setOnVisibleAreaApproximateChange') + .margin({ top: 20 }) + .id('setOnVisibleAreaApproximateChange') + .onClick(() => { + this.controller.setOnVisibleAreaApproximateChange(); + }) + + Button('新增') + .margin({ top: 20 }) + .id('add') + .onClick(() => { + this.index++; + this.array = this.uniquePush(this.array, this.index); + this.controller.AddNode(); + }) + Button('删除') + .id('delete') + .onClick(() => { + this.array = this.removeItem(this.array, this.index); + this.index--; + this.controller.RemoveNode(); + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 b/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 index e58bd507f3ecff51931c351ebcabf6603cd5c40c..b27957df19e9b245dcfce292548707ef4e6edc0e 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 @@ -12,15 +12,33 @@ "installationFree": false, "pages": "$profile:test_pages", "requestPermissions": [ + { + "name": "ohos.permission.SYSTEM_FLOAT_WINDOW", + "usedScene": { + "abilities":[ + "EntryAbility" + ], + "when": "inuse" + } + }, + { + "name": "ohos.permission.GRANT_SENSITIVE_PERMISSIONS" + }, { "name": "ohos.permission.WRITE_MEDIA" }, { "name": "ohos.permission.READ_MEDIA" }, + { + "name":"ohos.permission.CAPTURE_SCREEN" + }, { "name":"ohos.permission.UPDATE_CONFIGURATION" }, + { + "name":"ohos.permission.ACCESS_SCREEN_LOCK_INNER" + }, { "name":"ohos.permission.RUNNING_LOCK" }, diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/color.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/color.json index cebaca0ee054e26196800861f14cc2ede61640d2..f3be3209388465ddd3904b66a4c7f4983006f292 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/color.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/color.json @@ -63,6 +63,10 @@ { "name": "search_placeholder", "value": "#FFCFA613" + }, + { + "name": "color_0xffff", + "value": "#ffffff" } ] } \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json index ce65c09bf1f31a1214be8ab75ed207896afea2d3..37ed6e5a4b106ddac1925244e02afa184b56d23a 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json @@ -243,6 +243,10 @@ { "name": "20string", "value": "20" + }, + { + "name": "module_desc", + "value": "module_desc" } ] } \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/openeyej.jpg b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/openeyej.jpg new file mode 100755 index 0000000000000000000000000000000000000000..8750eba924dd397bbd1f754e501ce04028db1e72 Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/openeyej.jpg differ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json index 5cc05ce92cff61b76d701a3fe495c11c73638078..033bac5ab12e24eef506ec38214d2f62d1995022 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json @@ -1801,6 +1801,444 @@ "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface007", "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface008", "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface009", - "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface0010" + "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface0010", + + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0120", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0160", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0210", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0220", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0230", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0240", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0270", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0310", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0350", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0380", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0390", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0440", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0470", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0500", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0510", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0550", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0560", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0580", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0590", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0670", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0680", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0700", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1320", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1330", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1370", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1390", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1410", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1480", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1490", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0230", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0220", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0240", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0110", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0130", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0120", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0140", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0150", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0180", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0210", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0170", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0200", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0160", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0190", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0010", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0020", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0030", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0040", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0050", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0060", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0080", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0070", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0090", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0100", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0250", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0260", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0130", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0120", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0150", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0110", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0140", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0180", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0170", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0200", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0160", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0190", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0080", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0070", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0100", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0060", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0090", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0230", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0220", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0250", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0210", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0240", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0030", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0020", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0050", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0010", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0040", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0260", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0270", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0010", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0020", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0040", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0050", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0080", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0090", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0020", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0030", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0060", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0080", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0100", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0120", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0170", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0180", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0010", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0030", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0060", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0070", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0090", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0100", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0120", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0130", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0160", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0170", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0180", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0220", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0230", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface071", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface072", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface074", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface077", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface079", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface080", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface083", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface085", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface087", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface088", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface090", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface095", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface096", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface097", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface103", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface104", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface106", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface108", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface109", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface112", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface113", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface121", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface123", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface124", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface127", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface128", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface130", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface131", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0010", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0020", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0030", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0040", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0050", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0060", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0070", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0140", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0210", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0190", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0200", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0250", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0260", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0230", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0320", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0010", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0020", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0030", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0040", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0050", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0060", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0070", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0080", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0090", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0100", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0110", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0120", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0130", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0140", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0150", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0160", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0170", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0180", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0190", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0200", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0210", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0250", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0300", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0340", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0350", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0360", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0380", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0390", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0430", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0440", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0470", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0530", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0550", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0070", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0100", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0130", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0170", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0070", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0190", + "testability/pages/CommoneventUnifyadd/textInputActionEventCommon", + "testability/pages/CommoneventUnifyadd/touchObjectActionEventCommon", + "testability/pages/CommoneventUnifyadd/textAreaActionEventCommon", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0010", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0120", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0160", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0200", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0210", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0220", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0230", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0240", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0250", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0260", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0270", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0280", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0330", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0360", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0370", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0380", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0390", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0400", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0410", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0420", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450", + "testability/pages/UiComponentAreaChange/UiComponentAreaChange0120", + + "testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0010", + "testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0050", + "testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0090", + "testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0140", + "testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0160", + "testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0190", + "testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030", + "testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0100", + "testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0110", + "testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0240", + "testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0250", + "testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0260", + "testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0280", + + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0010", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0020", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0030", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0040", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0050", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0060", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0150", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0160", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0200", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0070", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0080", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0090", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0100", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0110", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0120", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0130", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0140", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0210", + + "testability/pages/UIComponentAreachange/UIComponentAreachange0200", + "testability/pages/UIComponentAreachange/UIComponentAreachange0320", + "testability/pages/UIComponentAreachange/UIComponentAreachange0300", + "testability/pages/UIComponentAreachange/UIComponentAreachange0120", + "testability/pages/UIComponentAreachange/UIComponentAreachange0190", + "testability/pages/UIComponentAreachange/UIComponentAreachange0230", + "testability/pages/UIComponentAreachange/UIComponentAreachange0250", + "testability/pages/UIComponentAreachange/UIComponentAreachange0260", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0110", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0260", + "testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0170", + "testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0180", + "testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0050", + "testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0030", + "testability/pages/StatusManagerRefresh/StatusManagerRefresh01", + "testability/pages/StatusManagerRefresh/StatusManagerRefresh02" ] }